HomePage › Forums › Themes Support › Triply – Tour Booking WordPress Theme › Uncaught Error: Attempt to modify property “rewrite” on bool
Tagged: error, language switcher, menu, php 8.0
- This topic has 6 replies, 2 voices, and was last updated 11 months ago by Billy Nguyen.
-
AuthorPosts
-
May 31, 2023 at 4:58 am #35111mazouggarSupport Expired
Hi,
would you please investigate the following:
I have WPML installed, and I am using the language switcher.
At first I was experiencing some errors whenever I try to access the WordPress menu page.
I get the following error via email:
Error message: Uncaught Error: Attempt to modify property “rewrite” on bool in ../wp-content/themes/triply/inc/booking/class-ba.php:194.After going into recovery mode, I get the following errors/messages:
1. This theme failed to load properly and was paused within the admin backend.
2. Your theme does not support navigation menus or widgets.After further investigation, it turns out I get these errors when I use PHP 8.0 or above. The moment I switched back to PHP 7.4. The theme works fine.
Eventually I would like to upgrade to PHP 8.0 or above, could you please investigate why is this happening. Thank you.
May 31, 2023 at 5:18 pm #35138Hello,
Please send the admin web account for me, I will check and try to help you.
May 31, 2023 at 7:06 pm #35142mazouggarSupport ExpiredThis reply has been marked as private.June 2, 2023 at 5:40 am #35216mazouggarSupport ExpiredHi,
This is just an update regarding this ticket. Please ignore the last issue about permalinks. I think I know where the issue was. The Booking object post slug under BA Settings -> General needs to be the same in both languages. I have changed it to ‘tour’ in both English and Spanish, and redirecting between tour posts works.
I look forward to hearing from you regarding the first issue.
Best
June 2, 2023 at 5:12 pm #35237I fixed this bug, please check and let me know if you need further assistance
June 5, 2023 at 5:31 am #35261mazouggarSupport ExpiredThank you very much for your help.
June 5, 2023 at 10:38 am #35270You are welcome!
Let me know if you need to help and hope you will vote 5* for our theme.
Thanks.
-
AuthorPosts
You must be logged in to reply to this topic.