Just install 4.0.1 over 4 - Trow an error server on php 8 — Ok on PHP 7.4

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago - 3 years 2 months ago #149349 by Patrick Toulze
Just install 4.0.1 over 4 - Trow an error server with php 8  — I reinstall over, Ok on PHP 7.4

On PHP 8 You got the installation was a success admin message and on top a red error message, something like Server error. Website seem functionnal.
I change for php 7.4 and reinstall over 4.0.1 — No errors _ Success

This is a redacted Server error Log:
Code:
022-01-30 01:45:33.050111 [INFO] [22244] [T0] [SOME.IP.NUMBER:54976:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 02:41:25.004030 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:28556#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Undefined variable $config in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 02:41:25.004127 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:28556#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Attempt to read property "event_date_format" on null in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 02:42:29.999779 [INFO] [5298] [T0] [SOME.IP.NUMBER:45696:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 02:42:36.642523 [INFO] [5298] [T0] [SOME.IP.NUMBER:25984:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 03:30:16.226535 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:7372#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Undefined variable $config in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 03:30:16.226632 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:7372#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Attempt to read property "event_date_format" on null in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 06:13:40.713283 [INFO] [5298] [T0] [SOME.IP.NUMBER:37441:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 10:30:02.745978 [INFO] [5298] [T0] [SOME.IP.NUMBER:19520:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 10:32:41.378780 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:25728:HTTP2-1#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Undefined variable $config in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 10:32:41.378799 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:25728:HTTP2-1#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Attempt to read property "event_date_format" on null in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 10:32:41.534923 [INFO] [5298] [T0] [SOME.IP.NUMBER:25728:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 11:09:06.873781 [INFO] [5298] [T0] [SOME.IP.NUMBER:55552:HTTP2-1#APVH_www.mywebsiteadress:443] Pending MODSEC operation, recycle later... 2022-01-30 11:10:23.204675 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:27624#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Undefined variable $config in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 11:10:23.204702 [NOTICE] [5298] [T0] [SOME.IP.NUMBER:27624#APVH_www.mywebsiteadress:443] [STDERR] PHP Warning:  Attempt to read property "event_date_format" on null in /home/MAIN-SITE-FOLDER/domains/mywebsiteadress/public_html/templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php on line 106 2022-01-30 11:34:13.580107 [INFO] [5298] [T0] [MY.IP.NUMBER:52291-4#APVH_www.mywebsiteadress] Access is denied by context rewrite.





 
Last edit: 3 years 2 months ago by Patrick Toulze.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #149351 by Tuan Pham Ngoc
Base on the error messages, look like it is something wrong with the override you made for templates/MY-WEBSITE-TEMPLATE/html/com_eventbooking/event/default.php. Could you please check that override and correct it?

Regards,

Tuan
The following user(s) said Thank You: Patrick Toulze

Please Log in or Create an account to join the conversation.

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #149361 by Patrick Toulze
Thanks Tuan, I should have read the error more carrefully.

Ok Looking at the files, I see that many details in the code have change between the older versions.

I guess I have to go trough all my overrides and updates them. Weird it doesn't trow an error on PHP 7.4, only on php 8.

I will come back to you...

Good Day!

Please Log in or Create an account to join the conversation.

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #149379 by Patrick Toulze
Thanks, Tuan, almost finish, For sure you need to update the code in overrides.

After I have few overrides updates to do on eShop

Good Day!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc