CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Odd PHP error situation (http://www.codingforums.com/showthread.php?t=288347)

>ssp-cdr< 02-26-2013 08:15 PM

Odd PHP error situation
 
Occasionally I've seen this error happen on a Wordpress installation I manage:
Fatal error: Call to undefined function define() in /home/blog012/public_html/index.php on line 14

What is really odd is that defiine() is a built-in PHP function. If PHP is running then the function should always be available.

Could this type of error then indicate there is something wrong elsewhere in the system, like PHP isn't configured properly?


This is the source code of index.php, there's nothing wrong with it, just posting it so we can all see that.

Code:

<?php
/**
 * 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 */
require('./wp-blog-header.php');
?>

Any help is appreciated, thanks! :)

Fou-Lu 02-26-2013 08:30 PM

This appears to be a bug with APC when compiled with NTS PHP. There's no resolution indicated here: https://bugs.php.net/bug.php?id=62851

>ssp-cdr< 02-26-2013 11:58 PM

Oh great thanks that must be it


All times are GMT +1. The time now is 07:31 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.