Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Module Manager errors

$
0
0
Hi, I've come across several issues with the Module Manager. When I run the admin page I get the following errors:
——————————————————————————————————————
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:595 – touch(): Unable to create file /thewebists/www/thewebists.com.git/wp-content/_modulemanager_tmp_//thewebists/www/thewebists.com.git/wp-content/______lock_____ because No such file or directory
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:578 – scandir(/thewebists/www/thewebists.com.git/wp-content/_modulemanager_tmp_/.htaccess): failed to open dir: Not a directory
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:578 – scandir(): (errno 20): Not a directory
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:578 – array_diff(): Argument #1 is not an array
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:579 – Invalid argument supplied for foreach()
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:584 – rmdir(/thewebists/www/thewebists.com.git/wp-content/_modulemanager_tmp_/.htaccess): Not a directory
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:578 – scandir(/thewebists/www/thewebists.com.git/wp-content/_modulemanager_tmp_/______lock_____): failed to open dir: Not a directory
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:584 – rmdir(/thewebists/www/thewebists.com.git/wp-content/_modulemanager_tmp_/______lock_____): Not a directory
WARNING: wp-content/plugins/toolset-module-manager/classes/ModuleManager.php:606 – unlink(/thewebists/www/thewebists.com.git/wp-content/_modulemanager_tmp_//thewebists/www/thewebists.com.git/wp-content/______lock_____): No such file or directory
——————————————————————————————————————
First, there seems to be a problem in plugin.php where you define the following:
30: define('MODMAN_TMP_PATH',WP_CONTENT_DIR.'/_modulemanager_tmp_');
31: define('MODMAN_TMP_LOCK',WP_CONTENT_DIR.'/______lock_____');

In ModuleManger.php you do the following which gives an incorrect path:
$lock=MODMAN_TMP_PATH.$DS.MODMAN_TMP_LOCK;

The fix is to change the plugin php definitions to:
define('MODMAN_TMP_PATH',WP_CONTENT_DIR.'/_modulemanager_tmp_');
define('MODMAN_TMP_LOCK','______lock_____');

The other errors are to do with passing file paths and not dir paths to the delTree function.

Lastly, I couldn't export and got the following in my apache error log:
PHP Warning: array_merge(): Argument #1 is not an array in /thewebists/www/thewebists.com.git/wp-content/plugins/wp-views/inc/wpv-import-export.php on line 809
and
PHP Warning: array_merge(): Argument #1 is not an array in /thewebists/www/thewebists.com.git/wp-content/plugins/wp-views/inc/wpv-import-export.php on line 515

The problem is that you're looking for the global $_wp_additional_image_sizes, which in my case isn't defined. I've commented these two lines out and it works now.

Let me know if you require any further data from me to fix these issues.

Regards,
Andy @ The Webists

P.S. Do you have a bug tracking system I could submit this kind of info into?


Viewing all articles
Browse latest Browse all 20145

Trending Articles