[wp-hackers] "Plugin could not be activated because it triggered a fatal error." But what is the error?

James Nachlin jnachlin at sixapart.com
Thu Mar 11 23:35:43 UTC 2010


I have added a third line, based on looking at wp-settings.php.

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_CONTENT_DIR', '/Users/jnachlin/Sites/wordpress/wp-content/' );

But still no output anywhere from this "fatal error".  If anyone can 
suggest a hack, like some code that preempts the "Plugin could not be 
activated because it triggered a fatal error" message, id be glad to 
hack.  I can always de-hack.

I'm lookin at about line 248 of wp-admin/plugins.php.

Thanks,
Jim

James Nachlin wrote:
> Thank you Dougal,
> 
> I have added those lines to wp-config.php.  I have even restarted the 
> httpd.
> 
> These are the first two non-comment lines of wp-config.php:
> define('WP_DEBUG', true);
> define( 'WP_DEBUG_LOG', true );
> 
> I do not see a log file in my wp-content/ directory.
> 
> Every folder between wp-content/ and / is chmod 777.
> 
> Is there some other option, maybe in php.ini, to allow php to write 
> files (I am on OS X).
> 
> Thanks again,
> Jim
> 
> Dougal Campbell wrote:
>> On Mar 11 2010 2:12 PM, James Nachlin wrote:
>>> Thanks Matthew and Austin for your answers.
>>>
>>> I don't think that the missing semicolon was the [only] problem.
>>>
>>> But the larger issue is that the server will have to start reporting 
>>> clear errors.  If this plugin gets more complex, there will be no way 
>>> to scan the entire set of code files looking for an error.
>>>
>>> There must be a way that plugin developers view the errors their 
>>> plugins cause.
>>
>> Try adding this to your wp-config.php:
>>
>>   define( 'WP_DEBUG', true );
>>   define( 'WP_DEBUG_LOG', true );
>>
>> Then look for the 'debug.log' file in your wp-content directory (which 
>> must be writable by your server).
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 


More information about the wp-hackers mailing list