Joomla 4.2.x crashes in frontend 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
ManfredB
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Sep 25, 2022 7:52 pm

Joomla 4.2.x crashes in frontend

Post by ManfredB » Sun Sep 25, 2022 8:15 pm

I am still using Joomla 4.1.5 because every upgrade to 4.2.x leads to a crash in the frontend with the following error messages:

count(): Argument #1 ($value) must be of type Countable|array, null given

Class "JEventDispatcher" not found

My trial website for 4.2.x is www.baumgaertner.xyz
The working live site using Joomla 4.1.5 is www.djk-fuerth.de

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

Re: Joomla 4.2.x crashes in frontend

Post by toivo » Sun Sep 25, 2022 9:38 pm

Welcome to the Joomla forum!

ManfredB wrote:
Sun Sep 25, 2022 8:15 pm
I am still using Joomla 4.1.5
Was this website first using Joomla 3 or an earlier version? That would explain the error message 'Class JEventDispatcher not found'. That error comes from the Joomla 3 Search component, which is not compatible with Joomla 4.

Go to System - Manage - Extensions and search for the word 'search'. Look for pkg_search and uninstall the obsolete Search package.

ManfredB wrote:
Sun Sep 25, 2022 8:15 pm
count(): Argument #1 ($value) must be of type Countable|array, null given
This error usually comes from a third party extension that is not compatible with Joomla 4, for example a template. Even if the template is compatible with Joomla 4, it may have overrides in the html folder that originate in Joomla 3 and are incompatible.

Set the level of error reporting in Global Configuration to 'Maximum' and enable the Debug option, which combination will display the call stack and show where the error comes from.

Please post the results from the Forum Post Assistant (FPA) by following the instructions at https://forumpostassistant.github.io/docs/ so that configuration can be reviewed.
Toivo Talikka, Global Moderator

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2445
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Joomla 4.2.x crashes in frontend

Post by SharkyKZ » Mon Sep 26, 2022 8:25 am


ManfredB
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Sep 25, 2022 7:52 pm

Re: Joomla 4.2.x crashes in frontend

Post by ManfredB » Mon Sep 26, 2022 4:47 pm

Forum Post Assistant (v1.6.5) : 26-Sep-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.2.3-rc1-Release Candidate (Uaminifu) 18-September-2022
Joomla! Configured :: Yes | Writable (644) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: N/A | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: 1 | Site Debug: true | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.2.3-rc1: Yes | Database Supports J! 4.2.3-rc1: Yes | Database Credentials Present: Yes |

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

PHP Configuration :: Version: 8.0.23 | PHP API: fpm-fcgi | 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: No | Open Base: | Uploads: 1 | Max. Upload Size: 50M | Max. POST Size: 75M | Max. Input Time: 60 | Max. Execution Time: 180 | Memory Limit: 256M

Database Configuration :: Version: 10.4.26-MariaDB (Client:mysqlnd 8.0.23) | Database Size: 12.95 MiB | #of Tables with config prefix:  91 | #of other Tables:  0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (8.0.23) | date (8.0.23) | libxml (8.0.23) | openssl (8.0.23) | pcre (8.0.23) | zlib (8.0.23) | filter (8.0.23) | hash (8.0.23) | json (8.0.23) | Reflection (8.0.23) | SPL (8.0.23) | session (8.0.23) | standard (8.0.23) | cgi-fcgi (8.0.23) | bcmath (8.0.23) | bz2 (8.0.23) | calendar (8.0.23) | ctype (8.0.23) | curl (8.0.23) | dba (8.0.23) | dom (20031129) | mbstring (8.0.23) | fileinfo (8.0.23) | ftp (8.0.23) | gd (8.0.23) | gettext (8.0.23) | gmp (8.0.23) | iconv (8.0.23) | imap (8.0.23) | intl (8.0.23) | ldap (8.0.23) | exif (8.0.23) | mysqlnd (mysqlnd 8.0.23) | PDO (8.0.23) | pgsql (8.0.23) | Phar (8.0.23) | posix (8.0.23) | shmop (8.0.23) | SimpleXML (8.0.23) | soap (8.0.23) | sockets (8.0.23) | sodium (8.0.23) | sqlite3 (8.0.23) | sysvmsg (8.0.23) | sysvsem (8.0.23) | sysvshm (8.0.23) | tokenizer (8.0.23) | xml (8.0.23) | xmlwriter (8.0.23) | xsl (8.0.23) | mcrypt (1.0.5) | mysqli (8.0.23) | pdo_mysql (8.0.23) | pdo_pgsql (8.0.23) | pdo_sqlite (8.0.23) | wddx (1.0.0-dev) | xmlreader (8.0.23) | xmlrpc (1.0.0RC3) | zip (1.21.0) | apcu (5.1.21) | brotli (0.13.1) | imagick (3.7.0) | mailparse (3.1.3) | ssh2 (1.3.1) | Zend OPcache (8.0.23) | Zend Engine (4.0.23) |
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: 985168 | Threads: 132 | Questions: 167389743 | Slow queries: 17 | Opens: 4472123 | Flush tables: 1 | Open tables: 800 | Queries per second avg: 169.909 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party:: WF_AGGREGATOR_AUDIO_TITLE (2.9.30) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.9.30) ? | WF_AGGREGATOR_VIDEO_TITLE (2.9.30) ? | WF_AGGREGATOR_VIMEO_TITLE (2.9.30) ? | WF_AGGREGATOR_[youtube]_TITLE (2.9.30) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.9.30) ? | WF_LINKS_JOOMLALINKS_TITLE (2.9.30) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.9.30) ? | WF_LINK_SEARCH_TITLE (2.9.30) ? | WF_ANCHOR_TITLE (2.9.30) ? | WF_ARTICLE_TITLE (2.9.30) ? | WF_ATTRIBUTES_TITLE (2.9.11) ? | WF_AUTOSAVE_TITLE (2.9.30) ? | WF_BROWSER_TITLE (2.9.30) ? | WF_CHARMAP_TITLE (2.9.30) ? | WF_CLEANUP_TITLE (2.9.30) ? | WF_CLIPBOARD_TITLE (2.9.30) ? | WF_CONTEXTMENU_TITLE (2.9.30) ? | WF_DIRECTIONALITY_TITLE (2.9.30) ? | WF_EMOTIONS_TITLE (2.9.30) ? | WF_FONTCOLOR_TITLE (2.9.30) ? | WF_FONTSELECT_TITLE (2.9.30) ? | WF_FONTSIZESELECT_TITLE (2.9.30) ? | WF_FORMATSELECT_TITLE (2.9.30) ? | WF_FULLSCREEN_TITLE (2.9.30) ? | WF_HELP_TITLE (2.9.30) ? | WF_HR_TITLE (2.9.30) ? | WF_IMGMANAGER_TITLE (2.9.30) ? | WF_KITCHENSINK_TITLE (2.9.30) ? | WF_LAYER_TITLE (2.8.2) ? | WF_LINK_TITLE (2.9.30) ? | WF_LISTS_TITLE (2.9.30) ? | WF_MEDIA_TITLE (2.9.30) ? | WF_NONBREAKING_TITLE (2.9.30) ? | JCE - Noneditable (1.0.0) ? | WF_PREVIEW_TITLE (2.9.30) ? | WF_PRINT_TITLE (2.9.30) ? | WF_REFERENCE_TITLE (2.9.11) ? | WF_SEARCHREPLACE_TITLE (2.9.30) ? | WF_SOURCE_TITLE (2.9.30) ? | WF_SPELLCHECKER_TITLE (2.9.30) ? | WF_STYLE_TITLE (2.9.30) ? | WF_STYLESELECT_TITLE (2.9.30) ? | WF_TABLE_TITLE (2.9.30) ? | WF_TEXTCASE_TITLE (2.9.30) ? | WF_VISUALBLOCKS_TITLE (2.9.30) ? | WF_VISUALCHARS_TITLE (2.9.30) ? | WF_WORDCOUNT_TITLE (2.9.30) ? | WF_XHTMLXTRAS_TITLE (2.9.30) ? |

Components :: Admin ::
Core :: com_wrapper (4.0.0) 1 | com_workflow (4.0.0) 1 | com_scheduler (4.1.0) 1 | com_mails (4.0.0) 1 | 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_installer (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_languages (4.0.0) 1 | com_login (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_tags (4.0.0) 1 | com_templates (4.0.0) 1 | com_users (4.0.0) 1 | com_weblinks (4.0.1) 1 |
3rd Party:: com_akeebabackup (9.3.0) 1 | COM_OSGALLERY (6.1.20 Light) 1 | com_djimageslider (4.4) 1 | COM_JCE (2.9.30) 1 | com_slideshowck (2.3.13) 1 | Slideshow CK (2.3.13) 1 | Widgetkit (1.3.2) ? |

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_weblinks (4.0.1) 1 | mod_whosonline (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party:: OS Gallery Search Pro (6.1.3 Light) 1 | mod_jdsimplecontactform (1.9) 1 | DJ-ImageSlider (4.4) 1 | Responsive Photo Gallery (2.9.4) 1 | Slideshow CK (2.3.13) 1 | mod_visitorcounter (4.0.2.0-PRO) 1 | Widgetkit Twitter (1.0.0) 1 |

Modules :: Admin ::
Core :: mod_user (4.0.0) 1 | mod_privacy_status (4.0.0) 1 | mod_post_installation_messages (4.0.0) 1 | mod_messages (4.0.0) 1 | mod_loginsupport (4.0.0) 1 | mod_frontend (4.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.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_menu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_privacy_dashboard (3.9.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_version (3.0.0) 1 |
3rd Party:: Import Content (1.0) 1 | MOD_VISITORCOUNTER_BACKEND_INFO (3-1) 1 |

Libraries ::
Core ::
3rd Party:: file_fof30 (3.6.2) ? | file_fof40 (4.1.0) ? |

Plugins ::
Core :: plg_workflow_publishing (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_messages (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_installer (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_task_site_status (4.1) 1 | plg_task_requests (4.1) 1 | plg_task_demo_tasks (4.1) 1 | plg_task_check_files (4.1) 1 | plg_media-action_rotate (4.0.0) 1 | plg_media-action_resize (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_api-authentication_token (4.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_actionlog_joomla (3.9.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | 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) 0 | plg_content_geshi (3.0.0) 0 | 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) 1 | 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_editors-xtd_weblink (4.0.1) 0 | plg_extension_namespacemap (4.0.0) 1 | plg_extension_finder (4.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_fields_subform (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_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_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_finder_weblinks (4.0.1) 1 | plg_installer_override (4.0.0) 1 | plg_installer_folderinstaller (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_webinstaller (4.0.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_overridecheck (4.0.0) 1 | plg_quickicon_downloadkey (4.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_quickicon_privacycheck (3.9.0) 1 | plg_sampledata_multilang (4.0.0) 1 | plg_search_weblinks (4.0.1) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_task_notification (4.1) 1 | plg_system_skipto (4.0.0) 1 | plg_system_schedulerunner (4.1) 1 | plg_system_jooa11y (4.2.0) 1 | plg_system_httpheaders (4.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_highlight (3.0.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_logrotation (3.9.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_redirect (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_weblinks (4.0.1) 0 | plg_system_shortcut (4.2.0) 1 | plg_user_token (3.9.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_multifactorauth_email (4.2.0) 0 | plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_yubikey (3.2.0) 0 | plg_multifactorauth_webauthn (4.2.0) 0 | plg_multifactorauth_totp (3.2.0) 0 |
3rd Party:: PLG_TASK_AKEEBABACKUP (9.3.0) 1 | PLG_ACTIONLOG_AKEEBABACKUP (9.3.0) 0 | PLG_CONTENT_TTMENUSTYLE (1.0.0) 1 | plg_content_jce (2.9.30) 1 | plg_editors_codemirror (5.65.6) 1 | plg_editors_jce (2.9.30) 1 | plg_editors_tinymce (5.10.5) 1 | plg_extension_jce (2.9.30) 1 | plg_fields_mediajce (2.9.30) 1 | KRPU - Kubik-Rubik Pro Updater (4.0.0.1) 1 | plg_installer_jce (2.9.30) 1 | PLG_JMONITORING_AKEEBABACKUP_TITLE (1.0) 1 | plg_quickicon_jce (2.9.30) 1 | PLG_QUICKICON_AKEEBABACKUP (9.3.0) 1 | PLG_SYSTEM_BACKUPONUPDATE (9.3.0) 1 | OS Gallery System (6.1.0) 1 | plg_system_visitorcounter (4.0.2.0-PRO) 1 | System - Advanced Google Analytics (1.7.3) 0 | PLG_SYS_HEADTAG (2.5) 0 | plg_system_jce (2.9.30) 1 | plg_system_jsntplframework (1.1.0) 0 | System - Google Analytics (5.0.1) 0 | PLG_CONSOLE_AKEEBABACKUP (9.3.0) 0 |
Templates Discovered :: wrote:Templates :: Site :: neudjksmall (1.0) 1 | mod_search (1.7.0) ? | neudjk2 (1.0) 1 | mod_search (1.7.0) ? | neudjk (1.0) 1 | mod_search (1.7.0) ? | cassiopeia (1.0) 1 | meembo-blue (1.5) 1 | phoca_tre (1.0.0) 1 |
Templates :: Admin :: atum (1.0) 1 |

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

Re: Joomla 4.2.x crashes in frontend

Post by toivo » Mon Sep 26, 2022 9:05 pm

Did you try the suggested remedies?

ManfredB wrote:
Mon Sep 26, 2022 4:47 pm
Allow url fopen: No
The PHP configuration directive allow_url_fopen needs to have its default value for Joomla to work correctly. This will be shown as 1 in the FPA results. Ask your host to change the setting to 1.

Ref. https://www.php.net/manual/en/filesyste ... -url-fopen
Toivo Talikka, Global Moderator

ManfredB
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Sep 25, 2022 7:52 pm

Re: Joomla 4.2.x crashes in frontend

Post by ManfredB » Wed Sep 28, 2022 4:43 pm

From security reasons I am not allowed to change the Allow url fopen to 1.

**********************
But I found the following, which I do not understand:

By using PHP version 7.4 the test domain (= www.baumgaertner.xyz) works with Joomla 4.2.3!!
But after changing to PHP version 8.0 or 8.1 it crashes with the following screen:

Fehler: 0

Die Seite kann nicht angezeigt werden, weil:

ein veraltetes Lesezeichen aufgerufen wurde.
über eine Suchmaschine ein veralteter Index dieser Website aufgerufen wurde.
eine falsche Adresse aufgerufen wurde.
keine Zugriffsrechte für diese Seite vorhanden sind.
Die angefragte Quelle wurde nicht gefunden.
Während der Anfrage ist ein Fehler aufgetreten.

Bitte eine der folgenden Seiten ausprobieren:

Startseite
Seite durchsuchen

Bei Problemen ist der Administrator dieser Website zuständig..

count(): Argument #1 ($value) must be of type Countable|array, null given

Call stack
# Function Location
1 () JROOT/templates/neudjk/html/mod_login/default.php:42
2 require() JROOT/modules/mod_login/mod_login.php:34
3 include() JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:52
4 Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/ModuleDispatcher.php:55
5 Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() JROOT/libraries/src/Helper/ModuleHelper.php:281
6 Joomla\CMS\Helper\ModuleHelper::renderRawModule() JROOT/libraries/src/Helper/ModuleHelper.php:161
7 Joomla\CMS\Helper\ModuleHelper::renderModule() JROOT/libraries/src/Document/Renderer/Html/ModuleRenderer.php:99
8 Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render() JROOT/libraries/src/Document/Renderer/Html/ModulesRenderer.php:50
9 Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render() JROOT/libraries/src/Document/HtmlDocument.php:565
10 Joomla\CMS\Document\HtmlDocument->getBuffer() JROOT/libraries/src/Document/HtmlDocument.php:848
11 Joomla\CMS\Document\HtmlDocument->_renderTemplate() JROOT/libraries/src/Document/HtmlDocument.php:633
12 Joomla\CMS\Document\HtmlDocument->render() JROOT/libraries/src/Application/CMSApplication.php:1017
13 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:714
14 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:299
15 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
16 require_once() JROOT/index.php:32

************************

And when I change back to PHP version 7.4 it works again!??
But with the following warnings:
Notice: Undefined variable: twofactormethods in /kunden/mbaumgaertner.de/DJKTest/templates/neudjk/html/mod_login/default.php on line 42

Warning: count(): Parameter must be an array or an object that implements Countable in /kunden/mbaumgaertner.de/DJKTest/templates/neudjk/html/mod_login/default.php on line 42

User avatar
Kubik-Rubik
Joomla! Explorer
Joomla! Explorer
Posts: 250
Joined: Wed Aug 25, 2010 1:59 pm
Location: Karlsruhe - Germany
Contact:

Re: Joomla 4.2.x crashes in frontend

Post by Kubik-Rubik » Wed Sep 28, 2022 7:39 pm

Hi ManfredB!

Rename or remove the folder /templates/neudjk/html/mod_login and test it again.

You have outdated overrides for the login module, which are incompatible with PHP >= 8.0.
Cheers
Viktor

Kubik-Rubik Joomla! Extensions https://kubik-rubik.de
Former member of Joomla! Production Leadership Team, Security Strike Team and Bug Squash Team

ManfredB
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Sep 25, 2022 7:52 pm

Re: Joomla 4.2.x crashes in frontend

Post by ManfredB » Wed Sep 28, 2022 7:41 pm

Latest info:

I assume now that my login module was no longer compatible with the new Joomla versions. Testing a new JT Login module for Joomla 4 let all the remaining problems disappear :laugh: :)

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

Re: Joomla 4.2.x crashes in frontend

Post by sozzled » Wed Sep 28, 2022 8:04 pm

ManfredB wrote:
Wed Sep 28, 2022 4:43 pm
From security reasons I am not allowed to change the Allow url fopen to 1.
Fair enough. You will not be able to update your J! website from one version of J! to another. It's as simple as that. 8)

Anyone can install J! if allow_url_fopen() is disabled. You will not be able to use the Joomla! Update component to update your website after installation if allow_url_fopen() is disabled. If you don't use the Joomla! Update component to update your website you are on your own, sorry. We can't help you.

If your webhosting provider does not allow you to use allow_url_fopen() then you have two choices:

a) do all your maintenance (site updates) on a different platform and transfer your development site(s) to your current webhost; or
b) move your operations (change your webhosting provider) to a different webhost that does allow the use of allow_url_fopen().

Your choice.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

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

Re: Joomla 4.2.x crashes in frontend

Post by toivo » Wed Sep 28, 2022 9:55 pm

The following observation may be off topic but still interesting.

toivo wrote:
Mon Sep 26, 2022 9:05 pm
The PHP configuration directive allow_url_fopen needs to have its default value for Joomla to work correctly.
sozzled wrote:
Wed Sep 28, 2022 8:04 pm
You will not be able to update your J! website from one version of J! to another. It's as simple as that. 8)
The Security Checklist/Hosting and Server Setup instructs us to use allow_url_fopen but come changes must have been made in the Joomla core after April 2020 when this document was last updated because all Joomla updates seem to work without allow_url_fopen.

First changed the directive allow_url_fopen in php.ini to Off, restarted Apache and confirmed from System - System Informaion - PHP Information that allow_url_fopen was indeed off, both Local and Remote. Then ran a number of tests in Wampserver 3.2.9 and PHP 8.1.9: updated Joomla 3.10.11 to 4.2.3 and Joomla 4.2.2 to 4.2.3 using live update, reinstalled core files in Joomla 4.2.3, updated Joomla 4.2.3 to 4.2.4-dev using Upload and Update. Everything worked!
Toivo Talikka, Global Moderator

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

Re: Joomla 4.2.x crashes in frontend

Post by sozzled » Wed Sep 28, 2022 10:01 pm

toivo wrote:
Wed Sep 28, 2022 9:55 pm
... but [some] changes must have been made in the Joomla core after April 2020 when this document was last updated because all Joomla updates seem to work without allow_url_fopen.
Hmmm ...

If that's the case then we'd better rewrite the FPA and we'd better re-educate ourselves about the Joomla! Update component and not suggest to people who ask for help to enable the option, eh? Perhaps, Toivo, someone should seek the advice from the J! development team, create an issue on the Issue Tracker, and see what their view is? I don't know. :(
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

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

Re: Joomla 4.2.x crashes in frontend

Post by Per Yngve Berg » Wed Sep 28, 2022 10:20 pm

There are two functions:

allow_url_fopen()
allow_url_finclude()

allow_url_finclude() is the dangerous one and must be disabled. Your webhosting provider have those mixed up.

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

Re: Joomla 4.2.x crashes in frontend

Post by AMurray » Wed Sep 28, 2022 10:20 pm

I note the FPA shows you're on the 4.2.3 Release Candidate 1....a contributing factor to this?

Can the OP roll back the site, and try the stable 4.2.3 released Tuesday this week?

Just an observation....can't say if 4.2.3 stable will fix anything in this instance.
Regards - A Murray

ManfredB
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Sep 25, 2022 7:52 pm

Re: Joomla 4.2.x crashes in frontend

Post by ManfredB » Thu Sep 29, 2022 8:18 pm

I like to thank all contributors for their help in solving my problem!


Post Reply

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