Joomla 5 does not recognize php 8.1

Need help installing Joomla! 5.x? For all Joomla! 5.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
opkyrtsis
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Tue Sep 19, 2017 11:06 pm

Joomla 5 does not recognize php 8.1

Post by opkyrtsis » Wed Feb 21, 2024 1:09 am

Hi there, a strange issue. I have completed a new installation, selected php 8.1 as required, everything seemed okay. After a while I got a red screen that reads

"Sorry, your PHP version is not supported.
Your host needs to use PHP version 8.1.0 or newer to run this version of Joomla."

Tried to go back to previous php and select 8.1 again, but it won't work.

https://opkweb.eu/refurn.gr/site/

Note that during the process I was asked to upgrade mysql to 8.0 which I did, but the procedure failed at some point. However the site was up and running.

Any ideas? Thanks
Forum Post Assistant (v1.6.6) : 21-Feb-2024 wrote:
Last PHP Error(s) Reported :: wrote:[20-Feb-2024 15:27:11 UTC] PHP Warning: Creating default object from empty value in /home/opkweb/public_html/georgesjewellery/site/templates/yootheme/vendor/yootheme/builder/src/Builder/ElementTransform.php on line 238
Basic Environment :: wrote:Joomla! Instance :: Joomla! 5.0.1-Stable (Kuboresha) 28-November-2023
Joomla! Configured :: Yes | Writable (644) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: false | .htaccess/web.config: No | 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! 5.0.1: Yes | Database Supports J! 5.0.1: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.10.0-1062.4.1.el7.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: | System TMP Writable: Yes | Free Disk Space : 1698.37 GiB |

PHP Configuration :: Version: 7.4.33 | PHP API: fpm-fcgi | Session Path Writable: No | Display Errors: 0 | Error Reporting: 32759 | Log Errors To: /home/opkweb/logs/opkweb_eu.php.error.log | Last Known Error: 20th February 2024 15:27:11. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 10M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 8.0.36 (Client:mysqlnd 7.4.33) | Database Size: 4.80 MiB | #of Tables with config prefix:  74 | #of other Tables:  0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.33) | date (7.4.33) | libxml (7.4.33) | openssl (7.4.33) | pcre (7.4.33) | zlib (7.4.33) | filter (7.4.33) | hash (7.4.33) | pcntl (7.4.33) | Reflection (7.4.33) | SPL (7.4.33) | session (7.4.33) | standard (7.4.33) | cgi-fcgi (7.4.33) | bcmath (7.4.33) | calendar (7.4.33) | ctype (7.4.33) | curl (7.4.33) | dom (20031129) | ftp (7.4.33) | gd (7.4.33) | iconv (7.4.33) | imap (7.4.33) | json (7.4.33) | mbstring (7.4.33) | mysqlnd (mysqlnd 7.4.33) | PDO (7.4.33) | Phar (7.4.33) | posix (7.4.33) | SimpleXML (7.4.33) | sockets (7.4.33) | sqlite3 (7.4.33) | tokenizer (7.4.33) | xml (7.4.33) | xmlwriter (7.4.33) | xsl (7.4.33) | zip (1.15.6) | mysqli (7.4.33) | pdo_mysql (7.4.33) | pdo_sqlite (7.4.33) | xmlreader (7.4.33) | Zend Engine (3.4.0) |
Potential Missing Extensions :: fileinfo |
Disabled Functions :: exec | passthru | shell_exec | system |

Switch User Environment :: PHP CGI: Yes | Server SU: No | 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: 284708 | Threads: 2 | Questions: 5889485 | Slow queries: 166 | Opens: 128578 | Flush tables: 4 | Open tables: 4000 | Queries per second avg: 20.686 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

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

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

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

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_actionlog_joomla (3.9.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_api-authentication_token (4.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_behaviour_compat (5.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_emailcloak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_finder (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.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_fields_calendar (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_filesystem_local (4.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_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_installer_folderinstaller (3.6.0) 1 | plg_installer_override (4.0.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_webinstaller (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_media-action_resize (4.0.0) 1 | plg_media-action_rotate (4.0.0) 1 | plg_multifactorauth_email (4.2.0) 1 | plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_totp (3.2.0) 1 | plg_multifactorauth_webauthn (4.2.0) 1 | plg_multifactorauth_yubikey (3.2.0) 1 | plg_privacy_actionlogs (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 | plg_privacy_user (3.9.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_quickicon_eos (4.4.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_sampledata_multilang (4.0.0) 1 | plg_schemaorg_blogposting (5.0.0) 1 | plg_schemaorg_book (5.0.0) 1 | plg_schemaorg_event (5.0.0) 1 | plg_schemaorg_jobposting (5.0.0) 1 | plg_schemaorg_organization (5.0.0) 1 | plg_schemaorg_person (5.0.0) 1 | plg_schemaorg_recipe (5.0.0) 1 | plg_system_accessibility (4.0.0) 0 | plg_system_actionlogs (3.9.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_guidedtours (4.3.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_httpheaders (4.0.0) 1 | plg_system_jooa11y (4.2.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_schedulerunner (4.1) 1 | plg_system_schemaorg (5.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_shortcut (4.2.0) 1 | plg_system_skipto (4.0.0) 1 | plg_system_stats (3.5.0) 1 | plg_system_task_notification (4.1) 1 | plg_system_webauthn (4.0.0) 1 | plg_task_check_files (4.1) 1 | plg_task_deleteactionlogs (5.0.0) 1 | plg_task_globalcheckin (5.0.0) 1 | plg_task_privacyconsent (5.0.0) 1 | plg_task_requests (4.1) 1 | plg_task_rotatelogs (5.0.0) 1 | plg_task_sessiongc (5.0.0) 1 | plg_task_site_status (4.1) 1 | plg_task_updatenotification (5.0.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_user_token (3.9.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_languages (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_messages (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_publishing (4.0.0) 1 |
3rd Party:: plg_editors_codemirror (6.0.0) 1 | plg_editors_tinymce (6.7.3) 1 | Fields - YOOtheme Location (4.2.11) 1 | Installer - YOOtheme (1.0.7) 1 | System - YOOtheme Framework (4.2.11) 1 |
Templates Discovered :: wrote:Templates :: Site :: YOOtheme (4.2.11) 1 | cassiopeia (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |

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

Re: Joomla 5 does not recognize php 8.1

Post by toivo » Wed Feb 21, 2024 1:48 am

Check the contents of the file .htaccess. Some hosts add their own scripts there to use a particular version of PHP. Ask you host to fix this and also ask them to make sure that the session path specified in php.ini is writable.

The PHP extension fileinfo should also be enabled. You may be able to enable PHP extension from the Software section of the cPanel or a similar page, provided by your host.
Toivo Talikka, Global Moderator

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

Re: Joomla 5 does not recognize php 8.1

Post by Per Yngve Berg » Wed Feb 21, 2024 2:43 am

Values are to small:
Max. Upload Size: 10M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Increase to:
Max. Upload Size: 64M
Max. POST Size: 128M
Memory Limit: 256M

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

Re: Joomla 5 does not recognize php 8.1

Post by AMurray » Wed Feb 21, 2024 9:41 am

FPA says you're on PHP 7.4 not 8.1 J5 minimum is PHP 8.1 and MySQL 8.0.13 OR Maria DB 10.4.0 minimum.
https://manual.joomla.org/docs/next/get ... uirements/

Your database seems to be compliant:

FPA reports:
FPA Report wrote: dbConnection Type: mysqli | PHP Supports J! 5.0.1: Yes | Database Supports J! 5.0.1: Yes | Database Credentials Present: Yes |
Database Configuration :: Version: 8.0.36 (Client:mysqlnd 7.4.33)
.
FPA Report wrote: PHP Supports J! 5.0.1: Yes
PHP Configuration :: Version: 7.4.33
This doesn't seem to make sense.....PHP 5.0.x won't run on PHP 7.4.x yet your FPA gives it a pass mark.
Regards - A Murray
General Support Moderator

opkyrtsis
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Tue Sep 19, 2017 11:06 pm

Re: Joomla 5 does not recognize php 8.1

Post by opkyrtsis » Wed Feb 21, 2024 11:02 am

AMurray wrote:
Wed Feb 21, 2024 9:41 am
FPA says you're on PHP 7.4 not 8.1 J5 minimum is PHP 8.1 and MySQL 8.0.13 OR Maria DB 10.4.0 minimum.
https://manual.joomla.org/docs/next/get ... uirements/

Your database seems to be compliant:

FPA reports:
FPA Report wrote: dbConnection Type: mysqli | PHP Supports J! 5.0.1: Yes | Database Supports J! 5.0.1: Yes | Database Credentials Present: Yes |
Database Configuration :: Version: 8.0.36 (Client:mysqlnd 7.4.33)
.
FPA Report wrote: PHP Supports J! 5.0.1: Yes
PHP Configuration :: Version: 7.4.33
This doesn't seem to make sense.....PHP 5.0.x won't run on PHP 7.4.x yet your FPA gives it a pass mark.
This is strange. PHP 8.1 is indeed selected...

User avatar
JAVesey
Joomla! Hero
Joomla! Hero
Posts: 2632
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Joomla 5 does not recognize php 8.1

Post by JAVesey » Thu Feb 22, 2024 8:01 pm

opkyrtsis wrote:
Wed Feb 21, 2024 11:02 am
This is strange. PHP 8.1 is indeed selected...
As @Toivo advised, check the contents of your .htaccess file. There could be an entry to that calls a different PHP version than the one you’ve selected in your cPanel.

This line in your FPA tells you that all is not well:

Code: Select all

Database Configuration :: Version: 8.0.36 (Client:mysqlnd 7.4.33) | Database Size: 4.80 MiB | #of Tables with config prefix:  74 | #of other Tables:  0 | User Privileges : GRANT ALL
Have you asked for support from your hosting provider?
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28


Post Reply

Return to “Installation Joomla! 5.x”