Data Feed Issue

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.

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,

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

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.

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.

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.

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

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

[attachment=12768: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

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

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

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

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.

Thank you for the response.

I think it is time to move this site from CS-Cart to something else.

Have you had helpdesk take a look at it? Probably a lot cheaper than moving a business you've had on one platform for 9 years to something new.

Thank you for the response.

I think it is time to move this site from CS-Cart to something else.

I had this same issue after I upgraded my server to Easy Appache 4, the command line for the cron job will have to be changed to call the correct version of php for that domain , so in my case I had to change to :

/usr/local/bin/ea-php70 /home/domain/public_html/xxx.php --dispatch=exim.cron_export --cron_password=xxxxx

I hope this helps

I had this same issue after I upgraded my server to Easy Appache 4, the command line for the cron job will have to be changed to call the correct version of php for that domain , so in my case I had to change to :

/usr/local/bin/ea-php70 /home/domain/public_html/xxx.php --dispatch=exim.cron_export --cron_password=xxxxx

I hope this helps

omg this worked. Was facing the same problem post upgrade of my phpversion.