Forums / General Questions / Blank screen when i goto Admin login...... help please...

Blank screen when i goto Admin login...... help please...

Views: 2,582

Results 1 to 18 of 18
20 Jul 2015, 8:12 AM
#1
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Blank screen when i goto Admin login...... help please...

Hi there

I have just uploaded a fresh copy of Zencart to my hosting space.

The installation was good and i had no issues.

When i goto my domain name the shopping cart is there with no errors.

However, if i then goto my admin i get a blank screen.

I have searched online for similar issues and checked the following :

*Checked to see if the files were all uploaded correctly.... they were

checked the path to the Admin directory ... and thats fine.

Checked my HTaccess file - thats fine

The permissions are set as required for this installation.
*

So, i am really stuck now and not really sure what else i can try ??

can anyone help or has anyone come across this situation before.....??

I forgot to mention - the hosting package that i have is capable of running zencart with no issues.

the reason why i reinstalled a fresh version of zencart was that i wanted to start a new site so i removed the previous installation of zencart - so i know that zencart works fine...

please help....

thanks

20 Jul 2015, 11:13 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

Any error log files in the /logs folder?

20 Jul 2015, 1:34 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

Do any of the posts in the following thread relate? Also really helps to have the information further requested in the posting tips. (Reply to a message and scroll up.)

http://www.zen-cart.com/showthread.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4

And of courrse when presented with a blank or partial blank screen: http://www.zen-cart.com/content.php?124-blank-page

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jul 2015, 1:35 PM
#4
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

stevesh:

Any error log files in the /logs folder?

I have just reinstalled the script again.... just double checking everything as i go on...

the error logs states this : -

[20-Jul-2015 14:28:57] PHP Parse error: syntax error, unexpected T_STATIC in /websites/123reg/LinuxPackage22/fa/tm/oo/fatmoomoo.com/public_html/admin/includes/classes/class.admin.zcObserverLogEventListener.php on line 118

hope that helps?

thanks

20 Jul 2015, 1:44 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

amebb:

I have just reinstalled the script again.... just double checking everything as i go on...

the error logs states this : -

[20-Jul-2015 14:28:57] PHP Parse error: syntax error, unexpected T_STATIC in /websites/123reg/LinuxPackage22/fa/tm/oo/fatmoomoo.com/public_html/admin/includes/classes/class.admin.zcObserverLogEventListener.php on line 118

hope that helps?

thanks

Yup. Jumping ahead for those just joining, this indicates that PHP 5.2 is being used to serve the ZC store. Need to seek how to increase that to 5.6 (current preferred) through the host...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jul 2015, 3:47 PM
#6
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

mc12345678:

Yup. Jumping ahead for those just joining, this indicates that PHP 5.2 is being used to serve the ZC store. Need to seek how to increase that to 5.6 (current preferred) through the host...

Ok... am i right in thinking that my previous version of zencart worked because it was using php5.2 where the new version requires php 5.6??

If that is the case would my whole site not work ? in this case the front end is fine and its the back end that is not working - ie the Admin section...

Thank you

20 Jul 2015, 4:07 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

amebb:

Ok... am i right in thinking that my previous version of zencart worked because it was using php5.2 where the new version requires php 5.6??

If that is the case would my whole site not work ? in this case the front end is fine and its the back end that is not working - ie the Admin section...

Thank you

Starting with this: http://www.zen-cart.com/content.php?48-what-are-the-server-requirements-to-run-zen-cart
Which identifies first the posted/design limitations of the various versions of ZC.

PHP 5.6 is not the required verson to operate ZC. In fact there are temporary posted solutions to operate ZC 1.5.4 using PHP 5.2 in one of the previous posts. The thing is, the PHP versions are evolving to where in the very near future PHP 5.4 is going to be considered obsolete, then of course soon 5.5. A majority if not the main reason for these version retirements is in the name of security...

Furthermore if your host doesn't support/offer these more recent versions, then would want to question their ability and follow through on maintaining other aspects of security... Only requires one weak link to break a chain...

As for other operation being impacted, no not entirely, it fully depends on what has happened between PHP versions, like for example PHP 5.3 supports function calls such as mysql_query(), but PHP 5.5 for example doesn't but does support mysqli_query()... Thing is, ZC handles/addresses that type thing by having setup functions that are universal and work with the PHP version applicable to that ZC version... This way if a plugin only accesses the database using a ZC function, the code will from the perspective of database access always be up-to-date and functional for the ZC store operated within the design parameters...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jul 2015, 7:57 PM
#8
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

Thank you for your reply.

The host that i am using is pretty good. Its https://www.123-reg.co.uk

Previously, a few days ago i had zencart version 1.5.3 working on the same hosting package that i am using now. the site worked fine.

So, sinse then NOTHING has changed apart from a fresh install of Zencart.

Now, i have read a few threads on the compatability of Php and what versions are used stabily on certain zecart versions.

Zencart version v1.5.3 and zencart v1.5.4 are both compatable with Php version 5.6.... see below...:

**
Zen Cart v1.5.2 is compatible with PHP 5.3.7* thru PHP 5.6
Zen Cart v1.5.3 is compatible with PHP 5.3.7* thru PHP 5.6
Zen Cart v1.5.4 is compatible with PHP 5.3.7* thru PHP 5.6 (recommend PHP 5.5 or 5.6)**

So, i think that there may be another issue somewhere .....

I have spoken to the host and they have opened a ticket for me. Not sure when they can suggest anything

thanks for your help guys ...

20 Jul 2015, 8:06 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

The thing is the error message that has been reported is applicable to PHP 5.2 being loaded: http://www.zen-cart.com/showthread.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4

See post #2 the same type fix was NOT required with ZC 1.5.3... So yes upgrading the site could cause this message to now display.

Maybe I'm missing something but so far there has been no actual statement of what PHP version is currently being used/applied to the site... There is some vague reference to 5.6. Does an .htaccess file need to be used on this new site that was removed from the old files, is there one in the path for the other functional site but not this one? It would only be needed to support the host's requirement as ZC does not require an .htaccess file in the root of the store.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jul 2015, 8:09 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

Could try this...

In the root of your store, create a file with a filename of your random choosing using a standard text editor the filename is to end with .php and contains the following:

<?php echo phpinfo(); ?>

Store the file after editing/creating. Access the file and information about the php version and other settings should be diisplayed... Can report the results here then delete the file.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jul 2015, 8:39 PM
#11
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

Hi there

I apologize for not giving you the correct information about the PHP on my server.

here is the information you may need.

Server Free Disk Space = 882.15 GB
PHP O/S = Linux
PHP API Mode = cgi-fcgi
PHP Max Execution Time per page = 30
Register Globals = OFF
MySQL Support = ON
PHP Version = 5.2.17
PHP Safe Mode = OFF
PHP Sessions Support = ON
PHP Session.AutoStart = OFF
PHP session.use_trans_sid = OFF
Suggested SQL Cache Folder = /websites/123reg/LinuxPackage22/fa/tm/oo/****************/public_html/cache
PHP magic_quotes_runtime setting = OFF
PHP magic_quotes_sybase setting = OFF
PHP GD Support = ON
GD Version = GD bundled (2.0.34 compatible)
PHP ZLIB Compression Support = ON
PHP OpenSSL Support = ON
PHP cURL Support = ON
CURL NON-SSL Capability = Okay
CURL SSL Capability = Okay
PHP Upload Support = ON upload_max_filesize=8M; post_max_size=8M
PHP Upload TMP dir =
Apache .htaccess Support = ON

PHP Version 5.2.17 is used

21 Jul 2015, 12:57 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

So, while this really is something that could/should have been done by oneself, I found the following two help "files" posted by your host:

https://www.123-reg.co.uk/support/answers/Web-Hosting/Scripting/what-version-of-php-can-i-use-on-my-123-reg-hosting-account-4138/
And:
https://www.123-reg.co.uk/support/answers/Web-Hosting/Website-Help-and-Diagnostics/how-to-switch-the-php-version-4235/

I would think that either of these two would/could lead you to resolution of your issue rather than waiting on the host, but maybe that's just me...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Jul 2015, 8:53 AM
#13
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

mc12345678:

So, while this really is something that could/should have been done by oneself, I found the following two help "files" posted by your host:

https://www.123-reg.co.uk/support/answers/Web-Hosting/Scripting/what-version-of-php-can-i-use-on-my-123-reg-hosting-account-4138/
And:
https://www.123-reg.co.uk/support/answers/Web-Hosting/Website-Help-and-Diagnostics/how-to-switch-the-php-version-4235/

I would think that either of these two would/could lead you to resolution of your issue rather than waiting on the host, but maybe that's just me...

Thank you for your reply....

Let me explain what the confusion was regarding this issue.

The main front end of the site works good. The admin side dosnt work at all.
I did not realise that the PHP Version used by my hosting would effect this.

I was also running two other php scripts together with the shop script and they all worked fine with no issues.

Now, i have spoken to 123-reg and asked their technical team who assures me that the current version on my hosting package is the correct one for the zencart.

However, i went in to my hosting control panel and changed the php version from 5.2 to 5.6.

Then i went to my admin and guess what - it works great !

So, a massive thank you for ALL your replies and help - much appreciated !!! Beers on me guys !

Thanks

21 Jul 2015, 9:21 AM
#14
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

Glad it got worked out... Yes I didn't know about the other scripts so can certainly see where the concern on your side could be.. :) I also didn't want you to lose out on too many more sales if the issue could be quickly resolved. As stated in the earlier posts there were ways to immediately get online with 5.2.17 temporarily used, but glad that were able to get it all straight right away and with a preferred version of PHP.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Jul 2015, 9:44 AM
#15
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

thank you for your reply ... i sorted the previous issue out now i have another one that i am trying to fix too..., its the time zone error that i am getting ...

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /websites/123reg/LinuxPackage22/fa/tm/oo/*********.com/public_html/admin8/login.php on line 13

I am talking to 123-reg tech team who are trying to help .... lol

21 Jul 2015, 10:15 AM
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

Couple of options come to mind: set the timezone in the applicable php.ini or related initialization script, the other is to set it in: includes/extra_configures/set_time_zone.php

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Jul 2015, 10:25 AM
#17
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Blank screen when i goto Admin login...... help please...

amebb:

thank you for your reply ... i sorted the previous issue out now i have another one that i am trying to fix too..., its the time zone error that i am getting ...

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /websites/123reg/LinuxPackage22/fa/tm/oo/****.com/public_html//login.php on line 13

I am talking to 123-reg tech team who are trying to help .... lol

Ahh, shoot, missed an obvious fix/issue... I hope that this is a non-issue, but if the above post contained your actual admin directory, then it needs to be changed pronto... The change should simply require ftping into the root of the front end of the site (public_html folder) and then renaming the folder, all else should continue working now...

Thing is the admin directory is supposed to remain undisclosed to the internet side, else lots of unwanteds trying to get to it...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Jul 2015, 10:31 AM
#18
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Re: Blank screen when i goto Admin login...... help please...

mc12345678:

Ahh, shoot, missed an obvious fix/issue... I hope that this is a non-issue, but if the above post contained your actual admin directory, then it needs to be changed pronto... The change should simply require ftping into the root of the front end of the site (public_html folder) and then renaming the folder, all else should continue working now...

Thing is the admin directory is supposed to remain undisclosed to the internet side, else lots of unwanteds trying to get to it...

Yes the Admin directory has been renamed and its not disclosed to joe public. Your right about the weird freaks out there trying to get in.

123-reg have done something on their side on the server where the Time zone has been resolved.

I am now in the Admin side of the site doing what i need to do etc.... so, so far everything seems to work. fingers crossed that it will continue to do so.

Its funny how the host technical team always points to someone else rather than doing it themselfs!

thanks for your help...