Undefined Function gives me WHITE PAGE (8 posts)

  1. LiviutzuAs
    Posted 2 years ago #

    I get this error in error_log:

    [18-Sep-2013 15:13:32 Europe/Bucharest] PHP Fatal error: Call to undefined function define() in /home/traimuzi/public_html/index.php on line 14

    When this error appears, front-end ( visitors view ) is a blank page.

    I don`t understand why!

    Here is the index.php code:

     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     * @package WordPress
     * Tells WordPress to load the WordPress theme and output it.
     * @var bool
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */

    Here is the website: Traieste Muzica

  2. Tara
    Volunteer Moderator
    Posted 2 years ago #

    - Fatal error in the output generally indicates either: (1) your theme doesn't like your version of WordPress (2) you have a plugin that doesn't like your version of WordPress (3) or you have an incomplete install/upgrade.

    Have you tried:

    -deactivating ALL plugins temporarily to see if this resolves the problem. If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can't get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application your host provides. If applicible, also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old.
    - To rule out any theme-specific issue, try switching to the unedited default theme for a moment using the WP dashboard. If you don't have access to your admin area, you can switch to the default theme by renaming your current theme's folder in wp-content/themes and adding "-old" to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).
    - If the above troubleshooting steps fail to resolve the issue, try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!

  3. LiviutzuAs
    Posted 2 years ago #

    Thanks for advices.

    The problem is that the wite page is not all the time. My hosting has set 48M memory limit... Could be that error because of this ?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

  5. Lorenzo Orlando Caum
    Posted 2 years ago #

    If the error is happening sporadically, then this may be related to the site running out of memory.

    The current version of WP requests 40M.

    Get in touch with your host and ask them to raise it to a higher amount such as 64M.

    Reference: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

  6. LiviutzuAs
    Posted 2 years ago #

    Thanks. That was my problem. In wp admin i have that problem from the begining, white pages in admin, and now i have that problem in my frontend...

    I will buy another hosting with 128M... hope that was the problem.

    Have a good day and thanks for helping!

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    Try deactivating a couple of plugins to ease the memory load for now.

  8. LiviutzuAs
    Posted 1 year ago #

    The problem was PHP LIMIT too low.

    I solved the problem!

Topic Closed

This topic has been closed to new replies.

About this Topic