Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyrocms Pro: Fatal error with "Module_import.php" on site creation #3333

Closed
angiechan opened this issue Jun 17, 2014 · 1 comment
Closed

Comments

@angiechan
Copy link

Using Pyrocms Pro. Creating a new site in the multi-site manager throws fatal error:

PHP Fatal error:  Call to a member function info() on a non-object in /www/pyrocms/system/cms/modules/sites/libraries/module_import.php on line 33, referer: http://mysite.local.domain.com/sites/create

I have some non-core modules in my addons folder. Before I had these modules, the site creation worked fine. Now that I have some modules, I get the fatal error. I tracked it down and it looks like the problem might be here:

system/cms/modules/sites/library/Module_import.php:149

Existing:
$this->install($slug, true);
Should probably be:
$this->install($slug, $is_core);

PHP Stack trace:, referer: http://mysite.local.domain.com/sites/create
PHP   1. {main}() /vagrant/www/cms-core/index.php:0, 
PHP   2. require_once() /vagrant/www/cms-core/index.php:273, 
PHP   3. call_user_func_array:{/vagrant/www/cms-core/system/codeigniter/core/CodeIgniter.php:355}() /vagrant/www/cms-core/system/codeigniter/core/CodeIgniter.php:355, 
PHP   4. Sites->create() /vagrant/www/cms-core/system/codeigniter/core/CodeIgniter.php:355, 
PHP   5. Sites_m->create_site() /vagrant/www/cms-core/system/cms/modules/sites/controllers/sites.php:151, 
PHP   6. Module_import->import_all() /vagrant/www/cms-core/system/cms/modules/sites/models/sites_m.php:108, 
PHP   7. Module_import->install() /vagrant/www/cms-core/system/cms/modules/sites/libraries/module_import.php:151, 

Anyways, I changed it and site creation now works for me.

@RyanThompson
Copy link
Member

Where did you put your custom modules? Chances are they are flagging as core erroneously or they are in the system/cms/addons folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants