Site fails after upograding to PHP 7.4 Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.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
ArtistScope
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jun 08, 2019 10:00 am

Site fails after upograding to PHP 7.4

Post by ArtistScope » Thu Apr 29, 2021 10:31 pm

After updating PHP from 7.2 to 7.4 my Joomla site now hows "error" on a white page.

I have searched the forum and checked XML libraries, etc and still solution. SimpleXML is installed as seems everything else. But I still get these error...

Code: Select all

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/filesystem/path.php on line 149
Error: Call to undefined function Joomla\CMS\Language\simplexml_load_file(): Call to undefined function Joomla\CMS\Language\simplexml_load_file()

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/database/driver.php on line 1946

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/database/driver.php on line 1946

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/database/driver.php on line 1946

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/database/driver.php on line 1946

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/database/driver.php on line 1946

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/database/driver.php on line 2022

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/filesystem/path.php on line 143

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/filesystem/path.php on line 146
I even tried a fresh install and still got...

Code: Select all

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/filesystem/path.php on line 149
Error: Call to undefined function Joomla\CMS\Language\simplexml_load_file(): Call to undefined function Joomla\CMS\Language\simplexml_load_file()
What could be the cause?

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

Re: Site fails after upograding to PHP 7.4

Post by AMurray » Thu Apr 29, 2021 11:41 pm

It could be extension or template incompatibility. Or some required PHP 7.4 functionality is not enabled when it was in 7.2.

We can discover what might be wrong with additional information: please run the FPA and post the report results to the forum; follow instructions found here: https://forumpostassistant.github.io/docs/

It is curious though, that you have the same issue with a fresh bare-bones installation? Latest Joomla 3.9.x will work on PHP 7.4.
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

ArtistScope
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jun 08, 2019 10:00 am

Re: Site fails after upograding to PHP 7.4

Post by ArtistScope » Sat May 01, 2021 12:17 am

First thing that I noticed is that it reports SimpleXML or allow_url_fopen not available, yet isn't SimpleXML part of PHP-XML which is installed?
Forum Post Assistant (v1.6.2) : 1-May-2021 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.8.7-Stable (Amani) 18-April-2018
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (644) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: true | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: maximum | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.8.7: No | Database Supports J! 3.8.7: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.10.0-1160.24.1.el7.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br | System TMP Writable: Yes | Free Disk Space : 70.39 GiB |

PHP Configuration :: Version: 7.4.18 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: | 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: 2M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 5.5.68-MariaDB (Client:mysqlnd 7.4.18) | Database Size: 4.65 MiB | #of Tables with config prefix: 75 | #of other Tables: 0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.18) | date (7.4.18) | libxml (7.4.18) | openssl (7.4.18) | pcre (7.4.18) | zlib (7.4.18) | filter (7.4.18) | hash (7.4.18) | Reflection (7.4.18) | SPL (7.4.18) | session (7.4.18) | standard (7.4.18) | apache2handler (7.4.18) | bz2 (7.4.18) | calendar (7.4.18) | ctype (7.4.18) | curl (7.4.18) | exif (7.4.18) | fileinfo (7.4.18) | ftp (7.4.18) | gd (7.4.18) | gettext (7.4.18) | iconv (7.4.18) | json (7.4.18) | ldap (7.4.18) | mysqlnd (mysqlnd 7.4.18) | PDO (7.4.18) | Phar (7.4.18) | sockets (7.4.18) | sodium (7.4.18) | sqlite3 (7.4.18) | tokenizer (7.4.18) | mcrypt (1.0.4) | mysqli (7.4.18) | pdo_mysql (7.4.18) | pdo_sqlite (7.4.18) | zip (1.19.2) | Zend Engine (3.4.0) |
Potential Missing Extensions :: xml | mbstring |

Switch User Environment :: PHP CGI: No | Server SU: No | PHP SU: No | Potential Ownership Issues: Maybe

Apache Modules :: core | mod_so | http_core | mod_artisfilter | mod_access_compat | mod_actions | mod_alias | mod_allowmethods | mod_auth_basic | mod_auth_digest | mod_authn_anon | mod_authn_core | mod_authn_dbd | mod_authn_dbm | mod_authn_file | mod_authn_socache | mod_authz_core | mod_authz_dbd | mod_authz_dbm | mod_authz_groupfile | mod_authz_host | mod_authz_owner | mod_authz_user | mod_autoindex | mod_cache | mod_cache_disk | mod_data | mod_dbd | mod_deflate | mod_dir | mod_dumpio | mod_echo | mod_env | mod_expires | mod_ext_filter | mod_filter | mod_headers | mod_include | mod_info | mod_log_config | mod_logio | mod_mime_magic | mod_mime | mod_negotiation | mod_remoteip | mod_reqtimeout | mod_rewrite | mod_setenvif | mod_slotmem_plain | mod_slotmem_shm | mod_socache_dbm | mod_socache_memcache | mod_socache_shmcb | mod_status | mod_substitute | mod_suexec | mod_unique_id | mod_unixd | mod_userdir | mod_version | mod_vhost_alias | mod_dav | mod_dav_fs | mod_dav_lock | mod_lua | prefork | mod_proxy | mod_lbmethod_bybusyness | mod_lbmethod_byrequests | mod_lbmethod_bytraffic | mod_lbmethod_heartbeat | mod_proxy_ajp | mod_proxy_balancer | mod_proxy_connect | mod_proxy_express | mod_proxy_fcgi | mod_proxy_fdpass | mod_proxy_ftp | mod_proxy_http | mod_proxy_scgi | mod_proxy_wstunnel | mod_ssl | mod_systemd | mod_cgi | mod_session | mod_session_cookie | mod_session_dbd | mod_auth_form | mod_php7 | Apache |
Potential Missing Modules :: mod_security | mod_evasive | mod_dosevasive | mod_qos |
Folder Permissions :: wrote:Core Folders :: images/ (775) | components/ (775) | modules/ (775) | plugins/ (775) | language/ (775) | templates/ (775) | cache/ (775) | logs/ (---) | tmp/ (775) | administrator/components/ (775) | administrator/modules/ (775) | administrator/language/ (775) | administrator/templates/ (775) | administrator/logs/ (775) |

Elevated Permissions (First 10) :: components/ (775) | components/com_banners/ (775) | components/com_banners/helpers/ (775) | components/com_banners/models/ (775) | components/com_config/ (775) | components/com_contenthistory/ (775) | components/com_wrapper/ (775) | components/com_wrapper/views/ (775) | components/com_wrapper/views/wrapper/ (775) | components/com_wrapper/views/wrapper/tmpl/ (775) |
Database Information :: wrote:Database statistics :: Uptime: 104520 | Threads: 1 | Questions: 51643 | Slow queries: 0 | Opens: 166 | Flush tables: 2 | Open tables: 192 | Queries per second avg: 0.494 |
Extensions Discovered :: wrote:Components :: Site ::
Core :: com_wrapper (3.0.0) 1 | com_mailto (3.0.0) 1 |
3rd Party::

Components :: Admin ::
Core :: com_banners (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_categories (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_installer (3.0.0) 1 | com_cache (3.0.0) 1 | com_login (3.0.0) 1 | com_templates (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_admin (3.0.0) 1 | com_config (3.0.0) 1 | com_modules (3.0.0) 1 | com_media (3.0.0) 1 | com_messages (3.0.0) 1 | com_content (3.0.0) 1 | com_menus (3.0.0) 1 | com_plugins (3.0.0) 1 | com_redirect (3.0.0) 1 | com_checkin (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_languages (3.0.0) 1 | com_finder (3.0.0) 1 | com_tags (3.1.0) 1 | com_ajax (3.2.0) 1 | com_users (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_fields (3.7.0) 1 | com_associations (3.7.0) 1 | com_search (3.0.0) 1 |
3rd Party:: com_tagmeta (1.9.1) 1 | com_copysafeweb (4.8.0.1) 1 | com_copysafepdf (3.1.0.1) 1 | com_copysafevideo (7.1.0.0) 1 |

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

Modules :: Admin ::
Core :: mod_submenu (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_feed (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_login (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_title (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_version (3.0.0) 1 | mod_status (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_latest (3.0.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_captcha_recaptcha (3.4.0) 0 | plg_search_tags (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_user_joomla (3.0.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 0 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_updatenotification (3.5.0) 0 | plg_system_sessiongc (3.8.6) 1 | plg_system_log (3.0.0) 1 | plg_system_redirect (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_stats (3.5.0) 1 | plg_system_p3p (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_fields (3.7.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_content_pagenavigation (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_vote (3.0.0) 0 | plg_content_pagebreak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_calendar (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_textarea (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_text (3.7.0) 1 |
3rd Party:: Button - CopySafeWeb (4.8.0.1) 1 | Button - CopySafeVideo (7.1.0.0) 1 | Button - CopySafePDF (3.1.0.1) 1 | plg_editors_codemirror (5.35.0) 1 | plg_editors_tinymce (4.5.8) 1 | ArtisChat (1.0.0) 1 | plg_system_tagmeta (1.9.1) 1 | Content - CopySafeWeb (4.8.0.1) 1 | Content - CopySafeVideo (7.1.0.0) 1 | Content - CopySafePDF (3.1.0.1) 1 |
Templates Discovered :: wrote:Templates :: Site :: protostar (1.0) 1 | beez3 (3.1.0) 1 |
Templates :: Admin :: hathor (3.0.0) 1 | isis (1.0) 1 |
Last edited by toivo on Sat May 01, 2021 12:47 am, edited 1 time in total.
Reason: mod note: removed CODE tags, disabled smilies

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 10167
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Site fails after upograding to PHP 7.4

Post by sozzled » Sat May 01, 2021 12:22 am

PHP 7.4 cannot be used with J! 3.8.7.

/end
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

ArtistScope
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jun 08, 2019 10:00 am

Re: Site fails after upograding to PHP 7.4

Post by ArtistScope » Sat May 01, 2021 12:39 am

Did you notice that earlier I mentioned that I tried a fresh install using the latest version and from /installation/index.php I still got...

Code: Select all

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/joomla.artistscope.com/libraries/joomla/filesystem/path.php on line 149
Error: Call to undefined function Joomla\CMS\Language\simplexml_load_file(): Call to undefined function Joomla\CMS\Language\simplexml_load_file()
I think it is about SimpleXML but isn't that installed with php-xml?

I did install php7.4-xml

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 10167
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Site fails after upograding to PHP 7.4

Post by sozzled » Sat May 01, 2021 12:47 am

The FPA report (even unreadable as you've posted it), says that your J! website is running J! 3.8.7. OK?

The version of ../libraries/joomla/filesystem/path.php (written for J! 3.8.7) was released three years ago. That file worked with PHP 7.0 and PHP 7.1 (which were available around that time), that file probably works with PHP 7.2 and PHP 7.3; PHP 7.4 is completely different. That file doesn't work with PHP 7.4 (unless you change it). The easiest approach to fix your problem would be to update your outdated J! software.

There is nothing more to be said about this. It's your choice what you do next.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

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

Re: Site fails after upograding to PHP 7.4

Post by toivo » Sat May 01, 2021 12:51 am

According to the FPA results, the PHP extension XML is missing:

Potential Missing Extensions :: xml | mbstring
Toivo Talikka, Global Moderator

ArtistScope
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jun 08, 2019 10:00 am

Re: Site fails after upograding to PHP 7.4

Post by ArtistScope » Sat May 01, 2021 1:41 am

toivo wrote:
Sat May 01, 2021 12:51 am
Potential Missing Extensions :: xml | mbstring
I installed mbstring but the report is the same. I am thinking that i have mixed modules that don't recognise each other, for example:

Code: Select all

oniguruma5php 6.9.6-1.el7.remi
php 7.4.18-1.el7.remi
php-cli 7.4.18-1.el7.remi
php-gd 7.4.18-1.el7.remi
php-json 7.4.18-1.el7.remi
php-ldap 7.4.18-1.el7.remi
php-mysqlnd 7.4.18-1.el7.remi
php-pdo 7.4.18-1.el7.remi
php-pecl-mcrypt 1.0.4-1.el7.remi.7.4
php-pecl-zip 1.19.2-1.el7.remi.7.4
php-sodium 7.4.18-1.el7.remi
php74-common 7.4.18-1.el7.ius
php74-mbstring 7.4.18-1.el7.ius
php74-php-xml 7.4.18-1.el7.remi
But when search for php modules I do see mbstring...

Code: Select all

bz2
calendar
Core
ctype
curl
date
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
sockets
sodium
SPL
sqlite3
standard
tokenizer
zip
zlib

ArtistScope
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jun 08, 2019 10:00 am

Re: Site fails after upograding to PHP 7.4

Post by ArtistScope » Sat May 01, 2021 11:57 pm

I think it best that I start again by removing all PHP components and re-install PHP 7.4 again.

Can someone please please list all of the PHP modules that are needed for Joomla 3.9?

And the best yum repository because the last one that I used did not include everything?

ArtistScope
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jun 08, 2019 10:00 am

Re: Site fails after upograding to PHP 7.4

Post by ArtistScope » Sun May 02, 2021 2:19 am

Problem solved after manually removing old repos from /etc/yum.repos.d/ ...

Then re-installing PHP and modules from a repo that contains the complete collection for 7.4


Post Reply

Return to “Installation Joomla! 3.x”