Forums

404 error on Home page only suddenly appeared after working for the past yer (5 posts)

  1. burnednomore
    Member
    Posted 1 year ago #

    My USP upgraded their systems with Zend Optimizer and actually created this problem initially. Spent hours with them doing the tweaking with code in my PHP.ini file so that it read properly but nothing they did corrected the problem.

    They say it has to do with wordpress itself. Now all the other pages load just fine - it's only the home page that does not. Here's a little dialoge on what we did to correct:
    ----------------------------------------------------------------
    We're sorry for the confusion. I do see that error in your PHP error logs. We have an article in our knowledge base that addresses this issue (http://helpdesk.bluehost.com/index.php/kb/article/000303). It says:

    If you are having a problem with the Zend Opimizer please ensure the file called php.ini contains the following lines.

    [Zend]
    zend_extension="/usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so"

    I checked the coding of your php.ini and it does not have this line of code in it. If you update your php.ini file to use the above code, it should resolve the error that is showing up related to Zend Optimizer.

    1. Log into http://www.Bluehost.com.
    2. Click on File Manager and choose Web Root.
    3. Navigate to the directory your program uses for it's php.ini. This is generally the public_html directory, which should already be open.
    4. Right click on the php.ini file and select Code Edit.
    5. Enter the following code, starting with [Zend], at the bottom of the page.

    Because Zend Optimizer has been standardized on all our servers, so that varying versions do not cause conflicting PHP.INI files, make sure your [Zend] portion appears as below in your PHP.INI:

    [Zend]
    zend_optimizer.optimization_level=15
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS
    zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

    If needed you can set your entire account to use the php.ini file in your public_html directory for all php.ini calls. This is done with the PHP Config tool in your cPanel by choosing the PHP5 (Single php.ini) option.

    Finally it may still be necessary to copy the php.ini file into the folder your script is stored in or it's administration/configuration folder. You'll need to consult the script's documentation to find the needed location.
    --------------------------------------------------------------

    All of this has been done and by them (Bluehost).

    What can you offer as to correcting this in WordPress?

  2. James
    Happiness Engineer
    Posted 1 year ago #

    I don't see how upgrading Zend could cause something like this with just the core, unless the server was misconfigured along the way, though I suppose there may be a plugin or theme functions conflict at work here.

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Default theme (WordPress 1.5 - 2.9.2) or the Twenty Ten theme (WordPress 3.0 and higher) to rule-out a theme-specific issue.

  3. burnednomore
    Member
    Posted 1 year ago #

    Thanks for your quick response; I might add that the template for the home page shows up BUT the content in the middle comes up with a 404 message.Al other pages load perfectly. Also the Title description at the top is cut off. Here's what you'll see: http://www.contractorsfromhell.com

    Does that change your fix?

    many thanks for your help!

  4. James
    Happiness Engineer
    Posted 1 year ago #

    In that case, you may need to repair the database.

    Access your WordPress database via phpMyAdmin (most hosting providers offer this in their control panel), check all of the tables, and choose "Repair tables" from the pull-down menu.

    If that doesn't work, try deactivating plugins and switching your theme as described above.

  5. bh_WP_fan
    Member
    Posted 1 year ago #

    Here are some articles which may help:

    Database Repair: http://helpdesk.bluehost.com/index.php/kb/article/000496

    Plugins Problems: http://wordpress.shadowlantern.com/2010/10/fixing-wordpress-plugin-problems/

    You should be able to change your template to the twentyten template for testing directly in your dashboard, but if you have any issues with that, this article should help: http://wordpress.shadowlantern.com/2009/11/change-wordpress-theme-in-phpmyadmin/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags