Support » Fixing WordPress » Undefined Function gives me WHITE PAGE

  • 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p


    Volunteer Moderator

    – 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!

    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 ?



    Forum Moderator

    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.


    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!



    Forum Moderator

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

    The problem was PHP LIMIT too low.

    I solved the problem!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Undefined Function gives me WHITE PAGE’ is closed to new replies.