Upgrading php7.4.33 to 8.1 Topic is solved

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, 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.
Locked
pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Wed Nov 16, 2022 7:08 pm

I have upgraded my website from Joomla 3.10 to 4.2.5 and have investigated upgrading php to 8.1. I have successfully rendered the frontend at php 8.1 but the Administrator Home Dashboard displays errors. I have debugging working but cannot see the solution.
I have inserted FPA and attach a copy of the results.
Any help will be most gratefully received.
You do not have the required permissions to view the files attached to this post.
Last edited by imanickam on Wed Nov 23, 2022 7:59 pm, edited 1 time in total.
Reason: Moved topic » from Administration Joomla! 4.x to Extensions for Joomla! 4.x

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

Re: Upgrading php7.4.33 to 8.1

Post by toivo » Wed Nov 16, 2022 7:32 pm

Please follow the FPA instructions and copy and paste the results as BBCode into your reply!
Toivo Talikka, Global Moderator

pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Re: Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Sun Nov 20, 2022 6:43 pm

Apologies, I didn't read all the instructions.
Forum Post Assistant (v1.6.5) : 20-Nov-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.2.5-Stable (Uaminifu) 8-November-2022
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: true | Cache: true | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: true | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: default | Site Debug: true | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.2.5: Yes | Database Supports J! 4.2.5: Yes | Database Credentials Present: Yes |

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

PHP Configuration :: Version: 7.4.33 | PHP API: litespeed | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 32759 | Log Errors To: error_log | Last Known Error: 19th November 2022 06:39:11. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 512M | Max. POST Size: 512M | Max. Input Time: 300 | Max. Execution Time: 300 | Memory Limit: 512M

Database Configuration :: Version: 5.7.40 (Client:5.7.40) | Database Size: 30.50 MiB | #of Tables with config prefix:  237 | #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) | sqlite3 (7.4.33) | zlib (7.4.33) | bz2 (7.4.33) | calendar (7.4.33) | ctype (7.4.33) | curl (7.4.33) | hash (7.4.33) | filter (7.4.33) | ftp (7.4.33) | gettext (7.4.33) | gmp (7.4.33) | SPL (7.4.33) | iconv (7.4.33) | pcntl (7.4.33) | readline (7.4.33) | Reflection (7.4.33) | session (7.4.33) | standard (7.4.33) | shmop (7.4.33) | SimpleXML (7.4.33) | mbstring (7.4.33) | tokenizer (7.4.33) | xml (7.4.33) | litespeed () | i360 (7.0.4) | bcmath (7.4.33) | dba (7.4.33) | dom (20031129) | enchant (7.4.33) | fileinfo (7.4.33) | gd (7.4.33) | imap (7.4.33) | intl (7.4.33) | json (7.4.33) | ldap (7.4.33) | exif (7.4.33) | mysqli (7.4.33) | mysqlnd (mysqlnd 7.4.33) | PDO (7.4.33) | pdo_mysql (7.4.33) | pdo_pgsql (7.4.33) | pdo_sqlite (7.4.33) | pgsql (7.4.33) | Phar (7.4.33) | posix (7.4.33) | pspell (7.4.33) | snmp (7.4.33) | soap (7.4.33) | sockets (7.4.33) | sysvmsg (7.4.33) | sysvsem (7.4.33) | sysvshm (7.4.33) | xmlreader (7.4.33) | xmlrpc (7.4.33) | xmlwriter (7.4.33) | xsl (7.4.33) | zip (1.15.6) | Zend Engine (3.4.0) |
Potential Missing Extensions ::

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

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 3340238 | Threads: 2 | Questions: 243538354 | Slow queries: 0 | Opens: 9917793 | Flush tables: 118 | Open tables: 2000 | Queries per second avg: 72.910 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party:: WF_LINKS_JOOMLALINKS_TITLE (2.9.32) ? | WF_AGGREGATOR_[youtube]_TITLE (2.9.32) ? | WF_AGGREGATOR_VINE_TITLE (2.6.20) ? | WF_AGGREGATOR_VIMEO_TITLE (2.9.32) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.9.32) ? | WF_AGGREGATOR_VIDEO_TITLE (2.9.32) ? | WF_AGGREGATOR_AUDIO_TITLE (2.9.32) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.9.32) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.9.32) ? | WF_POPUPS_WINDOW_TITLE (2.6.20) ? | WF_LINK_SEARCH_TITLE (2.9.32) ? | WF_WORDCOUNT_TITLE (2.9.32) ? | WF_ATTRIBUTES_TITLE (2.9.32) ? | WF_HR_TITLE (2.9.32) ? | WF_PREVIEW_TITLE (2.9.32) ? | WF_FULLSCREEN_TITLE (2.9.32) ? | WF_SEARCHREPLACE_TITLE (2.9.32) ? | WF_FONTSELECT_TITLE (2.9.32) ? | JCE - Noneditable (1.0.0) ? | WF_LAYER_TITLE (2.6.20) ? | WF_NONBREAKING_TITLE (2.9.32) ? | WF_CLEANUP_TITLE (2.9.32) ? | WF_MEDIA_TITLE (2.9.32) ? | WF_FORMATSELECT_TITLE (2.9.32) ? | WF_KITCHENSINK_TITLE (2.9.32) ? | WF_ANCHOR_TITLE (2.9.32) ? | WF_STYLE_TITLE (2.9.32) ? | WF_SOURCE_TITLE (2.9.32) ? | WF_LISTS_TITLE (2.9.32) ? | WF_DIRECTIONALITY_TITLE (2.9.32) ? | WF_AUTOSAVE_TITLE (2.9.32) ? | WF_TEXTCASE_TITLE (2.9.32) ? | WF_LANGCODE_TITLE (2.9.32) ? | WF_CLIPBOARD_TITLE (2.9.32) ? | WF_HELP_TITLE (2.9.32) ? | WF_IMGMANAGER_TITLE (2.9.32) ? | WF_ARTICLE_TITLE (2.9.32) ? | WF_SPELLCHECKER_TITLE (2.9.32) ? | WF_PRINT_TITLE (2.9.32) ? | WF_BROWSER_TITLE (2.9.32) ? | WF_STYLESELECT_TITLE (2.9.32) ? | WF_FONTSIZESELECT_TITLE (2.9.32) ? | WF_CHARMAP_TITLE (2.9.32) ? | WF_FONTCOLOR_TITLE (2.9.32) ? | WF_VISUALCHARS_TITLE (2.9.32) ? | WF_TABLE_TITLE (2.9.32) ? | WF_CONTEXTMENU_TITLE (2.9.32) ? | WF_REFERENCE_TITLE (2.9.32) ? | WF_LINK_TITLE (2.9.32) ? | WF_INLINEPOPUPS_TITLE (2.6.20) ? | WF_VISUALBLOCKS_TITLE (2.9.32) ? | WF_XHTMLXTRAS_TITLE (2.6.20) ? | WF_EMOTIONS_TITLE (2.9.32) ? |

Components :: Admin ::
Core :: com_modules (4.0.0) 1 | com_newsfeeds (4.0.0) 1 | com_fields (4.0.0) 1 | com_plugins (4.0.0) 1 | com_admin (4.0.0) 1 | com_languages (4.0.0) 1 | com_config (4.0.0) 1 | com_contenthistory (4.0.0) 1 | com_tags (4.0.0) 1 | com_login (4.0.0) 1 | com_wrapper (4.0.0) 1 | com_media (3.0.0) 1 | com_weblinks (4.0.1) 1 | com_ajax (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_postinstall (4.0.0) 1 | com_actionlogs (3.9.0) 1 | com_users (4.0.0) 1 | com_finder (4.0.0) 1 | com_templates (4.0.0) 1 | com_mails (4.0.0) 1 | com_categories (4.0.0) 1 | com_scheduler (4.1.0) 1 | com_content (4.0.0) 1 | com_cache (4.0.0) 1 | com_workflow (4.0.0) 1 | com_installer (4.0.0) 1 | com_menus (4.0.0) 1 | com_banners (4.0.0) 1 | com_cpanel (4.0.0) 1 | com_checkin (4.0.0) 1 | com_messages (4.0.0) 1 | com_associations (4.0.0) 1 | com_privacy (3.9.0) 1 | com_search (4.0.0-dev) 1 | com_redirect (4.0.0) 1 |
3rd Party:: Free Mono (-) ? | Helvetica (-) ? | com_phocapdf (4.0.0) 1 | com_admintools (7.1.11) 1 | com_akeebabackup (9.4.3) 1 | com_djimageslider (4.4) 1 | Securitycheck (3.5.1) 1 | Cookies CK (3.3.3) 1 | com_cookiesck (3.3.3) 1 | COM_OSMAP (5.0.8) 1 | com_phocadownload (4.0.4) 1 | COM_JCE (2.9.32) 1 | com_dpcalendar (8.7.0) 1 | com_phocagallery (4.5.2) 1 |

Modules :: Site ::
Core :: mod_users_latest (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_weblinks (4.0.1) 1 | mod_search (4.0.0-dev) 1 | mod_languages (3.5.0) 1 | mod_tags_similar (3.1.0) 1 | mod_login (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 |
3rd Party:: mod_dpcalendar_upcoming (8.3.2) 1 | OS Responsive Image Gallery (1.0.2) 1 | mod_dpcalendar_mini (8.3.2) 1 | JJ Social Slider (3.0.0) 1 | sigplus (1.5.0.294) 1 | DJ-ImageSlider (4.4) 1 | RokAjaxSearch (2.0.6) 1 | mod_dpcalendar_counter (8.3.2) 1 | Simple RSS Feed Reader (by JoomlaWo (3.9.0) ? | Donations Thermometer (1.6.9) 1 |

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

Libraries ::
Core ::
3rd Party:: file_fof30 (3.6.2) ? | Regular Labs Library (22.9.4783) 1 | {{extension.element.lower}} (1.0.0) ? | {{extension.element.lower}} (1.0.0) ? | {{extension.element.lower}} (1.0) ? | {{extension.element.lower}} (1.0) ? | windwalker (4.1.21) 1 | file_fof40 (4.1.0) ? |

Plugins ::
Core :: plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_totp (3.2.0) 0 | plg_multifactorauth_webauthn (4.2.0) 0 | plg_multifactorauth_yubikey (3.2.0) 0 | plg_multifactorauth_email (4.2.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_terms (3.9.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 0 | plg_user_token (3.9.0) 1 | plg_filesystem_local (4.0.0) 1 | 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_api-authentication_basic (4.0.0) 0 | plg_api-authentication_token (4.0.0) 1 | plg_editors-xtd_image (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_readmore (3.0.0) 1 | plg_editors-xtd_weblink (4.0.1) 0 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_extension_finder (4.0.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_system_task_notification (4.1) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_sef (3.0.0) 1 | plg_system_log (3.0.0) 1 | plg_system_weblinks (4.0.1) 0 | plg_system_remember (3.0.0) 1 | plg_system_redirect (3.0.0) 1 | plg_system_accessibility (4.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 0 | plg_system_logout (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_skipto (4.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_shortcut (4.2.0) 1 | plg_system_schedulerunner (4.1) 1 | plg_system_fields (3.7.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_httpheaders (4.0.0) 0 | plg_system_actionlogs (3.9.0) 0 | plg_system_jooa11y (4.2.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_workflow_featuring (4.0.0) 1 | plg_workflow_publishing (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_media-action_resize (4.0.0) 1 | plg_media-action_rotate (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_search_contacts (4.0.0-dev) 1 | plg_search_categories (4.0.0-dev) 1 | plg_search_weblinks (4.0.1) 0 | plg_search_newsfeeds (4.0.0-dev) 1 | plg_search_content (4.0.0-dev) 1 | plg_search_tags (4.0.0-dev) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_weblinks (4.0.1) 0 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 1 | plg_fields_url (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_installer_folderinstaller (3.6.0) 1 | plg_installer_webinstaller (4.0.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_override (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_webservices_modules (4.0.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_languages (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_privacy (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_fields (3.7.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_emailcloak (3.0.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 |
3rd Party:: plg_user_dpcalendar (8.7.0) 1 | plg_sampledata_dpcalendar (8.3.2) 1 | PLG_EDITORS-XTD_BETTERPREVIEW (6.7.1) 0 | plg_editors-xtd_sigplus (1.5.0.294) 0 | plg_extension_jce (2.9.32) 1 | PLG_OSMAP_JOOMLA (5.0.8) 1 | PLG_SYSTEM_REGULARLABS (22.9.4783) 0 | plg_system_jce (2.9.32) 1 | PLG_SYSTEM_BETTERPREVIEW (6.7.1) 0 | plg_system_phocapdf (3.0.12) 0 | plg_system_ospamanot (2.0.4) 1 | Cookies CK (3.3.3) 1 | System - Helix Ultimate Framework (2.0.11) 1 | PLG_SYSTEM_ADMINTOOLS (7.1.11) 1 | plg_system_osmylicensesmanager (2.0.15) 1 | System - Securitycheck (3.5.1) 0 | plg_phocapdf_content (3.0.12) 1 | plg_search_sigplus (1.5.0.294) 0 | plg_search_dpcalendar (8.3.2) 1 | Smart Search - mp3 Browser Fork (0.4.1) 0 | plg_fields_mediajce (2.9.32) 1 | plg_fields_dpcalendar (8.7.0) 1 | plg_installer_jce (2.9.32) 1 | plg_installer_dpcalendar (8.7.0) 1 | plg_editors_jce (2.9.32) 1 | plg_editors_codemirror (5.65.6) 1 | plg_editors_tinymce (5.10.5) 1 | plg_privacy_dpcalendar (8.7.0) 1 | plg_content_jce (2.9.32) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | PLG_EMBED_GOOGLE_MAP (2.3.1) 1 | plg_content_sigplus (1.5.0.294) 1 | plg_content_dpcalendar (8.7.0) 1 | PLG_MP3BROWSER_SYS_NAME (0.4.1) 0 | Simple Audio Player - Shortcode (1.5) 1 | PLG_ACTIONLOG_ADMINTOOLS (7.1.11) 0 | plg_actionlog_dpcalendar (8.7.0) 1 | PLG_QUICKICON_AKEEBABACKUP (9.4.3) 0 | plg_quickicon_jce (2.9.32) 0 |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 | lt_corporation (4.0) 1 | lt_personal (4.0) 1 |
Templates :: Admin :: atum (1.0) 1 |
Regards,
Pterosaur
Last edited by toivo on Sun Nov 20, 2022 7:40 pm, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

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

Re: Upgrading php7.4.33 to 8.1

Post by toivo » Sun Nov 20, 2022 7:43 pm

Does the PHP error log have PHP fatal errors when the 500 error occurs?

Please go to the Global Configuration and set Error Reporting to 'Maximum' and enable the Debug option. Those selections will display the error messages. Copy and paste them into your reply.
Toivo Talikka, Global Moderator

pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Re: Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Tue Nov 22, 2022 10:33 am

Hello toivo,

The Fatal Error is: Compile Error: Array and string offset access syntax with curly braces is no longer supported


     */
    public static function getStrLen( $str ) {
        $strlenVar = strlen( $str );
        $d = $ret = 0;
        for ( $count = 0; $count < $strlenVar; ++$count ) {
            $ordinalValue = ord( $str{$ret} );
            switch ( true ) {
                case ( ( $ordinalValue >= 0x20 ) && ( $ordinalValue <= 0x7F ) ) :
                    // characters U-00000000 - U-0000007F (same as ASCII)
                    $ret++;
                    break;

The error log when the fault is on contains:

[03-Jan-2019 22:06:25 UTC] PHP Warning: include(app/Mage.php): failed to open stream: No such file or directory in Command line code on line 1
[03-Jan-2019 22:06:25 UTC] PHP Warning: include(app/Mage.php): failed to open stream: No such file or directory in Command line code on line 1
[03-Jan-2019 22:06:25 UTC] PHP Warning: include(): Failed opening 'app/Mage.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in Command line code on line 1
[03-Jan-2019 22:06:25 UTC] PHP Fatal error: Class 'Mage' not found in Command line code on line 1

Thank you for your help,
Pterosaur2

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

Re: Upgrading php7.4.33 to 8.1

Post by toivo » Tue Nov 22, 2022 12:57 pm

pterosaur2 wrote:
Tue Nov 22, 2022 10:33 am
Compile Error: Array and string offset access syntax with curly braces is no longer supported
This error does not come from the core of Joomla 4. Some incompatible third party extension may use obsolete syntax, though. The Debug option should have shown the name and location of the script where this error occurred.

Where did this piece of PHP code come from?

The entries from the error log show attempts to access the file app/Mage.php that does not belong to Joomla. Had the website been hacked in 2019?
Toivo Talikka, Global Moderator

pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Re: Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Tue Nov 22, 2022 5:06 pm

Hello toivo,

In response to your question:
Does the PHP error log have PHP fatal errors when the 500 error occurs?

The error message with php 8.1 enabled is from the Administrators home dashboard and the code below it is debug information.

I am not aware of any hacking of the site or what App Mage.php might be.

Thank you for all your help.

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

Re: Upgrading php7.4.33 to 8.1

Post by toivo » Tue Nov 22, 2022 8:38 pm

pterosaur2 wrote:
Tue Nov 22, 2022 5:06 pm
I am not aware of any hacking of the site or what App Mage.php might be.
The hacking attempt would have gone unnoticed in 2019 but the request to access the file /app/Mage.php may have originated inside PHP code that was run by the website at that time.

pterosaur2 wrote:
Tue Nov 22, 2022 5:06 pm
The error message with php 8.1 enabled is from the Administrators home dashboard and the code below it is debug information.
Usually debug information gives the location, the path of the script where the error occurs. In this case the following line uses curly brackets, deprecated in PHP 7.4 and no longer supported in PHP 8:

Code: Select all

            $ordinalValue = ord( $str{$ret} );
Make sure that the plugin System - Debug is enabled and access the Dashboard again. Hopefully the location of the obsolete plugin will be displayed.

Ref. PHP RFC: Deprecate curly brace syntax for accessing array elements and string offsets
Toivo Talikka, Global Moderator

pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Re: Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Wed Nov 23, 2022 12:29 pm

I've checked that the plugin is enabled and checked the error message now displayed on the home dashboard which is:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/allsa694/public_html/administrator/modules/mod_ga_dash/src/Google/Utils.php on line 57

with the Exception:
Symfony\Component\ErrorHandler\Error\ FatalError
in /home/allsa694/public_html/administrator/modules/mod_ga_dash/src/Google/Utils.php (line 57)

     */
    public static function getStrLen( $str ) {
        $strlenVar = strlen( $str );
        $d = $ret = 0;
        for ( $count = 0; $count < $strlenVar; ++$count ) {
            $ordinalValue = ord( $str{$ret} );
            switch ( true ) {
                case ( ( $ordinalValue >= 0x20 ) && ( $ordinalValue <= 0x7F ) ) :
                    // characters U-00000000 - U-0000007F (same as ASCII)
                    $ret++;
                    break;

Does that help?

Many thanks.

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

Re: Upgrading php7.4.33 to 8.1

Post by toivo » Wed Nov 23, 2022 1:00 pm

The culprit is the Google Analytics Dashboard, a third party extension. Where was this module downloaded from? It is strange that this administrator module is not found from the Joomla Extensions Directory (JED).

Modify the line shown above and change the curly braces to square brackets and check if the module still works:

Code: Select all

            $ordinalValue = ord( $str[$ret] );
Toivo Talikka, Global Moderator

pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Re: Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Wed Nov 23, 2022 2:31 pm

The Google Analytics Dashboard was, I think, from here: https://extensions.joomla.org/extension ... dashboard/

I've modified the line : for ( $count = 0; $count < $strlenVar; ++$count ) [
$ordinalValue = ord( $str{$ret} );

The Home Dashboard does now render but not quite correctlt and includes an error: 0 syntax error, unexpected token ";", expecting "]"

Its good to see progress, thank you.

pterosaur2
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 06, 2022 7:49 pm

Re: Upgrading php7.4.33 to 8.1

Post by pterosaur2 » Wed Nov 23, 2022 5:36 pm

Thank you toivo,

I looked again at what I had changed and amended it to change just the curly brackets in line 57, that solved the problem!!

Thank you for all your help.

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

Re: Upgrading php7.4.33 to 8.1

Post by toivo » Wed Nov 23, 2022 8:46 pm

pterosaur2 wrote:
Wed Nov 23, 2022 2:31 pm
The Google Analytics Dashboard was, I think, from here: https://extensions.joomla.org/extension ... dashboard/
That extensions is a system plugin 'advga' and it does not have any modules. Your issue comes from an administrator module called 'mod_ga_dash'.
Toivo Talikka, Global Moderator


Locked

Return to “Extensions for Joomla! 4.x”