Zen Cart Logo
Forums / Upgrading to 1.5.x / Admin page blank after upgrade from v13x

Admin page blank after upgrade from v13x

Views: 2,917

Results 1 to 12 of 12
15 May 2012, 5:17 PM
#1
itsupporter avatar

itsupporter

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Admin page blank after upgrade from v13x

When trying to open the admin page, it is completely blank.
The URL is "http://cncspareparts.se/adminGG6&3eE/index.php".
We have also installed the correct and latest version of the Swedish language pack.

This is a piece of the /public_html/adminGG6&3eE/includes/configure.php

/ NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', '/home/cncspare/public_html/admin/');
  define('DIR_FS_CATALOG', '/home/cncspare/public_html/');
15 May 2012, 5:50 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin page blank after upgrade from v13x

Explain how you upgraded.
What process did you follow? What steps did you take?

15 May 2012, 5:59 PM
#3
itsupporter avatar

itsupporter

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Admin page blank after upgrade from v13x

I followed the recommended steps in the pdf "implementation guide" in the v150-installation pack

16 May 2012, 12:54 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin page blank after upgrade from v13x

So did this work properly in your temporary staging area before you did the upgrade to the live site?

16 May 2012, 7:03 AM
#5
itsupporter avatar

itsupporter

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Admin page blank after upgrade from v13x

DrByte:

So did this work properly in your temporary staging area before you did the upgrade to the live site?
I had not the opportunity to do this test due to an upgrade of php om my webserver. I had to upgrade without testing in a temp staging area.
What can be the trouble? The public homepage is showing alright, it is only the admin page that is blank. Any advice?

16 May 2012, 7:10 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin page blank after upgrade from v13x

Well, as a start, the configure.php file contents you quoted is from an old version of Zen Cart.
And, the admin foldername you mentioned doesn't match what's in the configure.php file.
So that's probably the first big problem.

These are the sorts of things that a staging area is intended for: a time and place for troubleshooting your problems while your live store continues to operate without downtime. That's why the implementation guide tells you to do that.

And webserver upgrades of PHP versions etc which make your store's software obsolete are exactly the reason one should do regular upgrades to stay ahead of server dependency requirements, so that you don't end up in urgent situations such as you describe. Just a tip for future.

16 May 2012, 7:15 AM
#7
itsupporter avatar

itsupporter

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Admin page blank after upgrade from v13x

From error.log in root dir:

[16-May-2012 07:11:51 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0

From myDEBUG-adm-1337151888-58745.log in admin dir:

[16-May-2012 07:04:49 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/cncspare/public_html/adminGG6&3eE/includes/languages/swedish/email_extras.php:1) in /home/cncspare/public_html/adminGG6&3eE/includes/init_includes/init_templates.php on line 28
[16-May-2012 07:04:49 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/cncspare/public_html/adminGG6&3eE/includes/languages/swedish/email_extras.php:1) in /home/cncspare/public_html/adminGG6&3eE/includes/functions/general.php on line 21
16 May 2012, 7:47 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin page blank after upgrade from v13x

itsupporter:

From error.log in root dir:

[16-May-2012 07:11:51 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0


> **itsupporter:**
>
> From myDEBUG-adm-1337151888-58745.log in admin dir:
> ```
[16-May-2012 07:04:49 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/cncspare/public_html/adminGG6&3eE/includes/languages/swedish/email_extras.php:1) in /home/cncspare/public_html/adminGG6&3eE/includes/init_includes/init_templates.php on line 28
[16-May-2012 07:04:49 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/cncspare/public_html/adminGG6&3eE/includes/languages/swedish/email_extras.php:1) in /home/cncspare/public_html/adminGG6&3eE/includes/functions/general.php on line 21

A quick search of the FAQs/Tutorials section for that "headers already sent" error brings up this article:
http://www.zen-cart.com/content.php?129-warning-headers-already-sent

16 May 2012, 8:09 AM
#9
itsupporter avatar

itsupporter

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Admin page blank after upgrade from v13x

Thanks! Got rid of those errors.

Found a new one in admin dir.
error_log:

[16-May-2012 08:01:38 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0

I have replaced the two configure.php files with the ones in the v150 install pack, and edited them for my server settings. But, I am uncertain of how to configure the line:

$t1 = parse_url(HTTP_SERVER);$p1 = $t1['admin/'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['admin/'];

As you can see, I tried "admin/" ( have changed the dir name back to "admin"). In the original file, it says "path". Can't figure out my "path". Any advice in this matter?

I am VERY greatful for your help!

16 May 2012, 8:53 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin page blank after upgrade from v13x

In v1.5.0 there's no need to edit the admin configure.php file if you're using the v1.5.0 version of the file. It will autodetect the name of the folder it's located in so all you need to do is rename the folder.
It's all explained in the FAQ article on that topic: http://www.zen-cart.com/content.php?75-how-do-i-rename-my-admin-folder-to-prevent-unauthorized-access

16 May 2012, 9:38 AM
#11
itsupporter avatar

itsupporter

New Zenner

Join Date:
Nov 2008
Posts:
6
Plugin Contributions:
0

Re: Admin page blank after upgrade from v13x

I am very close now to get it up and going.

I am getting this page when accessing the admin page:

Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart® website for assistance.

So there must be something wrong with the paths...

Should it really be 'path' in this line in configure.php in admin/includes?

$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
16 May 2012, 9:42 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Admin page blank after upgrade from v13x

Yes, 'path' is correct.