Issues in WP-ADMIN from autoload class

Issue #19 resolved
Luke Nelson created an issue

Warnings on evofit dev

Warning: scandir(C:\inetpub\evofit.cloud/wp-content/themes/simpods-mvc-child/mvc/admin/models,C:\inetpub\evofit.cloud/wp-content/themes/simpods-mvc-child/mvc/admin/models): The system cannot find the file specified. (code: 2) in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 132

Warning: scandir(C:\inetpub\evofit.cloud/wp-content/themes/simpods-mvc-child/mvc/admin/models): failed to open dir: No such file or directory in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 132

Warning: scandir(): (errno 2): No such file or directory in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 132

Warning: array_reverse() expects parameter 1 to be array, bool given in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 135

Warning: array_search() expects parameter 2 to be array, null given in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 137

Warning: array_search() expects parameter 2 to be array, null given in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 138

Warning: count(): Parameter must be an array or an object that implements Countable in C:\inetpub\evofit.cloud\wp-content\themes\simpods-mvc\mvc\simpods_autoload.class.php on line 142

Comments (3)

  1. Jamin Xu

    The models folders are not available in the child theme. Added a file_exists check to skip the scan when they are not available.

  2. Log in to comment