PHP 8.1 Compatibility Fix for Custom WP Theme
Budget: $250 – $750 USD
We are facing several issues with our WordPress site after updating to PHP 8.1. We need assistance in reviewing and resolving compatibility issues with the theme, particularly with the Blade template engine, and ensuring that the theme is updated for compatibility with both PHP 8.1 and the latest WordPress version.
Summary of Request for Help:
* Review the theme files, particularly the Blade template error, and help us resolve these issues so we can safely update to PHP 8.1 without breaking the site.
* Update theme to ensure compatibility with both the latest PHP and WordPress versions.
Details of the Request:
1. PHP Version Update
* We are currently running PHP 7.4.33, which is outdated, and we need to update to PHP 8.1 for security reasons. However, we have encountered issues when attempting to update the PHP version:
* Updating PHP to 8.1 breaks the website due to compatibility issues with the theme.
2. Theme Compatibility with PHP 8.1
* The error message seems to be tied to the Blade templating engine used in our custom theme. Specifically, the error occurs with this file:
* /home/lighthou/lighthouseguild.org/code/web/wp-content/themes/lighthouse-guild/resources/views/blocks/image-cta-promo.blade.php
* The error suggests a section is being ended without being properly started.
* The theme code is not compatible with newer PHP versions.
* The error appeared to affect this page: https://lighthouseguild.org/about-us/our-clients/
3. Feature Image Issue on Specific Event Pages
* When attempting to update the feature image on the event page 2024 In Review: Assistive Technology Innovations & Web Accessibility, the media library fails to display properly. The page doesn’t load correctly in the admin area, preventing us from updating the feature image.
* This issue only occurs on specific event pages, like the one mentioned, while others (such as Using Reddit and Community Engagement) work fine.
4. WordPress Update
* We are currently running WordPress 6.7.1. The website was recently updated to the latest version of WordPress from version 5.9, but this led to some errors related to the theme (as mentioned above). While the WordPress update itself was necessary for security reasons, it seems to have exacerbated the theme issues.
5. Formatting Issues Site-Wide
* Bullet points and paragraph breaks are not displaying or rendering correctly across the site. This is affecting the readability and presentation of content across multiple pages.
Summary of Request for Help:
* Review the theme files, particularly the Blade template error, and help us resolve these issues so we can safely update to PHP 8.1 without breaking the site.
* Update theme to ensure compatibility with both the latest PHP and WordPress versions.
Details of the Request:
1. PHP Version Update
* We are currently running PHP 7.4.33, which is outdated, and we need to update to PHP 8.1 for security reasons. However, we have encountered issues when attempting to update the PHP version:
* Updating PHP to 8.1 breaks the website due to compatibility issues with the theme.
2. Theme Compatibility with PHP 8.1
* The error message seems to be tied to the Blade templating engine used in our custom theme. Specifically, the error occurs with this file:
* /home/lighthou/lighthouseguild.org/code/web/wp-content/themes/lighthouse-guild/resources/views/blocks/image-cta-promo.blade.php
* The error suggests a section is being ended without being properly started.
* The theme code is not compatible with newer PHP versions.
* The error appeared to affect this page: https://lighthouseguild.org/about-us/our-clients/
3. Feature Image Issue on Specific Event Pages
* When attempting to update the feature image on the event page 2024 In Review: Assistive Technology Innovations & Web Accessibility, the media library fails to display properly. The page doesn’t load correctly in the admin area, preventing us from updating the feature image.
* This issue only occurs on specific event pages, like the one mentioned, while others (such as Using Reddit and Community Engagement) work fine.
4. WordPress Update
* We are currently running WordPress 6.7.1. The website was recently updated to the latest version of WordPress from version 5.9, but this led to some errors related to the theme (as mentioned above). While the WordPress update itself was necessary for security reasons, it seems to have exacerbated the theme issues.
5. Formatting Issues Site-Wide
* Bullet points and paragraph breaks are not displaying or rendering correctly across the site. This is affecting the readability and presentation of content across multiple pages.