Call to a member function format() on bool - in en-AU language pack Topic is solved

General questions regarding the use of languages in Joomla! 4.x.

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.
User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Call to a member function format() on bool - in en-AU language pack

Post by trevor4370 » Mon Nov 01, 2021 10:49 pm

Not sure if this is the place for this. But have installed Jooml 4.04 on a Hostpapa server with PHP 7.4.

When I go to update an article I get the following error: An error has occurred. 0 Call to a member function format() on bool

Debug System report

Image

Thanks

Trevor
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Fri Nov 26, 2021 3:09 am, edited 1 time in total.
Reason: mod note: moved from 4.x General Questions, retitled

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

Re: Call to a member function format() on bool

Post by toivo » Tue Nov 02, 2021 12:14 am

Unable to reproduce the error by creating and updating an article in an out-of-the-box Joomla 4.0.4.

Did you define one or more field groups and fields for articles? Anything else out of the ordinary?

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

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Wed Nov 24, 2021 3:58 am

I reinstalled Joomla 4.04 on my computer (XAMPP for Windows 7.4.25) and had the same error. I was just creating standard articles, nothing special. I did have a few standard extensions I use installed, so I did a fresh install with not extensions and got the same error. So 3 installs, 1 x paid host and 2 on my localhost, 1 x no extensions installed and 1 x a few extensions installed. all the same error .

0 Call to a member function format() on bool

Just wondering if it is the php version?
Forum Post Assistant (v1.6.3) : 24-Nov-2021 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.0.4-Stable (Furaha) 24-October-2021
Joomla! Configured :: Yes | Read-Only (444) |
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: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: default | Site Debug: true | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.0.4: Yes | Database Supports J! 4.0.4: Yes | Database Credentials Present: Password missing |

Host Configuration :: OS: Windows NT | OS Version: 10.0 | Technology: AMD64 | Web Server: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.4.25 | Encoding: gzip, deflate | System TMP Writable: Yes | Free Disk Space : 1184.94 GiB |

PHP Configuration :: Version: 7.4.25 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 22527 | Log Errors To: E:\xampp\php\logs\php_error_log | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 40M | Max. POST Size: 40M | Max. Input Time: 60 | Max. Execution Time: 120 | Memory Limit: 512M

Database Configuration :: Version: 5.5.5-10.4.21-MariaDB (Client:mysqlnd 7.4.25) | Database Size: 4.97 MiB | #of Tables with config prefix: 74 | #of other Tables: 0 | User Privileges : GRANT PROXY
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.25) | bcmath (7.4.25) | calendar (7.4.25) | ctype (7.4.25) | date (7.4.25) | filter (7.4.25) | hash (7.4.25) | iconv (7.4.25) | json (7.4.25) | SPL (7.4.25) | pcre (7.4.25) | readline (7.4.25) | Reflection (7.4.25) | session (7.4.25) | standard (7.4.25) | mysqlnd (mysqlnd 7.4.25) | tokenizer (7.4.25) | zip (1.15.6) | zlib (7.4.25) | libxml (7.4.25) | dom (20031129) | PDO (7.4.25) | bz2 (7.4.25) | SimpleXML (7.4.25) | xml (7.4.25) | xmlreader (7.4.25) | xmlwriter (7.4.25) | apache2handler (7.4.25) | openssl (7.4.25) | curl (7.4.25) | fileinfo (7.4.25) | gd (7.4.25) | gettext (7.4.25) | mbstring (7.4.25) | exif (7.4.25) | mysqli (7.4.25) | pdo_mysql (7.4.25) | pdo_sqlite (7.4.25) | Phar (7.4.25) | ftp (7.4.25) | Zend Engine (3.4.0) |
Potential Missing Extensions ::

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

Apache Modules :: core | mod_win32 | mpm_winnt | http_core | mod_so | mod_access_compat | mod_actions | mod_alias | mod_allowmethods | mod_asis | mod_auth_basic | mod_authn_core | mod_authn_file | mod_authz_core | mod_authz_groupfile | mod_authz_host | mod_authz_user | mod_autoindex | mod_cgi | mod_dav_lock | mod_dir | mod_env | mod_headers | mod_include | mod_info | mod_isapi | mod_log_config | mod_cache_disk | mod_mime | mod_negotiation | mod_proxy | mod_proxy_ajp | mod_rewrite | mod_setenvif | mod_socache_shmcb | mod_ssl | mod_status | mod_version | mod_php7 | Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.4.25 |
Potential Missing Modules :: mod_expires | mod_deflate | mod_security | mod_evasive | mod_dosevasive | mod_qos | mod_userdir |
Folder Permissions :: wrote:Core Folders :: images/ (777) | components/ (777) | modules/ (777) | plugins/ (777) | language/ (777) | templates/ (777) | cache/ (777) | logs/ (---) | tmp/ (777) | administrator/components/ (777) | administrator/modules/ (777) | administrator/language/ (777) | administrator/templates/ (777) | administrator/logs/ (777) |

Elevated Permissions (First 10) :: administrator/ (777) | administrator/cache/ (777) | administrator/cache/plg_system_debug_administrator/ (777) | administrator/cache/plg_system_debug_site/ (777) | administrator/components/ (777) | administrator/components/com_actionlogs/ (777) | administrator/components/com_actionlogs/forms/ (777) | administrator/components/com_actionlogs/services/ (777) | administrator/components/com_actionlogs/src/ (777) | administrator/components/com_actionlogs/src/Controller/ (777) |
Database Information :: wrote:Database statistics :: Uptime: 14555 | Threads: 6 | Questions: 129544 | Slow queries: 0 | Opens: 790 | Flush tables: 1 | Open tables: 515 | Queries per second avg: 8.900 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party:: WF_AGGREGATOR_AUDIO_TITLE (2.9.17) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.9.17) ? | WF_AGGREGATOR_VIDEO_TITLE (2.9.17) ? | WF_AGGREGATOR_VIMEO_TITLE (2.9.17) ? | WF_AGGREGATOR_[youtube]_TITLE (2.9.17) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.9.17) ? | WF_LINKS_JOOMLALINKS_TITLE (2.9.17) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.9.17) ? | WF_LINK_SEARCH_TITLE (2.9.17) ? | WF_ANCHOR_TITLE (2.9.17) ? | WF_ARTICLE_TITLE (2.9.17) ? | WF_ATTRIBUTES_TITLE (2.9.10) ? | WF_AUTOSAVE_TITLE (2.9.17) ? | WF_BROWSER_TITLE (2.9.17) ? | WF_CHARMAP_TITLE (2.9.17) ? | WF_CLEANUP_TITLE (2.9.17) ? | WF_CLIPBOARD_TITLE (2.9.17) ? | WF_CONTEXTMENU_TITLE (2.9.17) ? | WF_DIRECTIONALITY_TITLE (2.9.17) ? | WF_EMOTIONS_TITLE (2.9.17) ? | WF_FONTCOLOR_TITLE (2.9.17) ? | WF_FONTSELECT_TITLE (2.9.17) ? | WF_FONTSIZESELECT_TITLE (2.9.17) ? | WF_FORMATSELECT_TITLE (2.9.17) ? | WF_FULLSCREEN_TITLE (2.9.17) ? | WF_HELP_TITLE (2.9.17) ? | WF_HR_TITLE (2.9.17) ? | WF_IMGMANAGER_TITLE (2.9.17) ? | WF_KITCHENSINK_TITLE (2.9.17) ? | WF_LINK_TITLE (2.9.17) ? | WF_LISTS_TITLE (2.9.17) ? | WF_MEDIA_TITLE (2.9.17) ? | WF_NONBREAKING_TITLE (2.9.17) ? | JCE - Noneditable (1.0.0) ? | WF_PREVIEW_TITLE (2.9.17) ? | WF_PRINT_TITLE (2.9.17) ? | WF_REFERENCE_TITLE (2.9.10) ? | WF_SEARCHREPLACE_TITLE (2.9.17) ? | WF_SOURCE_TITLE (2.9.17) ? | WF_SPELLCHECKER_TITLE (2.9.17) ? | WF_STYLE_TITLE (2.9.17) ? | WF_STYLESELECT_TITLE (2.9.17) ? | WF_TABLE_TITLE (2.9.17) ? | WF_TEXTCASE_TITLE (2.9.17) ? | WF_VISUALBLOCKS_TITLE (2.9.17) ? | WF_VISUALCHARS_TITLE (2.9.17) ? | WF_WORDCOUNT_TITLE (2.9.17) ? | WF_XHTMLXTRAS_TITLE (2.9.17) ? |

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_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_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:: com_akeebabackup (9.0.9) 1 | com_gantry5 (5.5.5) 1 | COM_JCE (2.9.17) 1 |

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_gantry5_particle (5.5.5) 1 |

Modules :: Admin ::
Core :: mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_frontend (4.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_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::

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_taggable (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_captcha_recaptcha (3.4.0) 0 | 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) 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_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_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_overridecheck (4.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_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_httpheaders (4.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) 0 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_skipto (4.0.0) 1 | plg_system_stats (3.5.0) 0 | plg_system_updatenotification (3.5.0) 1 | plg_system_webauthn (4.0.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | 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_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:: Content - Back button (1.2.5) 1 | plg_content_jce (2.9.17) 1 | plg_editors_codemirror (5.63.1) 1 | plg_editors_jce (2.9.17) 1 | plg_editors_tinymce (5.9.2) 1 | Editor Button - Back Button (1.1.4) 1 | plg_extension_jce (2.9.17) 1 | plg_fields_mediajce (2.9.17) 1 | plg_gantry5_preset (5.5.5) 0 | plg_installer_jce (2.9.17) 1 | PLG_QUICKICON_AKEEBABACKUP (9.0.9) 1 | plg_quickicon_gantry5 (5.5.5) 1 | plg_quickicon_jce (2.9.17) 1 | plg_system_gantry5 (5.5.5) 1 | plg_system_jce (2.9.17) 1 | plg_system_jcemediabox (2.1.2) 0 |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 | g5_helium (5.5.5) 1 |
Templates :: Admin :: atum (1.0) 1 |
Last edited by toivo on Wed Nov 24, 2021 5:40 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

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

Re: Call to a member function format() on bool

Post by toivo » Wed Nov 24, 2021 7:10 am

The error has something to do with date fields from the article form and their filtering, based on date formats, if that gives you any clues.

Change the level of error reporting in the Global Configuration to 'Maximum', which setting will hopefully generate some earlier PHP warnings and notices into the PHP error log before the actual error occurs.
Toivo Talikka, Global Moderator

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool

Post by ceford » Wed Nov 24, 2021 10:05 am

Have a look at the Publishing tab in the edit form and see if the dates make sense. We can see the error occurs on line 360 of the CalendarField so you could step through with a debugger and find out what is happening on that line.

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Wed Nov 24, 2021 10:00 pm

I had a look and nothing seems out of place. Simply open an existing article and then try and save it and it goes directly to the error (which is attached to my first post). This is the only error I get, even on max.

The article does not save and because of this the "Modified Date" is not updated. I have just this morning (20 minutes ago) installed Jooma 4.0.4 on a server as a test. Standard install, no extensions or changes to anything like "Website Time Zone". I get the same error. More than happy to give you access to this test site.

Post forum Post for this setup and server
Forum Post Assistant (v1.6.3) : 24-Nov-2021 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.0.4-Stable (Furaha) 24-October-2021
Joomla! Configured :: Yes | Read-Only (444) |
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: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: maximum | Site Debug: true | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.0.4: Yes | Database Supports J! 4.0.4: Yes | Database Credentials Present: Yes |

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

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

Database Configuration :: Version: 5.7.36 (Client:5.7.36) | Database Size: 4.03 MiB | #of Tables with config prefix: 69 | #of other Tables: 0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.25) | date (7.4.25) | libxml (7.4.25) | openssl (7.4.25) | pcre (7.4.25) | sqlite3 (7.4.25) | zlib (7.4.25) | bz2 (7.4.25) | calendar (7.4.25) | ctype (7.4.25) | curl (7.4.25) | hash (7.4.25) | filter (7.4.25) | ftp (7.4.25) | gettext (7.4.25) | gmp (7.4.25) | SPL (7.4.25) | iconv (7.4.25) | pcntl (7.4.25) | readline (7.4.25) | Reflection (7.4.25) | session (7.4.25) | standard (7.4.25) | shmop (7.4.25) | SimpleXML (7.4.25) | mbstring (7.4.25) | tokenizer (7.4.25) | xml (7.4.25) | litespeed () | i360 (1.0) | bcmath (7.4.25) | dom (20031129) | sockets (7.4.25) | eio (2.0.3) | enchant (7.4.25) | fileinfo (7.4.25) | gd (7.4.25) | imagick (3.5.1) | imap (7.4.25) | intl (7.4.25) | json (7.4.25) | exif (7.4.25) | mysqli (7.4.25) | mysqlnd (mysqlnd 7.4.25) | PDFlib (4.1.2) | PDO (7.4.25) | pdo_mysql (7.4.25) | pdo_sqlite (7.4.25) | Phar (7.4.25) | pspell (7.4.25) | soap (7.4.25) | sysvmsg (7.4.25) | sysvsem (7.4.25) | sysvshm (7.4.25) | xmlreader (7.4.25) | xmlrpc (7.4.25) | xmlwriter (7.4.25) | xsl (7.4.25) | yaml (2.0.3) | zip (1.15.6) | ionCube Loader (10.4.3) | Zend OPcache (7.4.25) | 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/ (---) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (755) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 81240 | Threads: 7 | Questions: 49162992 | Slow queries: 0 | Opens: 2829821 | Flush tables: 4 | Open tables: 1999 | Queries per second avg: 605.157 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

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

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

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

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_installer_folderinstaller (3.6.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_override (4.0.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_webinstaller (4.0.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_integer (3.7.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_captcha_recaptcha (3.4.0) 0 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_content_fields (3.7.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_vote (3.0.0) 0 | plg_content_finder (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_extension_finder (4.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_editors-xtd_fields (3.7.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_article (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_actionlogs (3.9.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_newsfeeds (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_fields (3.7.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_stats (3.5.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_log (3.0.0) 1 | plg_system_accessibility (4.0.0) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_sessiongc (3.8.6) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_httpheaders (4.0.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_skipto (4.0.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_actionlogs (3.9.0) 1 | plg_api-authentication_token (4.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_user_token (3.9.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_user_joomla (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_sampledata_multilang (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_workflow_publishing (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 |
3rd Party:: plg_editors_tinymce (5.9.2) 1 | plg_editors_codemirror (5.63.1) 1 |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Wed Nov 24, 2021 10:10 pm

Just tried different PHP versions and nothing. 7.3, 7.4 and 8. No difference.

I do get the following in Information Warnings on the dashboard on Joomla (Did not get this on my home server, and from what I read it doesn't do much unless you have problems installing extensions).

Warning The PHP temporary folder is not set.

This folder is the folder that PHP uses to store an uploaded file before Joomla can access this file. Whilst the folder not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool

Post by ceford » Wed Nov 24, 2021 11:05 pm

Clutching at straws: go to Global Configuration / Server and see what time zone you have set. Change it to UTC and see what happens. I just changed mine to Brisbane and it made no difference.

Are you using an IDE? Do you have a debugger? If not try this: open your article ready to save; then edit libraries/src/Form/Field/CalendarField and plant these two lines on line 357:

Factory::getApplication()->enqueueMessage($this->filterFormat . '/' . $value, 'warning');
return $value;

Save your article and you should see an orange system message (x3). What does it say?

After the test remove those planted lines.

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Thu Nov 25, 2021 6:56 am

Changing the time zones doesn't make any difference, I tried that one. I have Joomla 4 setup on 3 different servers. 2 x hosted accounts and one Xampp on my local computer. All the same errors.

Edited CalendarField.php and when saving the doc I get the following errors

Warning
Y-m-d H:i:s/24-11-2021 05:53:55

danger
Save failed with the following error: Incorrect datetime value: '24-11-2021 05:53:55' for column `aaic_new2`.`gprxq_content`.`created` at row 1
You do not have the required permissions to view the files attached to this post.

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Thu Nov 25, 2021 7:15 am

Just a stab in the dark I installed Joomla_4.1.0-dev-Development-Full_Package, and yes the same error. Is this just me???????

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool

Post by ceford » Thu Nov 25, 2021 8:45 am

trevor4370 wrote:
Thu Nov 25, 2021 7:15 am
Just a stab in the dark I installed Joomla_4.1.0-dev-Development-Full_Package, and yes the same error. Is this just me???????
It probably is just you but we need to understand why because it will come up again.

The test suggests a database problem but I do not know what. Just check that when you create a database you use utf8mb4_unicode_ci collation.

Note added later: actually probably not the database - we already know there is something wrong with the date passed to the filter function.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool

Post by ceford » Thu Nov 25, 2021 9:17 am

Open your __content table with phpMyAdmin and see what is actually in the 'modified' column.

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Thu Nov 25, 2021 8:58 pm

Capture3.JPG
Capture4.JPG
You do not have the required permissions to view the files attached to this post.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool

Post by ceford » Thu Nov 25, 2021 10:56 pm

In the article edit form have a look at the Publishing tab / Modified Date field. The previous test that you did suggests the first date was OK but there was something wrong with the second date, which is the modified date (for me, stepping through with the debugger). Everything else looks normal.

Then get ready to save, but first paste this into line 672 of administrator/components/com_content/src/ArticleModel.php:

var_dump($data);die;

Hit the Save button, then look down the data for the actual dates being passed. Mine says:
'modified' => string '2021-11-25 22:44:04' (length=19)

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool

Post by ceford » Thu Nov 25, 2021 11:22 pm

I can reproduce your original stack trace by manually changing $value by removing the time part of the date. So I think the problem has to be related to date handling. As the dates are being created by Joomla on first save I just don't see what can be wrong.

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Thu Nov 25, 2021 11:50 pm

I think I have worked it out. It had to be something with either the server setup or install process, seeing I got the same error on 3 different servers it had to be the install process. Going through it again I realised what I was doing different. I installed the "Australian" language pack and made it default. So this time I didn't install the language package and left it default UK. No more errors. So there seems to be a bug in the language pack. Just maybe, I will try it with other languages and see if I can replicate the error.

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool

Post by trevor4370 » Fri Nov 26, 2021 1:03 am

OK, I think I have worked it out now. Be great if someone else could replicate this error.

1. On install first page "Select Language" = "English (Australia)

2. Last page of install "Congratulations! Your Joomla site is ready." Click "Install Additional Languages" button

3. Select "English, Australia"

4. Next Page select select "English (en-AU) as default languages for both Administrator and Frontend.

This will give the errors mentioned above.

I found leaving the first page Select Language as default - English (United Kingdom). Then installed "English. Australia" at the end (Don't make it default language) I didn't get the errors. I then logged into administrator and made Australia default in language's and all was OK, do errors. Fixed the error problem. I hope this is a help to somebody. Note: I only tested it with the Australian language.

Thank you to those who have helped.

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

Re: Call to a member function format() on bool

Post by toivo » Fri Nov 26, 2021 3:06 am

trevor4370 wrote:
Thu Nov 25, 2021 11:50 pm
I installed the "Australian" language pack and made it default. So this time I didn't install the language package and left it default UK. No more errors. So there seems to be a bug in the language pack.
Confirmed.

Go to administrator/language/en-AU/joomla.ini and edit the line 829:

Code: Select all

DATE_FORMAT_CALENDAR_DATETIME="%d-%m-%Y %H:%M:%S"
Change this line back to what Joomla 3.10.3 has in line 6 of the file administrator/language/en-AU/en-AU.ini and the problem is gone:

Code: Select all

DATE_FORMAT_CALENDAR_DATETIME="%Y-%m-%d %H:%M:%S"
Toivo Talikka, Global Moderator

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool - in en-AU language pack

Post by trevor4370 » Fri Nov 26, 2021 4:04 am

Thank you Toivo

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Call to a member function format() on bool

Post by sozzled » Fri Nov 26, 2021 4:44 am

Disclaimer: I have not used the en-AU language pack for J! in over 10 years. While there are subtle differences with some words (and our pronunciation of English is very different) we spell most of our words the same way. For the most part, the en-AU language pack does not contain many improvements needed for the Australian locale. The main "benefit" is probably lies in how the opening HTML tag appears, that is,

Code: Select all

<html lang="en-au" dir="ltr">
as opposed to

Code: Select all

<html lang="en-gb" dir="ltr">
However, my "disclaimer" notwithstanding, the provision of a folder containing en-AU language files (needed, perhaps, with third-party extensions) is useful. Nonetheless, if a language constant string is missing, the fall-back is to use the en-GB language translation.

For testing purposes, I installed language pack for en-AU v4.0.4-2 on a J! 4.0.4 test site.

toivo wrote:
Fri Nov 26, 2021 3:06 am
Go to administrator/language/en-AU/joomla.ini ...
There is no file named ../administrator/language/en-AU/joomla.ini; there is a file named ../language/en-AU/joomla.ini. There is no line 829 in the file ..//language/en-AU/joomla.ini; the closest reference to the constant DATE_FORMAT_CALENDAR_DATETIME is at line 413.

I ran DiffMerge to compare the files ../language/en-AU/joomla.ini and ../language/en-GB/joomla.ini. I have attached the report after running that comparison.

I am unable to confirm at this time if the language constant causes the problem.

As @trevor4370 wrote:
trevor4370 wrote:
Fri Nov 26, 2021 1:03 am
I found leaving [that installing J! 4 using the default language] English (United Kingdom) [works]. Then installed "English, Australia" at the end (Don't make it default language) I didn't get the errors. I then logged into administrator and made Australia default in language's and all was OK, do errors. Fixed the error problem.
I agree. When I am creating a new J! website, I don't try to save a few seconds by installing some variant of English. I create all my J! websites using the default en-GB (or "international English") and, after creating a website, I install languages and other extensions as I may require them.

If this is a defect with the J! 4 installation process—I haven't tested it—then it should be reported at GitHub to the developers to investigate.

Thanks, Trevor, for the heads-up. 8)

UPDATED: (Omitted to attach the file comparison report)
You do not have the required permissions to view the files attached to this post.
Last edited by sozzled on Fri Nov 26, 2021 6:38 am, edited 2 times in total.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool - in en-AU language pack

Post by ceford » Fri Nov 26, 2021 4:46 am

Actually, the problem seems to be that the Date and the Filter need to match. This is from the German language pack:

Code: Select all

DATE_FORMAT_CALENDAR_DATE="%d.%m.%Y"
DATE_FORMAT_CALENDAR_DATETIME="%d.%m.%Y %H:%M:%S"
DATE_FORMAT_FILTER_DATE="d.m.Y"
DATE_FORMAT_FILTER_DATETIME="d.m.Y H:i:s"
So this is what Australian English ought to be (I think):

Code: Select all

DATE_FORMAT_CALENDAR_DATE="%Y-%m-%d"
DATE_FORMAT_CALENDAR_DATETIME="%d-%m-%Y %H:%M:%S"
DATE_FORMAT_FILTER_DATE="Y-m-d"
DATE_FORMAT_FILTER_DATETIME="d-[URL banned] H:i:s"
And I guess date and datetime ought to be made consistent. That url banned thing is hiding m(onth)-Y(ear)

User avatar
trevor4370
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 143
Joined: Fri Oct 14, 2005 5:26 am
Location: Bundaberg, Qld, Australia

Re: Call to a member function format() on bool - in en-AU language pack

Post by trevor4370 » Fri Nov 26, 2021 4:48 am

All good - thanks for the info

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

Re: Call to a member function format() on bool - in en-AU language pack

Post by toivo » Fri Nov 26, 2021 6:33 am

sozzled wrote:
Fri Nov 26, 2021 4:44 am
There is no file named ../administrator/language/en-AU/joomla.ini; there is a file named ..//language/en-AU/joomla.ini.
Yes, there is. If you have not installed the en-AU language pack, download and expand Joomla! 4 - English (Australia).

sozzled wrote:
Fri Nov 26, 2021 4:44 am
There is no line 829 in the file ..//language/en-AU/joomla.ini
No, because that is a separate file for the front end. The en-AU date and filter definitions in that file look similar to those for the back end and therefore the same issue is likely to occur when articles are edited at the front end.
Toivo Talikka, Global Moderator

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Call to a member function format() on bool - in en-AU language pack

Post by sozzled » Fri Nov 26, 2021 6:42 am

toivo wrote:
Fri Nov 26, 2021 6:33 am
sozzled wrote:
Fri Nov 26, 2021 4:44 am
There is no file named ../administrator/language/en-AU/joomla.ini; there is a file named ../language/en-AU/joomla.ini.
Yes, there is. If you have not installed the en-AU language pack, download and expand Joomla! 4 - English (Australia).
Sorry, no there is not a file name joomla.ini located in the ../administrator/language/en-AU folder. I don't know what you're talking about. Yes, I downloaded the language pack, looked at the contents and there is no such file located in that place. The only file name joomla.ini is in a different folder.

UPDATED and corrected in a later post in this thread. :-[
Last edited by sozzled on Fri Nov 26, 2021 8:32 am, edited 1 time in total.

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

Re: Call to a member function format() on bool - in en-AU language pack

Post by toivo » Fri Nov 26, 2021 7:58 am

sozzled wrote:
Fri Nov 26, 2021 6:42 am
Sorry, no there is not a file name joomla.ini located in the ../administrator/language/en-AU folder.
Each language pack, including the en-AU pack, has to have the joomla.ini file for the back end.

sozzled wrote:
Fri Nov 26, 2021 6:42 am
The only file name joomla.ini is in a different folder.
The latest en-AU language pack has the file en-AU_joomla_lang_full_4.0.4v2/en-AU/language/en-AU/joomla.ini but it also contains the back end file en-AU_joomla_lang_full_4.0.4v2/en-AU/administrator/language/en-AU/joomla.ini. During the installation of the language pack the file joomla.ini ends up in the folder administrator/language/en-AU.
Toivo Talikka, Global Moderator

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Call to a member function format() on bool - in en-AU language pack

Post by sozzled » Fri Nov 26, 2021 8:14 am

My apologies. There is a file called ../administrator/language/en-AU/joomla.ini and line 829 exists

Code: Select all

DATE_FORMAT_CALENDAR_DATETIME="%d-%m-%Y %H:%M:%S"
1) I'm sorry for doubting @toivo. 8)
2) I don't understand how the en-AU language pack could interfere with creating a J! 4.x website. If this causes website catastrophes then the matter should be reported to the CMS development team; use GitHub for that purpose.
3) The language string does not generate this error if the en-AU language pack is installed after creating a J! 4.x website.
4) The problem mentioned by @trevor4370 is likely to affect less than five or six people in the entire world; although I would be guessing, less than two dozen people in the entire world have a production website using J! 4.0.4 and are also using the en-AU language pack. As I've written before, the differences between en-AU and en-GB are so minor there's really not much of a need for it.
5) I don't use the en-AU language pack myself; I've installed it and it works, I think, but I haven't exhaustively tested it. I haven't reported the OP's problem on GitHub, Trevor can do that. ;)
6) en-AU is a curiosity that most people couldn't raise any perspiration over. :laugh:

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2626
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Call to a member function format() on bool - in en-AU language pack

Post by ceford » Fri Nov 26, 2021 10:28 am

sozzled wrote:
Fri Nov 26, 2021 8:14 am
My apologies. ...
Not very helpful!

The Australian language pack does not prevent creation of a web site. It does not prevent first save of an article. It does prevent a subsequent save.

The language string does generate this error after installing en-AU after web site creation.

If the problem only affected one person it could be bad publicity for Joomla. That person might be a VIP.

We should not really expect Trevor to make a Github bug report. It probably needs someone with a bit more know-how to describe the problem. I have thought about - still thinking.

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

Re: Call to a member function format() on bool - in en-AU language pack

Post by toivo » Fri Nov 26, 2021 11:20 am

Let's hope someone from the translation team who are familiar with the language packs in general will read this topic.
Toivo Talikka, Global Moderator

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12781
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Call to a member function format() on bool - in en-AU language pack

Post by brian » Fri Nov 26, 2021 11:34 am

I can confirm the bug!!

Not the first time there have been bugs in this language pack :(
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

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

Re: Call to a member function format() on bool - in en-AU language pack

Post by toivo » Mon Nov 29, 2021 5:15 am

Bug report submitted https://issues.joomla.org/tracker/joomla-cms/36150. Hopefully in time for a fix in 4.0.5 next week.
Toivo Talikka, Global Moderator


Locked

Return to “Language - Joomla! 4.x”