Page 1 of 2
Calendar Error
Posted: 29 Mar 2017, 09:35
by myshabi
Dear All:
At first, my installation is perfectly working in a shared web hosting in cpanel but lately when i check there is a bug (might be) and I need some help.
Strict Standards: Non-static method DateUtility::getWeekNumber() should not be called statically, assuming $this from incompatible context in /home/vvvvv/public_html/open/modules/calendar/CalendarUI.php on line 102
Strict Standards: Non-static method DateUtility::addDaysToDate() should not be called statically, assuming $this from incompatible context in /home/vvvvv/public_html/open/lib/DateUtility.php on line 338
Strict Standards: Non-static method DateUtility::getWeekNumber() should not be called statically, assuming $this from incompatible context in /home/vvvvv/public_html/open/modules/calendar/CalendarUI.php on line 102
Strict Standards: Non-static method DateUtility::addDaysToDate() should not be called statically, assuming $this from incompatible context in /home/vvvvv/public_html/open/lib/DateUtility.php on line 338
I tried to check but im afraid to modify the line codes. PLease help.
Mysh
Re: Calendar Error
Posted: 29 Mar 2017, 12:17
by RussH
Hi,
can you confirm what version you're running (allot of 'strict standards' errors were rectified in versions 0.9.2 and 0.9.3)
Otherwise, disable error reporting in the GUI by updating your php config in php.ini.. it will still log a warning to syslog, but it's warning level only, not an error.
Re: Calendar Error
Posted: 29 Mar 2017, 12:22
by cptr13
Also, sounds like something changed in your environment if it was working fine and then you started getting errors. Can you check your php version? Maybe your host updated it?
Re: Calendar Error
Posted: 30 Mar 2017, 06:04
by myshabi
RussH wrote:Hi,
can you confirm what version you're running (allot of 'strict standards' errors were rectified in versions 0.9.2 and 0.9.3)
Otherwise, disable error reporting in the GUI by updating your php config in php.ini.. it will still log a warning to syslog, but it's warning level only, not an error.
Dear Sir:
This is the info of our webserver
Database server:
Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.6.35 - MySQL Community Server (GPL)
Protocol version: 10
User: xxxxx@localhost
Server charset: UTF-8 Unicode (utf8)
Web server:
cpsrvd 11.62.0.17
Database client version: libmysql - 5.1.73
PHP extension: mysqli
I'm running the 0.9.3-3 full which has a travis folder that i downloaded last November of 2016 (41.2MB) but when I re-download the version at opencats site, the size is different which is 20.2 MB.
Thank you for your help
Regards,
Mysh
Re: Calendar Error
Posted: 30 Mar 2017, 06:07
by myshabi
cptr13 wrote:Also, sounds like something changed in your environment if it was working fine and then you started getting errors. Can you check your php version? Maybe your host updated it?
Sir:
This is the info
PHP Version 5.4.45
MySQL Version 5.6.35
Thank you for helping out
Regards,
Mysh
Re: Calendar Error
Posted: 30 Mar 2017, 08:39
by myshabi
Dear Sirs:
Even the activities got some error
Strict Standards: Non-static method DateUtility::subtractDaysFromDate() should not be called statically, assuming $this from incompatible context in /home/vvvv/public_html/open/modules/activity/ActivityUI.php on line 283
Strict Standards: Non-static method DateUtility::addDaysToDate() should not be called statically, assuming $this from incompatible context in /home/vvvv/public_html/open/lib/DateUtility.php on line 282
I tried to disable the error reporting but to no avail.
Please help.
Regards,
Mysh
Re: Calendar Error
Posted: 30 Mar 2017, 12:18
by cptr13
When you reinstalled...did you follow the documentation and use composer?
Re: Calendar Error
Posted: 31 Mar 2017, 05:55
by myshabi
cptr13 wrote:When you reinstalled...did you follow the documentation and use composer?
Sir:
Yes, step by step that I followed the tutorials in installing and it was perfectly working for how many months, our hosting provider did not upgrade anything to our server. Hope you can figure out.
Thank you.
Regards,
Mysh
Re: Calendar Error
Posted: 31 Mar 2017, 10:10
by cptr13
What is your webhost please I need to look at their site.
Re: Calendar Error
Posted: 31 Mar 2017, 10:40
by cptr13
Wait....stop
Php 5.4 doesn't work with composer.
Please confirm that you're running php 5.45
If that is correct You need to switch php on your webhost to 5.6
If you tell me your webhost I can help you do that.
I think these errors are a result of not running composer during the install process.