meanster99
Well-known member
Apache Version 2.4.12
PHP Version 5.5.25
MySQL Version 5.5.42-cll
Architecture x86_64
Operating System linux
Dadabik version 4.0
I am using an old (but customised version of Dadabik), so I can't upgrade (at least I don't have the time to attempt it yet!). I think my webhost must have just upgraded their version of php on the server as my database became inaccessible overnight. I couldn't even sign in, just a white page of death.
I checked the error logs and saw this error:
A quick search of this error suggested the use of global variables as parameters in functions is not permitted in php v5.4 or above. I know this issue was resolved in a later version of Dadabik but as I said, I can't upgrade at the moment.
It appeared the easiest solution was to just remove the _FILES & _POST from the function parameters (in all functions that they appeared in, not just on line 506) and everything would work OK still as they are global variables and so should be available anyway, without adding them to the parameters of the function. So I did that and I was then able to sign in and access my database again. Great!
However, now whenever I click 'edit' on any record, the record view is completely blank - all field names display but are completely empty. If I click 'view' record instead I can see all the data OK, so the data is there still, it's just not showing it under 'edit' record.
I'm a complete noob at php (and the only way I was able to make customisations was with the help of members of this forum), so I can't work out what needs changing myself. I only removed the instances of _FILES and _POST from all function parameters in business_logic.php. I haven't really made that many customisations to business_logic.php, so if it's the only file that gets affected by this issue then I should be able to update this single file without too much trouble.
Just so you know I did donate over £100.00GBP for version 4.0 of Dadabik (before you started to charge!), so I'm hoping you can help me more than just telling me to pay to upgrade (maybe even provide me an updated version of business_logic.php?).
Really hoping you can help!
Thanks,
Matt
PHP Version 5.5.25
MySQL Version 5.5.42-cll
Architecture x86_64
Operating System linux
Dadabik version 4.0
I am using an old (but customised version of Dadabik), so I can't upgrade (at least I don't have the time to attempt it yet!). I think my webhost must have just upgraded their version of php on the server as my database became inaccessible overnight. I couldn't even sign in, just a white page of death.
I checked the error logs and saw this error:
Cannot re-assign auto-global variable _POST mydomain/database/include/business_logic.php on line 506
A quick search of this error suggested the use of global variables as parameters in functions is not permitted in php v5.4 or above. I know this issue was resolved in a later version of Dadabik but as I said, I can't upgrade at the moment.
It appeared the easiest solution was to just remove the _FILES & _POST from the function parameters (in all functions that they appeared in, not just on line 506) and everything would work OK still as they are global variables and so should be available anyway, without adding them to the parameters of the function. So I did that and I was then able to sign in and access my database again. Great!
However, now whenever I click 'edit' on any record, the record view is completely blank - all field names display but are completely empty. If I click 'view' record instead I can see all the data OK, so the data is there still, it's just not showing it under 'edit' record.
I'm a complete noob at php (and the only way I was able to make customisations was with the help of members of this forum), so I can't work out what needs changing myself. I only removed the instances of _FILES and _POST from all function parameters in business_logic.php. I haven't really made that many customisations to business_logic.php, so if it's the only file that gets affected by this issue then I should be able to update this single file without too much trouble.
Just so you know I did donate over £100.00GBP for version 4.0 of Dadabik (before you started to charge!), so I'm hoping you can help me more than just telling me to pay to upgrade (maybe even provide me an updated version of business_logic.php?).
Really hoping you can help!
Thanks,
Matt