Start a new topic

Problems with cronjob

Since some time we have a problem with our cronjob:


PHP Fatal error: Call to a member function getMessage() on a non-object in /domains/dupoz.com/public_html/app/code/community/Simtech/Searchanise/Helper/ApiSe.php on line 1660


How can we fix this?

Hello!


Thank you for contacting Searchanise.


Please check that compilation is turned off, and the compilation cache is empty. If the issue is still there, it will require examination on your server. Please create a plain text file on your local computer and fill it with your FTP hostname, username, password and access credentials to admin panel of your store. Then send us a message with this file via Searchanise control panel in the admin panel of your store.


Thank you in advance.

How does one set up an hourly cron job in Magento 1 CE?

Dear Brett,


Please open the app/code/community/Simtech/Searchanise/etc/config.xml and find the following part of code:


   <crontab>
       <jobs>
           <searchanise_indexer>
               <!-- runs every 1 minutes as below. Change to (0 1 * * *) to run every night at 1am -->
               <schedule><cron_expr>*/1* * * *</cron_expr></schedule>
               <run><model>searchanise/observer::autoSync</model></run>
           </searchanise_indexer>
           <searchanise_reimporter>
               <schedule><cron_expr>0 3 * * *</cron_expr></schedule>
               <run><model>searchanise/observer::reimport</model></run>
           </searchanise_reimporter>
       </jobs>
   </crontab>


Please replace the following line of code:


<schedule><cron_expr>*/1 * * * *</cron_expr></schedule>


with this one:


<schedule><cron_expr>0 */1 * * *</cron_expr></schedule>


and save the file.


Please check it.


Thank you.

Many thanks - I will try that.

Dear Brett,


You are welcome. We were glad to help you.

Login or Signup to post a comment