php - Magento Sitemap Causing Error -


all sudden in admin side when go submit sitemap shows white screen. here's error logs show.

php fatal error:  call member function getid() on non-object in /home/investor/public_html/yourvaporizers.com/app/code/core/mage/adminhtml/controllers/sitemapcontroller.php on line 99 php fatal error:  call member function getcollection() on non-object in /home/investor/public_html/yourvaporizers.com/includes/src/mage_adminhtml_block_sitemap_grid.php on line 47 

not coder have no clue how fix this.

update - should of added whole error code.

stack trace: 0 /home/investor/public_html/yourvaporizers.com/includes/src/__default.php(63823): pdostatement->execute(array) 1      /home/investor/public_html/yourvaporizers.com/includes/src/varien_db_statement_pdo_mysql.php    (110): zend_db_statement_pdo->_execute(array) 2 /home/investor/public_html/yourvaporizers.com/includes/src/__default.php(63411): varien_db_statement_pdo_mysql->_execute(array) 3 /home/investor/public_html/yourvaporizers.com/includes/src/__default.php(52806): zend_db_statement->execute(array) 4 /home/investor/public_html/yourvaporizers.com/includes/src/__default.php(53842): zend_db_adapter_abstract->query('select `mg_core...', array) 5 /home/investor/public_html/yourvaporizers.com/includes/src/__default.php(54687): zend_db_adapter_pdo_abstract->query('select `mg_core...', array) 6 /home/investor/p in /home/investor/public_html/yourvaporizers.com/includes/src/__default.php on line 63829 [07-apr-2014 07:51:25 utc] php fatal error:  call member function getcollection() on non-object in     /home/investor/public_html/yourvaporizers.com/includes/src/mage_adminhtml_block_sitemap_grid.php on line 47 [07-apr-2014 07:51:28 utc] php fatal error:  call member function getid() on non-object in /home/investor/public_html/yourvaporizers.com/app/code/core/mage/adminhtml/controllers/sitemapcontroller.php on line 99 [07-apr-2014 07:51:32 utc] php fatal error:  call member function getcollection() on non-object in /home/investor/public_html/yourvaporizers.com/includes/src/mage_adminhtml_block_sitemap_grid.php on line 47 [07-apr-2014 08:07:18 utc] php fatal error:  call member function getcollection() on non-object in /home/investor/public_html/yourvaporizers.com/includes/src/mage_adminhtml_block_sitemap_grid.php on line 47 [07-apr-2014 10:03:37 utc] php fatal error:  class 'mage_sitemap_model_sitemap' not found in /home/investor/public_html/yourvaporizers.com/app/code/community/creare/creareseocore/model/sitemap/sitemap.php on line 4 

here's line 99 of file

#file: app/code/core/mage/adminhtml/controllers/sitemapcontroller.php $this->_title($model->getid() ? $model->getsitemapfilename() : $this->__('new sitemap')); 

so, looks magento trying call getid on $model variable, $model not object. if $model assigned/defined, in stock system, see

#file: app/code/core/mage/adminhtml/controllers/sitemapcontroller.php $model = mage::getmodel('sitemap/sitemap'); 

so, there's 2 possible reasons error. first, you, or else, installed extension magento system , did (class rewrite, behavior change) caused recoverable error when attempting instantiate sitemap/sitemap model. results in $model being false, , leads error.

the second has change file or site map model file (either in core or 1 of code pools community, local) , did leads $model being undefined.

debugging steps include diffing against freshly downloaded copy, , disabling extensions related site map functionality (or installed recently). for

not coder have no clue how fix this.

the better question might be

why non-coder working system that, years, has proven need coder (or willing learn) work with.


Comments

Popular posts from this blog

Change the color of an oval at click in Java AWT -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -