Jump to content
johnwvg

500 Internal Server Error - When accessing admin page

Recommended Posts

imlooking at fresh copy and the only dir  thathas navigation_history.php is catalog/includes/classes    the admin one doesnt have it and that from a fresh zip file opened

 

this is all messed up 

Share this post


Link to post
Share on other sites

you have probably copied

catalog/includes/application_top.php

on top of

catalog/[admin]/includes/application_top.php


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

okay  well im going to give this some thought hopfully your right I will let you know ifi get it fixed

Share this post


Link to post
Share on other sites
31 minutes ago, tttim6575 said:

cause  godaddy sucks  thats why

That may well be true but! They do offer PHP 7.2 it's just that they do not allow old plans to upgrade. If you move to one of the new plans then you will get PHP 7.2

image.png.184e7ccca802b10869c36121b86547d1.png

If you have a new plan then godaddy uses cPanel and if you go into that you will find a PHP selector that will let you pick the version you need. If your using osC Frozen then PHP 7.0 is fine PHP 7.2 will work.

Just note that Godaddy still use PHP 5.4 as normal! Godaddy will may not help if you change to a version you site software will not support.

image.png.ff888ba793fbe712eafacc4d5373510f.png

Or just switch to a more flexable hosting company.


 

Share this post


Link to post
Share on other sites

no more server500 errornowit just takes me to a blank page where login.php should be  but there  just blank page

Share this post


Link to post
Share on other sites

heres the new error

[05-Mar-2019 08:34:43 UTC] PHP Warning:  error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: No such file or directory in /home/oo62hzb5zxce/public_html/mystore/mv9lflzupmwtgeoq/includes/classes/logger.php on line 49
[05-Mar-2019 08:34:43 UTC] PHP Fatal error:  Call to a member function buildBlocks() on a non-object in /home/oo62hzb5zxce/public_html/mystore/mv9lflzupmwtgeoq/includes/template_top.php on line 28

Share this post


Link to post
Share on other sites

Did you copy the whole of your catalog includes folder into the admin includes folder?

That looks like you're running the wrong template_top.php

 


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

If you decide to copy the whole admin includes folder back in, make sure not to overwrite configure.php


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

i dont know what i did i just know i have to fix this whike its a live site and customers are on it so i cant break the damn thing. Im going to just shoot my self.

Share this post


Link to post
Share on other sites

You can save yourself some time by displaying the errors directly on your screen - edit admin/includes/application_top.php:

find near the top:

// Set the level of error reporting
  error_reporting(E_ALL & ~E_NOTICE);

add afterwards

  ini_set("display_errors", 1);

Later, when everything is fixed, change the 1 to 0


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

For the actual fix, the next step is to upload the correct

admin/includes/template_top.php

 

You have made a step forwards already. When you access admin it successfully redirects to the login page before it throws a white screen.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
Just now, tttim6575 said:

will customers see the errors as well?

not if you only do this to the admin app_top file and not the catalog one!


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
3 minutes ago, tttim6575 said:

so i only need to change one more file is what ur telling me?

That's the next one - fingers crossed it's the only one.

On the other hand, be ready to change others depending how many you overwrote - eg. template_bottom.php application_bottom.php

If you made a really big mess then there could be language files overwritten too...

I'd recommend leaving in the display errors setting until you're sure everything's ok


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×