Skip to main content

Updaten datafeeds werkt niet in PHP 7

More
7 years 8 months ago #4129 by jcdhnleu
Alles lijkt prima te gaan met PHP 7.
Alleen het updaten van de datafeeds werkt niet. Noch via een cronjob, noch met de hand.
Met de hand zie ik de volgende fout:
[object Object]
Failed

Via de een Cronjob krijg ik het bericht:
HTTP request sent, awaiting response... 500 Internal Server Error
2016-07-07 16:10:01 ERROR 500: Internal Server Error.

Is hier een eenvoudige oplossing voor?
Alvast bedankt

Please Log in to join the conversation.

More
7 years 8 months ago - 7 years 8 months ago #4130 by jatoras
That is true. Datafeeds updates wont work with php 7 and it always throws an object - object failed error. I have not yet checked where the failure comes from but that has to be fixed the soonest. All those who have such issues should for now change back to an older php version till the issue gets fixed.
Last edit: 7 years 8 months ago by jatoras.

Please Log in to join the conversation.

More
7 years 8 months ago #4131 by redactie
Error 500 masks a lot of different issues.

Is there any message in the error log of the server?



I can't reproduce the problem on my test ststem.

Please Log in to join the conversation.

More
7 years 8 months ago #4132 by jatoras
That is all i get.
Attachments:

Please Log in to join the conversation.

More
7 years 8 months ago #4133 by jcdhnleu
Het hoofdprobleem zit hem in het feit dat functies worden gebruikt die niet meer door PHP 7 worden ondersteund: feedcron.php gebruikt bijvoorbeeld mysql_connect php 7 ondersteunt alleen mysqli_connect. Dit geldt uiteraard ook voor alle andere mysql_-functies. Omdat ik niet helemaal doorzie hoe de feeds precies worden binnengehaald is het mij niet gelukt een en ander aan de praat te krijgen (Alleen alle mysql vervangen door mysqli en aanpassen van de mysqli_connect-functie was niet voldoende).

Misschien voor jou een kleinigheidje Bram?

Groet en alvast bedankt.

Jan

Please Log in to join the conversation.

More
7 years 8 months ago #4134 by jatoras
jcdhnleu is right. PHP 7 needs mysqli intead of mysql. And Bram has a mysqli.php file alongside mysql.php in the cron folder, which mysqli.php is called from the feedcron script if needed. But i suppose that the error goes with the feedsql.php script. I will try to check that as soon as possible.

Please Log in to join the conversation.

Time to create page: 0.499 seconds