[wp-hackers] DOMDocument in plugin

Todd Iceton todd at wpaudio.com
Tue Sep 22 02:46:39 UTC 2009


Re-checked the error logs and it turns out I was confusing my local and 
remote terminal windows.  Got a very obvious
> PHP Fatal error:  Class 'DOMDocument' not found
in the log... turns out the php-xml module isn't installed by default in 
CentOS.  I was planning using DOMDocument to traverse links in the 
content, but it looks like
> There is no installation needed to use these functions; they are part 
> of the PHP core.
isn't exactly the case.  Can't have my plugin causing these kinds of 
problems, so I'll have to do something else.

Apologies for the mistake, and thanks for your help!


Jeremy Visser wrote:
> On Mon, 2009-09-21 at 18:57 -0700, Todd Iceton wrote:
>    
>> The same line, and all DOMDocument functionality, are working outside of
>> WP.  Also tried on multiple WP installs (2.8.4 and 2.5) with the same
>> result.
>>
>> No entries in the server error log.
>>      
>
> You cannot possibly hope to fix this without finding out what the actual
> error is. Do calls to error_log() show up in the error log? If you make
> a syntax error, do they show up? Is PHP running out of memory (try
> increasing your memory_limit in php.ini)?
>
> _______________________________________________
> 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