Hello,
I have a problem when installing a wordpress addon, upon loading the addon I get the following error. I know that this addon works in a standalone wordpress install. So I am directing my debugging efforts towards the WOZ module.
This is the error returned on the Zen Cart page & in the Zen Cart debugger log
Code:
Fatal error: Call to a member function add_current_page() on a non-object in /home/elektrk2/public_html/isellortrade/includes/autoload_func.php on line 90
And here is the code from line 90 of autoload_func.php.
Line 90 itself is blank??? but this is the code bellow
Code:
* include an init_script as specified by autoloader array
*/
if (file_exists($baseDir . $entry['loadFile'])) include($baseDir . $entry['loadFile']); else $debugOutput .= 'FAILED: ';
$debugOutput .= 'include(\'' . $baseDir . $entry['loadFile'] . '\');' . '<br />';
break;
case 'class':
if (isset($entry['classPath'])) {
$classPath = $entry['classPath'];
} else {
$classPath = DIR_FS_CATALOG . DIR_WS_CLASSES;
}
The wordpress debugger returns this on the first line
Code:
# 1 PHP error
mysql_num_rows()
/!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\
Then about 18 lines that follow this pattern
Code:
/!\ PHP WARNING : dir(includes/templates/apple_zen/images/icons) [function.dir]: failed to open dir: No such file or directory /!\
After this a lot of results (about 400 lines)most of which follow the pattern of
Code:
PHP notice : Constant FOOTER_TEXT_REQUESTS_SINCE already defined
PHP notice : xxxxx_xxxx_xxxx already defined
then the end of the file has this
Code:
# 432 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\
# 433 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\
# 434 PHP error functions_lookups.php 494 zen_get_configuration_key_value() PHP notice : Undefined property: queryFactoryResult::$fields
# 435 PHP error functions_lookups.php 494 zen_get_configuration_key_value() PHP notice : Undefined property: queryFactoryResult::$fields
# 436 PHP error fopen() /!\ PHP WARNING : fopen(/home/elektrk2/public_html/isellortrade/includes/configure.php) [function.fopen]: failed to open stream: Permission denied /!\
# 437 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\
# 438 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\
# 439 PHP error wordpress.php 26 require_once() PHP notice : Undefined variable: cat
I also attached the complete debug file for wordpress.
wordpress_errors.zip
So I am a bit lost at this point as to what I should be searching for. I am just a beginner at PHP, but I know how to read the code fairly well.
Any suggestions or help on which files I should be looking at?
Thanks
Bookmarks