Open diegohdk opened 8 years ago
If you send a patch, it will be accepted.
I am having the same problem, but downgrading to php 5.4.45 didn't solve the problem. diegohdk , are you sure this is the issue and disabling runtime notices is the solution?
Yes @littlewine. I had this type of issue in other situations and disabling the notices solved. But this is not a real solution, because the problem is still there. With the time I realized that I really had to fix my classes, and so changed their methods signatures.
Anyway, in that case my PHP version was 5.4.12. Maybe you have to downgrade even more for this to work.
@diegohdk could you please share the updated code with the method signatures?
Could you also provide more info on how to disable notices?
will a simple block of code do the trick ?
error_reporting(0);
Unfortunately I am unable to set up the server so it is not really easy for me to go ahead and change the php classes or explore the functionality of the script to check if it covers my needs.
Thank you in advance ,
Tony
Hello @littlewine. I don't have an updated version of these classes. The fix that I mentioned was on another project.
I could make a fix for this project too but I don't have time at this moment.
But to help you, on my other project I disabled these errors by changing error_reporting
on .htaccess
, like this:
<IfModule mod_php5.c>
php_value error_reporting "E_ALL ^ E_STRICT"
</IfModule>
The .htaccess
must to be at your project's root.
Note: this will only work if your web server is Apache. For other servers you might find another way.
Running the server on a PHP 5.6 installation, on step Database Initialisation we see the following:
These runtime notices are due to the subclasses having different method signatures from their parent classes. Disabling the runtime notices on PHP 5.4 seemed to work, but on 5.6 don't.
Unfortunately I can't downgrade PHP. So is there any chance to get these classes updated for PHP 5.4+?