Page 1 of 8 123 ... LastLast
Results 1 to 10 of 78
  1. #1
    Join Date
    Jul 2016
    Posts
    29
    Plugin Contributions
    0

    Default Suddenly Front end blank. Admin fine.

    Hello,

    I have been pulling my hair out for 36 hours straight trying to fix this for a client.

    Their website went down yesterday with no explanation. No changes no nothing.

    There are no sales occurring on this site. It is used as a catalog of sorts for customers.

    Issue experienced: admin side loads fine, full access. Front end will not load in any way. Just a blank page with blank header and body.

    It is hosted at godaddy. The original developer had most of the site in a subfolder with a bunch of "target redirects" in the root. I could not edit, copy, or otherwise mess with them so I deleted all of them and recreated the URL redirects with godaddy's interface. That doesn't seem to be the issue.

    I've seen this happen in other threads while surfing around but mostly to the admin side so I don't know what to do. I've looked through the includes/configure.php file as well as the configure in the admin side. All values are what they are supposed to be

    Summary of actual changes made: upgraded php 5.2 to 5.3 on the Godaddy server side (the admin server info recognized the change) and deleted those weird redirects and reinstated them with the Godaddy interface. I've made many other changes and then reverted back when they didn't fix the issue.

    I am happy to provide any information to help me figure this out. The only thing I found remotely similar was someone who had the same issue and rebuilt the site and replaced 3 database tables. She couldn't figure out the exact culprit but that some database table had been corrupted in some way.

    I debated moving the site to the root folder and following that process but the redirects I set are working fine and I'm being directed to all the correct pages. They just won't load.


    I repeat no edits or revisions of any sort were applied before this site refused to load. There are NO error logs of any kind (and I've added all the show error stuff and still do not receive error messages).

    Any help would be GREATLY appreciated. I thought about upgrading to 1.5.5 but I don't know of that will mess up the template or create MORE issues on top of this error so I am avoiding that for now.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Front end blank. Admin fine.

    Quote Originally Posted by Nepherael View Post
    Their website went down yesterday with no explanation. No changes no nothing.
    *something* changed, else you wouldn't be having a problem.
    Quote Originally Posted by Nepherael View Post
    It is hosted at godaddy. The original developer had most of the site in a subfolder with a bunch of "target redirects" in the root. I could not edit, copy, or otherwise mess with them so I deleted all of them and recreated the URL redirects with godaddy's interface. That doesn't seem to be the issue.
    A correctly installed Zencart doesn't need redirects. Try removing them completely (I'm assuming the redirects are in the .htaccess file in the root folder of the store).

    Quote Originally Posted by Nepherael View Post
    I've seen this happen in other threads while surfing around but mostly to the admin side so I don't know what to do.
    First things 1st -- check the log files.


    Quote Originally Posted by Nepherael View Post
    I've looked through the includes/configure.php file as well as the configure in the admin side. All values are what they are supposed to be
    We don't know that, and we have been led astray many times when people tell us that everything is as they are supposed to be, even though this may not be the case.

    Quote Originally Posted by Nepherael View Post
    Summary of actual changes made: upgraded php 5.2 to 5.3
    Was this *before* the problem started, or after? - old versions of zencart don't play nicely with the later versions of PHP.

    Quote Originally Posted by Nepherael View Post
    on the Godaddy server side (the admin server info recognized the change) and deleted those weird redirects and reinstated them with the Godaddy interface. I've made many other changes and then reverted back when they didn't fix the issue.
    Have you checked the log files?

    Quote Originally Posted by Nepherael View Post
    I am happy to provide any information to help me figure this out. The only thing I found remotely similar was someone who had the same issue and rebuilt the site and replaced 3 database tables. She couldn't figure out the exact culprit but that some database table had been corrupted in some way.
    Blank screens can be caused by any number of things - Each case needs to be treated on their own merits.
    This may help.....
    https://www.zen-cart.com/content.php?124-blank-page

    Quote Originally Posted by Nepherael View Post
    I debated moving the site to the root folder and following that process but the redirects I set are working fine and I'm being directed to all the correct pages. They just won't load.
    This will only complicate matters - you'll end up with the original problem, plus any new problems associated with the move,

    Quote Originally Posted by Nepherael View Post
    I repeat no edits or revisions of any sort were applied before this site refused to load.
    *Something* changed.

    Quote Originally Posted by Nepherael View Post
    There are NO error logs of any kind (and I've added all the show error stuff and still do not receive error messages).
    We've heard this before too. What version of Zencart are you using, and which folder(s) did you look at for the error logs? (older versions placed them in the /cache/ folder, newer versions place them in the /logs/ folder.

    Quote Originally Posted by Nepherael View Post
    Any help would be GREATLY appreciated. I thought about upgrading to 1.5.5 but I don't know of that will mess up the template or create MORE issues on top of this error so I am avoiding that for now.
    Again, all this will (probably) do is compound the problem - On the other hand, if the problem is due to a PHP upgrade, this may also be the solution you are seeking. Personally, I wouldn't risk it, it would be easier to "prove the point" first by downgrading to the older PHP and then deciding whether to upgrade (which you should anyway if you are still using a V1.3.x) - but only *after* proving that this is the cause.

    Sorry I can't give any definitive answers, there are too many possibilities that can cause the same symptoms.

    If using zen 1.3.8 this debug tool may help
    https://www.zen-cart.com/downloads.php?do=file&id=606

    Cheers
    RodG

  3. #3
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Front end blank. Admin fine.

    When reviewing the actions of the link RodG provided, be sure to also consider the advanced problem solving area at the bottom of that FAQ after the other methods do not resolve the issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jul 2016
    Posts
    29
    Plugin Contributions
    0

    Default Re: Front end blank. Admin fine.

    Something changed yes but I believe it was a server side change with Godaddy causing php not to load. Problem is, it's not something they are fessing up to and it could be as simple as a security change but it's not like I can reverse it so I have to fix it on my end. I am currently the only one with admin access to this site and the hosting able to make any changes and I haven't been near it in months.

    There are no errors thrown. Not in the Zen logs (yes I looked in both folders), not in the server logs, not even when I put all the php error reporting on. Because PHP won't load at all.

    I believe you that redirects are not required but it has functioned for years with the redirects so something about the way it was built requires them. When I took the redirects out it could not find the Zencart files. I just got the Zen page saying "this website coming soon. You didn't upload it right". The configure.php files have the values for the sub directory but that doesn't matter because Godaddy does not allow subdirectory installs of the primary domain (a fight I've had with them multiple times) so I have to have the redirects because the main URL will always point to the root directory without it anyway.

    The 2 changes I made were after the website went down. PHP 5.3 cannot be downgraded to 5.2 at this point.

    I am on Zen 1.5.1

  5. #5
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Front end blank. Admin fine.

    Say that PHP won't load at all. If you put a file in your store's root named as you desire (pick something obscure) ending with .php with the following content, and see the results.

    Code:
    <?php echo phpinfo();
    Then try to access that file by going to site/folder/filename.php

    Once that is complete and data collected about the php version and related information, remove that file from the server.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: Front end blank. Admin fine.

    For some additional data-gathering, you can edit the file /includes/application_top.php, finding this line:
    Code:
    define('DEBUG_AUTOLOAD', false);
    and changing that to read
    Code:
    define('DEBUG_AUTOLOAD', true);
    That will cause the auto-load status to be displayed for each item processed. There might be a missing class-file or some other obscure issue and that display will aid in that determination.

    Remember to turn that back to false (no quotes) when you're finished.

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Front end blank. Admin fine.

    Quote Originally Posted by Nepherael View Post
    The 2 changes I made were after the website went down. PHP 5.3 cannot be downgraded to 5.2 at this point.

    I am on Zen 1.5.1
    So, it probably not PHP compatibility related...

    • Zen Cart v1.5.1 is compatible with PHP 5.2.14 thru PHP 5.3.x.


    *unless* perhaps the site has some old modules installed.

    Please follow mc1-8s and lat9s suggestions. They may help providefurther clues.

    One other suggestion. Im a little concerned about the lack of anything in the log folders, so, load the admin configure php file into a text editor (make a backup first) ... remove the semi colon from any one line in the file, resave it, then try to log into the admin. The site should crash. Now recheck the log files. If there is still nothing there check the folder permissions, etc, etc, to figure out why nothing is being logged. Once youve solved that mystery you will probably start seeing the logs from the store front errors. Sometimes the total absence of error logs is a clue in its own right.

    Cheers
    Rod
    Last edited by RodG; 7 Jul 2016 at 01:36 PM.

  8. #8
    Join Date
    Jul 2016
    Posts
    29
    Plugin Contributions
    0

    Default Re: Front end blank. Admin fine.

    Quote Originally Posted by RodG View Post
    So, it probably not PHP compatibility related...

    • Zen Cart v1.5.1 is compatible with PHP 5.2.14 thru PHP 5.3.x.


    *unless* perhaps the site has some old modules installed.

    Please follow mc1-8s and lat9s suggestions. They may help providefurther clues.

    One other suggestion. Im a little concerned about the lack of anything in the log folders, so, load the admin configure php file into a text editor (make a backup first) ... remove the semi colon from any one line in the file, resave it, then try to log into the admin. The site should crash. Now recheck the log files. If there is still nothing there check the folder permissions, etc, etc, to figure out why nothing is being logged. Once youve solved that mystery you will probably start seeing the logs from the store front errors. Sometimes the total absence of error logs is a clue in its own right.

    Cheers
    Rod
    It works if I do something like that. I changed the database password and generated an error log for that but that is the only log file that has generated since I started this venture. Server logs and Zen logs.

    I will try the debugging code.

    If it's possible to get a fresh install but keep all the original files to keep the layout and site information that would be preferable but that is something that would be quite involved because I didn't build it the first time around. I'm almost willing to pay someone to fix it at this point because this is such an obscure issue

    Here is the closest issue I can find to mine (i.e. front end blank not admin blank). I cannot do her solution because I can't just rebuild the site and transfer database tables. The site I'm working on went blank without a php upgrade too so I didn't do the same thing that caused her error

    https://www.zen-cart.com/showthread....ank-page/page4

  9. #9
    Join Date
    Jul 2016
    Posts
    29
    Plugin Contributions
    0

    Default Re: Front end blank. Admin fine.

    Quote Originally Posted by lat9 View Post
    For some additional data-gathering, you can edit the file /includes/application_top.php, finding this line:
    Code:
    define('DEBUG_AUTOLOAD', false);
    and changing that to read
    Code:
    define('DEBUG_AUTOLOAD', true);
    That will cause the auto-load status to be displayed for each item processed. There might be a missing class-file or some other obscure issue and that display will aid in that determination.

    Remember to turn that back to false (no quotes) when you're finished.
    Nothing output. Blank white page. blank header, blank body. Nothing loads but admin side works fine.

  10. #10
    Join Date
    Jul 2016
    Posts
    29
    Plugin Contributions
    0

    Default Re: Front end blank. Admin fine.

    Quote Originally Posted by mc12345678 View Post
    Say that PHP won't load at all. If you put a file in your store's root named as you desire (pick something obscure) ending with .php with the following content, and see the results.

    Code:
    <?php echo phpinfo();
    Then try to access that file by going to site/folder/filename.php

    Once that is complete and data collected about the php version and related information, remove that file from the server.
    I've got a huge list of the same stuff I can see on the admin side of the site when I click the info page. PHP version and all the tables that I can get if I go to "version" in the admin of the site.

    It's quite a large list. Should I paste it here somewhere?

 

 
Page 1 of 8 123 ... LastLast

Similar Threads

  1. Reinstall: Functioning Admin...No Front End
    By ZC Newbie in forum Installing on a Windows Server
    Replies: 1
    Last Post: 9 Jan 2012, 10:56 AM
  2. Front End Pages Blank after Admin folder Rename
    By corygatz in forum General Questions
    Replies: 22
    Last Post: 19 Dec 2010, 12:28 AM
  3. Categories not showing up in front end but it is added in back end
    By raaj.smvec in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 22 Apr 2010, 12:06 PM
  4. Admin works -- FRONT end doesn't show!
    By madmumbler in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 16 Oct 2007, 03:43 PM
  5. Front-end admin?
    By jernej in forum General Questions
    Replies: 6
    Last Post: 10 Jan 2007, 12:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR