Upgrade PHP 7.2 to 7.4
Upgrade PHP 7.2 to 7.4
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Hi
I have just upgraded my PHP from 7.2 to 7.4 using PHP Selector on my cPanel wrongly expecting it to maintain the extensions checked when using 7.2. I should have created a screenshot of all the extensions, so I am experiencing unusual behaviour on some of my datatables.
Before detailing the issues which are likely to be as a result of not including necessary PHP extensions, I have attached my current PHP set-up on the server. Can someone advise me if I am missing any obvious essential extensions.
Note reverting back to 7.2 still results in issues, so I must be missing some extensions is my guess.
Any help is much appreciated.
Many Thanks
Colin
This question has accepted answers - jump to:
Answers
The majority of my datatables are working bar one in Edit Mode it is not showing the fields in the modal, which would indicate the PHP upgrade to 7.4 may be a red herring so to speak, apologies if I have wasted anyones time. I will keep investigating ...
Thanks
Colin
I am getting an error on one of my datatables when adding a new entry using the editor on a very simple table, which from a google search appears to be an issue with PHP 7.4, as it was not happening before my upgrade from 7.2->7.4.
so I may roll out PHP 7.4 to PHP 7.3 unless anyone has any suggestions on how to fix the issue with datatables.net.
Many Thanks
Colin
So what does line 85 of your controller look like?
Hi tangerine
Line 85 is the switch statement below, I can PM you access to my system if you need it, let me know..
I was going to drop back to PHP 7.2 temporarily to confirm it was working before as an option to confirm the issue is related to PHP 7.4. I have spoken to my hosting provider, guru and they have confirmed that PHP 7.4 is a stable release.
let me know if you need more information.
Many Thanks
Colin
Hi
If I add a new Entry and then attempt to delete the entry the system produces the following error
It also refers to deleting 0 rows, as if it is not aware of the id of the row ?
When I attempt to edit a row it does not display the data in the form
Other datatables appear to work ok on my system.
Regards
Colin
Hi tangerine
I have sent you a PM with full access to my system and the problem, if you need it.
Thanks
Colin
What are the contents of $subscription_plan_id at this point:
?
Hi tangerine
If you google the above error
there are a number of people who have experienced the same issue when switch to PHP 7.4
I have been trying to upgrade the libraries to the latest datatables.net libraries on my system at the same time, but I am unable to create or delete records from any of my tables or those that I have tested, so although I am not live yet I very keen to get it resolved.
Thanks Colin
Hi tangerine
If I comment out the whole validator section in the server script. I then add a new row say TEST and refresh, it displays the row, then if I Edit no data is shown on the form and if I Delete, the message above
... delete 0 rows is shown
and pressing delete results in an errorColin
Hi
Can someone help here as a matter of urgency please as the datatables aspect of my website which is the core element is broken, I cannot add and delete rows using the Editor for any of my tables after upgrading from PHP 7.2 to PHP 7.4, I have now reinstated the PHP to 7.2 default values as per the previous settings, but my tables editor is still not working as expected.
Ultimately I will need to upgrade to PHP 7.4 being the latest stable version, this may be a red herring in relation to the problem.
Any help or guidance would be much appreciated, I can provide online access to my system.
Best Regards
Colin
Hi
To summarise the current status
Rolled back to PHP 7.2, default extensions as previously set confirmed by my host
Using Latest libraries given by debugger
I have commented out the Global Validator Section, although it has been in place for months working.
Some Datatable Editor scripts are working normally where Parent Child set-up exists
Other Simple Datatable PHP scripts not working as expected
If I can get the Stock Portfolios working a very simple table, then I should be able to fix the other ones which are failing
I will need to send a PM to provide access to anyone investigating the problem on my system
On adding a record and then deleting the record I am getting the error message
then in Chrome, Developer Tools, Preview
If I edit a row, it does not populate the Code and Name in the form, it just populates the default values, not the values set on the row.
client script
server script
any help much appreciated
Thanks Colin
Hi Colin,
There isn't anything obvious in the above code that would cause a problem, but possibly I'm just missing it. Can you PM me the login details please?
Allan
Hi Allan
PM sent
Thanks Colin