Upgrade PHP to 8.2 Topic is solved

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
WiWo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Jul 05, 2016 10:32 pm

Upgrade PHP to 8.2

Post by WiWo » Sun Feb 25, 2024 10:28 pm

I have a very basic site Joomla 4.4.3. Only Akeeba 9.8.5 and JCE 2.9.62 as extentions. G5_Helium 5.5.17 as template with Gantry 5.5.17.
So, I guess everything is on highest level.
When I change PHP form 8.1.24 to 8.2, nothing works anymore. Just an error 500:
Sorry, there was a problem we could not recover from.
The server returned a "500 - Whoops, looks like something went wrong."

Any suggestions?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17411
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Upgrade PHP to 8.2

Post by toivo » Sun Feb 25, 2024 10:35 pm

Change PHP back to 8.1, disable the Gantry framework and set the default frontend template to Cassiopeia. Change PHP to 8.2 and check if that makes a difference.
Toivo Talikka, Global Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44062
Joined: Sat Apr 05, 2008 9:58 pm

Re: Upgrade PHP to 8.2

Post by Webdongle » Mon Feb 26, 2024 3:17 am

If no avail posting the fpa output of both php versions might reveal something?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

daiki78
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Feb 26, 2024 7:45 am

Re: Upgrade PHP to 8.2

Post by daiki78 » Mon Feb 26, 2024 7:57 am

It sounds like a compatibility issue between your Joomla setup and PHP 8.2. The sudden error 500 indicates a failure to handle the upgrade. Try checking Joomla's compatibility with PHP 8.2 and ensure that all extensions, including Akeeba and JCE, are updated to support the new PHP version. Additionally, reviewing server logs might provide insight into the specific issue causing the error.story saver

User avatar
pablop76
Joomla! Intern
Joomla! Intern
Posts: 75
Joined: Sat Dec 25, 2021 10:03 am
Location: Polska
Contact:

Re: Upgrade PHP to 8.2

Post by pablop76 » Mon Feb 26, 2024 8:11 am

This configuration should work even on php 8.3 (I tested)
Paweł
Company website: https://web-service.com.pl/
- Joomla passionate, Polska, Skierniewice

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17411
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Upgrade PHP to 8.2

Post by toivo » Mon Feb 26, 2024 8:26 am

@WiWo, the recommended version of PHP for Joomla 4 is PHP 8.2. All the extensions you mentioned, including the template, are compatible with PHP 8.2 and work all right in Joomla 4.4.3.

Something else must be incompatible or configured incorrectly. As already suggested by @Webdongle, follow the instructions at https://forumpostassistant.github.io/docs/ and post the results from the Forum Post Assistant (FPA) into your reply.

Check also from the cPanel or a similar page, provided by your host, which PHP extensions are enabled in PHP 8.1 and make sure the same PHP extensions are also enabled in PHP 8.2. That does not happen automatically and your host may not know your requirements.
Toivo Talikka, Global Moderator

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9696
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Upgrade PHP to 8.2

Post by AMurray » Mon Feb 26, 2024 10:14 am

The compatibility table for akeeba tells me v9.8.5 is for J4, J5 and PHP 8.2
https://www.akeeba.com/compatibility.html. Akeeba Backup 9.8.5 is only good for JOomla 4.3 and newer. So it looks like you're OK there.

Here's JCE's requirements: https://www.joomlacontenteditor.net/sup ... quirements
Regards - A Murray
General Support Moderator

WiWo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Jul 05, 2016 10:32 pm

Re: Upgrade PHP to 8.2

Post by WiWo » Mon Feb 26, 2024 1:38 pm

Thanks for all this information and suggestions.

To be sure that it is not a problem of installed extensions, I made a brand new site from scratch and even then, the same problem occurs. So, my conclusion is that the host has a problem and I have reported this to him.

http://php82.agkvg.be/phptest.php to display php info

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44062
Joined: Sat Apr 05, 2008 9:58 pm

Re: Upgrade PHP to 8.2

Post by Webdongle » Mon Feb 26, 2024 5:46 pm

I reapeat
Webdongle wrote:
Mon Feb 26, 2024 3:17 am
If no avail posting the fpa output of both php versions might reveal something?
Then you will probably see what is misconfigured.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17411
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Upgrade PHP to 8.2

Post by toivo » Mon Feb 26, 2024 9:19 pm

As already suggested a couple of times, please follow the instructions at https://forumpostassistant.github.io/docs/ and post the results from the Forum Post Assistant (FPA) into your reply.
Toivo Talikka, Global Moderator

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30872
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Upgrade PHP to 8.2

Post by Per Yngve Berg » Mon Feb 26, 2024 10:35 pm

post_max_size 8M

Is to small. Increase to 128M

upload_max_filesize 2M

Increase to 64M

mysqlnd and pdo_mysql database connectors are available. No mysqli. Check what is set in configuration.php

WiWo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Jul 05, 2016 10:32 pm

Re: Upgrade PHP to 8.2

Post by WiWo » Tue Feb 27, 2024 9:49 am

Hi folks,

With php 8.2.11, FPA also doesn't work and gives an error 500 too. Screenshot in att.
php8.2-error500.JPG

Here is the result with php 8.1.24
Forum Post Assistant (v1.6.6) : 27-Feb-2024 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.4.3-Stable (Pamoja) 20-February-2024
Joomla! Configured :: Yes | Writable (644) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: false | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: N/A | Proxy: N/A | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.4.3: Yes | Database Supports J! 4.4.3: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.10.0-962.3.2.lve1.5.63.el7.x86_64 | Technology: x86_64 | Web Server: Apache/2 | Encoding: gzip, deflate, br, zstd | System TMP Writable: Yes | Free Disk Space : 10.70 GiB |

PHP Configuration :: Version: 8.1.24 | PHP API: litespeed | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 32M | Max. Input Time: 60 | Max. Execution Time: 120 | Memory Limit: 2048M

Database Configuration :: Version: 10.4.27-MariaDB-cll-lve (Client:10.4.27) | Database Size: 4.47 MiB | #of Tables with config prefix:  73 | #of other Tables:  0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (8.1.24) | date (8.1.24) | libxml (8.1.24) | openssl (8.1.24) | pcre (8.1.24) | sqlite3 (8.1.24) | zlib (8.1.24) | bz2 (8.1.24) | calendar (8.1.24) | ctype (8.1.24) | curl (8.1.24) | hash (8.1.24) | filter (8.1.24) | ftp (8.1.24) | gettext (8.1.24) | json (8.1.24) | iconv (8.1.24) | SPL (8.1.24) | pcntl (8.1.24) | readline (8.1.24) | Reflection (8.1.24) | session (8.1.24) | standard (8.1.24) | mbstring (8.1.24) | shmop (8.1.24) | SimpleXML (8.1.24) | tokenizer (8.1.24) | xml (8.1.24) | litespeed () | bcmath (8.1.24) | dom (20031129) | fileinfo (8.1.24) | gd (8.1.24) | intl (8.1.24) | exif (8.1.24) | mysqli (8.1.24) | mysqlnd (mysqlnd 8.1.24) | PDO (8.1.24) | pdo_mysql (8.1.24) | pdo_sqlite (8.1.24) | Phar (8.1.24) | posix (8.1.24) | soap (8.1.24) | sockets (8.1.24) | xmlreader (8.1.24) | xmlwriter (8.1.24) | xsl (8.1.24) | zip (1.19.5) | Zend Engine (4.1.24) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (---) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) | api/ (755) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 6430358 | Threads: 142 | Questions: 19955528966 | Slow queries: 271974 | Opens: 365288952 | Flush tables: 1 | Open tables: 8192 | Queries per second avg: 3103.330 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

Components :: Admin ::
Core :: com_plugins (4.0.0) 1 | com_privacy (3.9.0) 1 | com_checkin (4.0.0) 1 | com_messages (4.0.0) 1 | com_cache (4.0.0) 1 | com_banners (4.0.0) 1 | com_content (4.0.0) 1 | com_languages (4.0.0) 1 | com_fields (4.0.0) 1 | com_finder (4.0.0) 1 | com_actionlogs (3.9.0) 1 | com_newsfeeds (4.0.0) 1 | com_redirect (4.0.0) 1 | com_users (4.0.0) 1 | com_templates (4.0.0) 1 | com_menus (4.0.0) 1 | com_wrapper (4.0.0) 1 | com_postinstall (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_tags (4.0.0) 1 | com_config (4.0.0) 1 | com_mails (4.0.0) 1 | com_ajax (4.0.0) 1 | com_contenthistory (4.0.0) 1 | com_scheduler (4.1.0) 1 | com_login (4.0.0) 1 | com_cpanel (4.0.0) 1 | com_media (3.0.0) 1 | com_workflow (4.0.0) 1 | com_guidedtours (4.3.0) 1 | com_modules (4.0.0) 1 | com_categories (4.0.0) 1 | com_installer (4.0.0) 1 | com_associations (4.0.0) 1 | com_admin (4.0.0) 1 |
3rd Party::

Modules :: Site ::
Core :: mod_articles_latest (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_login (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_whosonline (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_footer (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_related_items (3.0.0) 1 |
3rd Party::

Modules :: Admin ::
Core :: mod_loginsupport (4.0.0) 1 | mod_latest (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_login (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_frontend (4.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_sampledata (3.8.0) 1 | mod_privacy_status (4.0.0) 1 | mod_post_installation_messages (4.0.0) 1 | mod_menu (3.0.0) 1 | mod_messages (4.0.0) 1 | mod_guidedtours (4.3.0) 1 | mod_user (4.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_title (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_version (3.0.0) 1 | mod_quickicon (3.0.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_yubikey (3.2.0) 1 | plg_multifactorauth_totp (3.2.0) 1 | plg_multifactorauth_webauthn (4.2.0) 1 | plg_multifactorauth_email (4.2.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_api-authentication_token (4.0.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_eos (4.4.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_captcha_recaptcha (3.4.0) 0 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_behaviour_taggable (4.0.0) 1 | plg_behaviour_compat (4.4.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_user_terms (3.9.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_token (3.9.0) 1 | plg_user_profile (3.0.0) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_skipto (4.0.0) 1 | plg_system_httpheaders (4.0.0) 1 | plg_system_shortcut (4.2.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_actionlogs (3.9.0) 1 | plg_system_task_notification (4.1) 1 | plg_system_cache (3.0.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_schedulerunner (4.1) 1 | plg_system_guidedtours (4.3.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_accessibility (4.0.0) 0 | plg_system_logrotation (3.9.0) 1 | plg_system_jooa11y (4.2.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_redirect (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_stats (3.5.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_log (3.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_sampledata_multilang (4.0.0) 1 | plg_task_demo_tasks (4.1) 1 | plg_task_site_status (4.1) 1 | plg_task_requests (4.1) 1 | plg_task_check_files (4.1) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_languages (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_messages (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_extension_finder (4.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_media-action_resize (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_media-action_rotate (4.0.0) 1 | plg_installer_folderinstaller (3.6.0) 1 | plg_installer_webinstaller (4.0.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_override (4.0.0) 1 | plg_content_finder (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_content_fields (3.7.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_joomla (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_workflow_publishing (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_message (3.9.0) 1 |
3rd Party:: plg_editors_codemirror (5.65.15) 1 | plg_editors_tinymce (5.10.9) 1 |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |
You do not have the required permissions to view the files attached to this post.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44062
Joined: Sat Apr 05, 2008 9:58 pm

Re: Upgrade PHP to 8.2

Post by Webdongle » Tue Feb 27, 2024 10:13 am

So something in php 8.2 settings is out.
A mod security rule?
Open Base limitations?

btw
With your php 8.1
Max. Upload Size: 32M | Max. POST Size: 32M both could be 64M or even 128M
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

WiWo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Jul 05, 2016 10:32 pm

Re: Upgrade PHP to 8.2

Post by WiWo » Wed Feb 28, 2024 11:45 am

Indeed, some php 8.2 settings were wrong. The host has corrected the extensions used.
Thanks for your help!

User avatar
Slackervaara
Joomla! Ace
Joomla! Ace
Posts: 1115
Joined: Sat Aug 13, 2011 6:27 am

Re: Upgrade PHP to 8.2

Post by Slackervaara » Wed Feb 28, 2024 8:54 pm

When I change PHP-version in CPanel I have to doublecheck extensions for new PHP and that they are similar to previous functioning PHP-version. It is important to enable also opcache, because it speeds up the site. It is a cache for php-scripts.


Post Reply

Return to “General Questions/New to Joomla! 4.x”