Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Data Feed Issue Rate Topic   - - - - -

 
  • aircomms
  • Junior Member
  • Members
  • Join Date: 30-Jun 08
  • 107 posts

Posted 14 November 2017 - 03:52 PM #1

Hi,

 

I have 2 cs-cart sites on the same server both running 4.5.2.SP2 on PHP 7.0.25

 

I have an issue with the data feed on one site that is a custom data feed created from scratch for Google. The issue is that when the cron job runs it will not upload the file to Google and will not recreate the datafeed file on the server.

 

The server is notifing me the cron has run with an email as follows -

Content-type: text/html; charset=UTF-8

The other site on the server outputs a cron email as follows -

X-Powered-By: PHP/7.0.25
Content-type: text/html; charset=UTF-8

Exporting data: 1Exporting data: 2Exporting data: 3Exporting data: 4Exporting data: 5Exporting data: 6Exporti

The only time I can get the server to update the datafeed file on the server is to manually run it from within datafeeds.

 

I see nothing in the servers cron logs or in the error_log. I have changed the cron password and reset all passwords and upload settings to Google. I have even relaoded the cs-cart core files back to ensure there was no corupted files.

 

I hope someone can help point me in the right direction.



 
  • poppedweb
  • Senior Member
  • Members
  • Join Date: 02-Aug 16
  • 167 posts

Posted 14 November 2017 - 05:06 PM #2

Hi,

 

I have 2 cs-cart sites on the same server both running 4.5.2.SP2 on PHP 7.0.25

 

I have an issue with the data feed on one site that is a custom data feed created from scratch for Google. The issue is that when the cron job runs it will not upload the file to Google and will not recreate the datafeed file on the server.

 

The server is notifing me the cron has run with an email as follows -

Content-type: text/html; charset=UTF-8

The other site on the server outputs a cron email as follows -

X-Powered-By: PHP/7.0.25
Content-type: text/html; charset=UTF-8

Exporting data: 1Exporting data: 2Exporting data: 3Exporting data: 4Exporting data: 5Exporting data: 6Exporti

The only time I can get the server to update the datafeed file on the server is to manually run it from within datafeeds.

 

I see nothing in the servers cron logs or in the error_log. I have changed the cron password and reset all passwords and upload settings to Google. I have even relaoded the cs-cart core files back to ensure there was no corupted files.

 

I hope someone can help point me in the right direction.

 

Please post your cron-job, so that we can investigate the issue.

 

Kind regards,



 
  • aircomms
  • Junior Member
  • Members
  • Join Date: 30-Jun 08
  • 107 posts

Posted 14 November 2017 - 05:45 PM #3

php /home/designer/public_html/securepanel.php --dispatch=exim.cron_export --cron_password=G4vDoTd0vMSHmNScL48W


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 9,984 posts

Posted 14 November 2017 - 08:57 PM #4

The creation of the file should be a separate action to uploading it to Google via FTP.

 

Have you tried to have it setup to NOT FTP to big-G (I.e. just create the file)?  I've not looked, but it's possible that if there's an FTP error, that it might be removing the file when it's done and simply not reporting that error to you via your cron output.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • aircomms
  • Junior Member
  • Members
  • Join Date: 30-Jun 08
  • 107 posts

Posted 15 November 2017 - 09:28 AM #5

When I use server mode to create the file on the server so Google can schedule to take the file the cron action is not updating the file on the server so I remain with an old file and out of date data.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 9,984 posts

Posted 15 November 2017 - 07:59 PM #6

Ensure the cpanel account you are using for your cron job is the same as the owner of the var/* directory where the file is to be placed.

Also, ensure that your config.local.php file has error_reporiting(E_ALL) set and then review the error_log after the next attempt.  Given that you can create the file when running from the admin interface, my guess is that you have a permissions issue when running from cron.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • aircomms
  • Junior Member
  • Members
  • Join Date: 30-Jun 08
  • 107 posts

Posted 16 November 2017 - 11:53 AM #7

I have reset the ownership and the premissions of the files as per cs-cart install.

 

I have reloaded the cron job directly on the users account.

 

I have enable the error reporting but it still show nothing is reported as wrong. The only thing in the error log is

[16-Nov-2017 11:36:02 UTC] PHP Warning:  next() expects parameter 1 to be array, null given in /home/designer/public_html/app/Tygh/Bootstrap.php on line 423


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3,430 posts

Posted 16 November 2017 - 01:55 PM #8

I don't use the Data feed addon but do you have that particular feed configured correctly?

 

Screenshot-2017-11-16 Add-ons Data feeds - Administration panel.png

 

Another thing you might want to try is the following for your cron but replace the 1 with the id of your data feed.

php /home/designer/public_html/securepanel.php --dispatch=exim.export_datafeed&datafeed_ids[]=1&location=S


 
  • aircomms
  • Junior Member
  • Members
  • Join Date: 30-Jun 08
  • 107 posts

Posted 17 November 2017 - 10:40 AM #9

Yes it is, if not the manual upload from the panel would not work.



 
  • aircomms
  • Junior Member
  • Members
  • Join Date: 30-Jun 08
  • 107 posts

Posted 18 November 2017 - 12:49 PM #10

I really can not find any other permission that would be restricting this from working.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 9,984 posts

Posted Yesterday, 11:07 PM #11

Then it will require you finding someone to help you with the details of your environment which may involve either reviewing of log files/error_log data and/or inserting some diagnostic code.  You site is not behaving as standard sites are.  To find out why requires investigation.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.