JString error in language/overrides/en-GB.localise.php:93 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.
Post Reply
AntonisM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Mar 31, 2022 10:28 am

JString error in language/overrides/en-GB.localise.php:93

Post by AntonisM » Thu Mar 31, 2022 10:45 am

Just upgraded to joomla 4 from joomla 3.10
All was seeming to go fine but, when i tried to save an article, i got the following error:0 Class 'JString' not found
It seems that something goes on with language pack, but i have no the knowledge to find out what exactly.
Maximizing errors shows thw following:


Call stack
# Function Location
1 () JROOT/administrator/language/overrides/en-GB.localise.php:93
2 En_GBLocalise::transliterate() JROOT/libraries/src/Language/Language.php:404
3 Joomla\CMS\Language\Language->transliterate() JROOT/libraries/src/Filter/OutputFilter.php:88
4 Joomla\CMS\Filter\OutputFilter::stringURLSafe() JROOT/administrator/components/com_content/src/Model/ArticleModel.php:833
5 Joomla\Component\Content\Administrator\Model\ArticleModel->save() JROOT/libraries/src/MVC/Controller/FormController.php:708
6 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:735
7 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
8 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
10 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
11 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
13 require_once() JROOT/administrator/index.php:32


i have installed thw latest greek language pack 4.1.2.1 and i have cleared all thw overrides i was using in joomla 3.10

Any help would be aprecciated
Last edited by toivo on Thu Mar 31, 2022 11:27 am, edited 1 time in total.
Reason: mod note: moved from 4.x General Questions, retitled

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24215
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Saving an article Jstring error

Post by pe7er » Thu Mar 31, 2022 11:02 am

Welcome to Joomla forum!

The "error:0 Class 'JString' not found" indicates that there is outdated code in your website.
And because it appears when you try to save an article, I suspect that you have a non-core Content Plugin (or System Plugin) that is not compatible with Joomla 4.

Could you use Forum Post Assistant to give more information about your setup/configuration?
https://forumpostassistant.github.io/docs/
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

AntonisM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Mar 31, 2022 10:28 am

Re: Saving an article Jstring error

Post by AntonisM » Thu Mar 31, 2022 11:17 am

thanks for suggesting fpa
that is the report (seems i have to disable some plugins!)
Forum Post Assistant (v1.6.5) : 31-Mar-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.1.2-Stable (Kuamini) 30-March-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: 20 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 720 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: maximum | Site Debug: true | Language Debug: true | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.1.2: Yes | Database Supports J! 4.1.2: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.10.0-957.5.1.el7.x86_64 | Technology: x86_64 | Web Server: nginx/1.20.2 | Encoding: gzip, deflate, br | System TMP Writable: Yes | Free Disk Space : 159.01 GiB |

PHP Configuration :: Version: 7.4.28 | PHP API: fpm-fcgi | Session Path Writable: No | Display Errors: 0 | Error Reporting: 22519 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: /var/www/vhosts/sepolia.net/:/tmp/ | Uploads: 1 | Max. Upload Size: 256M | Max. POST Size: 256M | Max. Input Time: 240 | Max. Execution Time: 240 | Memory Limit: 256M

Database Configuration :: Version: 5.5.5-10.5.15-MariaDB (Client:mysqlnd 7.4.28) | Database Size: 429.19 MiB | #of Tables with config prefix:  122 | #of other Tables:  0 | User Privileges : GRANT SELECTUser Privileges : INSERTUser Privileges : UPDATEUser Privileges : DELETEUser Privileges : CREATEUser Privileges : DROPUser Privileges : REFERENCESUser Privileges : INDEXUser Privileges : ALTERUser Privileges : CREATE TEMPORARY TABLESUser Privileges : LOCK TABLESUser Privileges : EXECUTEUser Privileges : CREATE VIEWUser Privileges : SHOW VIEWUser Privileges : CREATE ROUTINEUser Privileges : ALTER ROUTINEUser Privileges : EVENTUser Privileges : TRIGGER
Detailed Environment :: wrote:PHP Extensions :: Core (7.4.28) | date (7.4.28) | libxml (7.4.28) | openssl (7.4.28) | pcre (7.4.28) | zlib (7.4.28) | bz2 (7.4.28) | calendar (7.4.28) | ctype (7.4.28) | hash (7.4.28) | filter (7.4.28) | ftp (7.4.28) | gettext (7.4.28) | gmp (7.4.28) | SPL (7.4.28) | iconv (7.4.28) | Reflection (7.4.28) | session (7.4.28) | standard (7.4.28) | SimpleXML (7.4.28) | sockets (7.4.28) | mbstring (7.4.28) | tokenizer (7.4.28) | xml (7.4.28) | cgi-fcgi (7.4.28) | mysqlnd (mysqlnd 7.4.28) | bcmath (7.4.28) | curl (7.4.28) | dba (7.4.28) | dom (20031129) | enchant (7.4.28) | fileinfo (7.4.28) | gd (7.4.28) | imagick (3.7.0) | imap (7.4.28) | intl (7.4.28) | json (7.4.28) | ldap (7.4.28) | exif (7.4.28) | mysqli (7.4.28) | odbc (7.4.28) | PDO (7.4.28) | pdo_mysql (7.4.28) | PDO_ODBC (7.4.28) | pdo_pgsql (7.4.28) | pdo_sqlite (7.4.28) | pgsql (7.4.28) | Phar (7.4.28) | posix (7.4.28) | pspell (7.4.28) | redis (5.3.7) | soap (7.4.28) | sodium (7.4.28) | sqlite3 (7.4.28) | sysvmsg (7.4.28) | sysvsem (7.4.28) | sysvshm (7.4.28) | tidy (7.4.28) | xmlreader (7.4.28) | xmlrpc (7.4.28) | xmlwriter (7.4.28) | xsl (7.4.28) | zip (1.15.6) | ionCube Loader (11.0.1) | Zend OPcache (7.4.28) | Zend Engine (3.4.0) |
Potential Missing Extensions ::
Disabled Functions :: opcache_get_status |

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) :: layouts/noboss/ (775) |
Database Information :: wrote:Database statistics :: Uptime: 82030 | Threads: 12 | Questions: 9502259 | Slow queries: 0 | Opens: 5164 | Open tables: 1096 | Queries per second avg: 115.838 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party:: WF_FILESYSTEM_JOOMLA_TITLE (2.9.21) ? | WF_AGGREGATOR_AUDIO_TITLE (2.9.21) ? | WF_AGGREGATOR_DAILYMOTION_TITLE (2.9.21) ? | WF_AGGREGATOR_VIDEO_TITLE (2.9.21) ? | WF_AGGREGATOR_VIMEO_TITLE (2.9.21) ? | WF_AGGREGATOR_[youtube]_TITLE (2.9.21) ? | WF_LINK_SEARCH_TITLE (2.9.21) ? | WF_LINKS_JOOMLALINKS_TITLE (2.9.21) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.9.21) ? | WF_CLIPBOARD_TITLE (2.9.21) ? | WF_SOURCE_TITLE (2.9.21) ? | WF_FONTSIZESELECT_TITLE (2.9.21) ? | WF_BROWSER_TITLE (2.9.21) ? | WF_TEXTCASE_TITLE (2.9.21) ? | WF_FONTSELECT_TITLE (2.9.21) ? | WF_TABLE_TITLE (2.9.21) ? | WF_MEDIA_TITLE (2.9.21) ? | WF_AUTOSAVE_TITLE (2.9.21) ? | WF_LINK_TITLE (2.9.21) ? | WF_SPELLCHECKER_TITLE (2.9.21) ? | WF_PREVIEW_TITLE (2.9.21) ? | WF_NONBREAKING_TITLE (2.9.21) ? | WF_HR_TITLE (2.9.21) ? | WF_SEARCHREPLACE_TITLE (2.9.21) ? | WF_CHARMAP_TITLE (2.9.21) ? | WF_ANCHOR_TITLE (2.9.21) ? | WF_WORDCOUNT_TITLE (2.9.21) ? | WF_FORMATSELECT_TITLE (2.9.21) ? | WF_ARTICLE_TITLE (2.9.21) ? | WF_LAYER_TITLE (2.6.30) ? | WF_KITCHENSINK_TITLE (2.9.21) ? | WF_STYLESELECT_TITLE (2.9.21) ? | WF_STYLE_TITLE (2.9.21) ? | WF_LISTS_TITLE (2.9.21) ? | WF_IMGMANAGER_TITLE (2.9.21) ? | WF_VISUALBLOCKS_TITLE (2.9.21) ? | WF_DIRECTIONALITY_TITLE (2.9.21) ? | WF_FULLSCREEN_TITLE (2.9.21) ? | WF_XHTMLXTRAS_TITLE (2.9.21) ? | WF_CLEANUP_TITLE (2.9.21) ? | WF_CONTEXTMENU_TITLE (2.9.21) ? | WF_VISUALCHARS_TITLE (2.9.21) ? | WF_PRINT_TITLE (2.9.21) ? | WF_FONTCOLOR_TITLE (2.9.21) ? | WF_EMOTIONS_TITLE (2.9.21) ? | WF_HELP_TITLE (2.9.21) ? | JCE - Noneditable (1.0.0) ? | WF_ATTRIBUTES_TITLE (2.9.1) ? | WF_REFERENCE_TITLE (2.9.1) ? |

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

Modules :: Site ::
Core :: mod_login (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_custom (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_search (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_finder (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party:: JSitemap module (4.9) 0 | Article Show (4.0.10) 1 | EB Sticky Cookie Notice (1.8) 1 | MOD_LATESTNEWSENHANCED (6.5.1) 1 | MOD_TRULYRESPONSIVESLIDES (2.4.1) 1 |

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

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

Plugins ::
Core :: 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_quickicon_downloadkey (4.0.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_cache (3.0.0) 1 | plg_system_redirect (3.0.0) 1 | plg_system_stats (3.5.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_remember (3.0.0) 0 | plg_system_fields (3.7.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_actionlogs (3.9.0) 0 | plg_system_accessibility (4.0.0) 0 | plg_system_httpheaders (4.0.0) 1 | plg_system_jooa11y (4.2.0) 1 | PLG_SYSTEM_SCHEDULERUNNER (4.1) 1 | plg_system_skipto (4.0.0) 1 | plg_system_task_notification (4.1) 1 | plg_system_webauthn (4.0.0) 1 | plg_installer_webinstaller (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_override (4.0.0) 1 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_user_token (3.9.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 0 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_extension_finder (4.0.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_emailcloak (3.0.0) 0 | plg_content_finder (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_twofactorauth_totp (3.2.0) 0 | 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_fields_subform (4.0.0) 1 | plg_sampledata_multilang (4.0.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_privacy_actionlogs (3.9.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_api-authentication_token (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_filesystem_local (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_task_check_files (4.1) 1 | plg_task_demo_tasks (4.1) 1 | plg_task_requests (4.1) 1 | plg_task_site_status (4.1) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_languages (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_messages (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_publishing (4.0.0) 1 |
3rd Party:: plg_quickicon_jce (2.9.21) 1 | System - Admin Bar Unlocker (0.9.1) 0 | plg_system_jce (2.9.21) 1 | plg_system_jcemediabox (2.1.2) 1 | System - JSitemap utilities (4.9) 1 | plg_system_shlib (0.4.0.715) 0 | com_content wbAMP support (1.16.0.847) 0 | PLG_SYSTEM_WBAMP (1.16.0.847) 0 | plg_system_shlib (0.4.0.715) 0 | System - TAGZ Open Graph (4.1.0 FREE) 0 | System - JUImage (4.3.5) 0 | System - JExtBOX Google Analytics T (3.0.0) ? | PLG_SYSTEM_SYW (2.2.0) 1 | PLG_SYSTEM_JQUERYEASY (5.0.3) 1 | plg_installer_jce (2.9.21) 1 | plg_extension_jce (2.9.21) 1 | plg_editors_codemirror (5.65.2) 1 | plg_editors_jce (2.9.21) 1 | plg_editors_tinymce (5.10.3) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | AllVideos (by JoomlaWorks) (6.1.0) 1 | Simple Image Gallery (by JoomlaWork (4.2) ? | Simple Image Gallery (by JoomlaWork (4.2) ? | plg_content_jce (2.9.21) 1 | Simple Audio Player - Shortcode (1.5) 1 | Content - JSitemap Pingomatic (4.9) 1 | Content - Facebook Comments By Inte (1.2) ? | Content - Social 2s (4.3.23) 0 | plg_fields_mediajce (2.9.21) 1 | com_content wbAMP support (1.16.0.847) 0 |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 | cassiopeia_mine (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |
Last edited by toivo on Thu Mar 31, 2022 11:34 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24215
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Saving an article Jstring error

Post by pe7er » Thu Mar 31, 2022 11:34 am

AntonisM wrote:
Thu Mar 31, 2022 11:17 am
that is the report (seems i have to disable some plugins!)
Yes, I would (after creating a back-up) disable all non-core system + content plugins, and try saving again.
When it works ok, I would enable those plugins one-by-one, each time testing whether the save works or not.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

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

Re: JString error in language/overrides/en-GB.localise.php:93

Post by toivo » Thu Mar 31, 2022 11:42 am

What about the PHP file in the language/overrides folder - how did that get there and is it normal in a multilingual site?

# Function Location
1 () JROOT/administrator/language/overrides/en-GB.localise.php:93
Toivo Talikka, Global Moderator

AntonisM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Mar 31, 2022 10:28 am

Re: JString error in language/overrides/en-GB.localise.php:93

Post by AntonisM » Thu Mar 31, 2022 11:57 am

toivo wrote:
Thu Mar 31, 2022 11:42 am
What about the PHP file in the language/overrides folder - how did that get there and is it normal in a multilingual site?

# Function Location
1 () JROOT/administrator/language/overrides/en-GB.localise.php:93
Ouaoou... i don't remember well but i think this is a modification for greek language. The content of this file is:

Code: Select all

<?php
/**
 * @package    Joomla.Language
 *
 * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * en-GB localise class.
 *
 * @since  1.6
 */
abstract class En_GBLocalise
{
	/**
	 * Returns the potential suffixes for a specific number of items
	 *
	 * @param   integer  $count  The number of items.
	 *
	 * @return  array  An array of potential suffixes.
	 *
	 * @since   1.6
	 */
	public static function getPluralSuffixes($count)
	{
		if ($count == 0)
		{
			return array('0');
		}
		elseif ($count == 1)
		{
			return array('1');
		}
		else
		{
			return array('MORE');
		}
	}

	/**
	 * Returns the ignored search words
	 *
	 * @return  array  An array of ignored search words.
	 *
	 * @since   1.6
	 */
	public static function getIgnoredSearchWords()
	{
		return array('and', 'in', 'on');
	}

	/**
	 * Returns the lower length limit of search words
	 *
	 * @return  integer  The lower length limit of search words.
	 *
	 * @since   1.6
	 */
	public static function getLowerLimitSearchWord()
	{
		return 3;
	}

	/**
	 * Returns the upper length limit of search words
	 *
	 * @return  integer  The upper length limit of search words.
	 *
	 * @since   1.6
	 */
	public static function getUpperLimitSearchWord()
	{
		return 20;
	}

	/**
	 * Returns the number of chars to display when searching
	 *
	 * @return  integer  The number of chars to display when searching.
	 *
	 * @since   1.6
	 */
	public static function getSearchDisplayedCharactersNumber()
	{
		return 200;
	}
	
	public static function transliterate($string)
	{
		$str = JString::strtolower($string);
 
		//Specific language transliteration.
		//This one is for latin 1, latin supplement , extended A, Cyrillic, Greek
 
		$glyph_array = array(
			'afth'	=>	'αυθ',
			'afk'	=>	'αυκ',
			'afks'	=>	'αυξ',
			'afp'	=>	'αυπ',
			'afs'	=>	'αυσ',
			'aft'	=>	'αυτ',
			'aff'	=>	'αυφ',
			'afx'	=>	'αυχ',
			'afps'	=>	'αυψ',
			'efth'	=>	'ευθ',
			'efk'	=>	'ευκ',
			'efks'	=>	'ευξ',
			'efp'	=>	'ευπ',
			'efs'	=>	'ευσ',
			'eft'	=>	'ευτ',
			'eff'	=>	'ευφ',
			'efx'	=>	'ευχ',
			'efps'	=>	'ευψ',
			'ifth'	=>	'ηυθ',
			'ifk'	=>	'ηυκ',
			'ifks'	=>	'ηυξ',
			'ifp'	=>	'ηυπ',
			'ifs'	=>	'ηυσ',
			'ift'	=>	'ηυτ',
			'iff'	=>	'ηυφ',
			'ifx'	=>	'ηυχ',
			'ifps'	=>	'ηυψ',
			'-b'	=>	'-μπ',
			'-d'	=>	'-ντ',
			'-g'	=>	'-γκ',
			' b'	=>	' μπ',
			' d'	=>	' ντ',
			' g'	=>	' γκ',
			'av'	=>	'αυ',
			'ev'	=>	'ευ',
			'iv'	=>	'ηυ',
			'ou'	=>	'ου',
			'a'		=>	'a,à,á,â,ã,ä,å,ā,ă,ą,ḁ,α,ά',
			'ae'	=>	'æ',
			'b'		=>	'б,^μπ',
			'c'		=>	'c,ç,ć,ĉ,ċ,č,ћ,ц',
			'ch'	=>	'ч',
			'd'		=>	'ď,đ,Ð,д,ђ,δ,ð,^ντ',
			'dz'	=>	'џ',
			'e'		=>	'e,è,é,ê,ë,ē,ĕ,ė,ę,ě,э,ε,έ',
			'f'		=>	'ƒ,ф,φ',
			'g'		=>	'ğ,ĝ,ğ,ġ,ģ,г,γ,^γκ',
			'h'		=>	'ĥ,ħ,Ħ,х',
			'i'		=>	'i,ì,í,î,ï,ı,ĩ,ī,ĭ,į,и,й,ъ,ы,ь,η,ή,ι,ί,ϊ,ΐ',
			'ij'	=>	'ij',
			'j'		=>	'ĵ,j',
			'ja'	=>	'я',
			'ju'	=>	'яю',
			'k'		=>	'ķ,ĸ,κ',
			'ks'	=>	'ξ',
			'l'		=>	'ĺ,ļ,ľ,ŀ,ł,л,λ',
			'lj'	=>	'љ',
			'm'		=>	'μ,м',
			'n'		=>	'ñ,ņ,ň,ʼn,ŋ,н,ν',
			'nj'	=>	'њ',
			'o'		=>	'ò,ó,ô,õ,ø,ō,ŏ,ő,ο,ό,ω,ώ',
			'oe'	=>	'œ,ö',
			'p'		=>	'п,π',
			'ps'	=>	'ψ',
			'r'		=>	'ŕ,ŗ,ř,р,ρ',
			's'		=>	'ş,ś,ŝ,ş,š,с,σ,ς',
			'ss'	=>	'ß,ſ',
			'sh'	=>	'ш',
			'shch'	=>	'щ',
			't'		=>	'ţ,ť,ŧ,τ,т',
			'th'	=>	'θ',
			'u'		=>	'u,ù,ú,û,ü,ũ,ū,ŭ,ů,ű,ų,у',
			'v'		=>	'в,β',
			'w'		=>	'ŵ',
			'x'		=>	'χ',
			'y'		=>	'ý,þ,ÿ,ŷ,υ,ύ,ϋ,ΰ',
			'z'		=>	'ź,ż,ž,з,ж,ζ'
		);
 
		foreach($glyph_array as $letter => $glyphs) {
			preg_match_all('/(\^[^,]+(,|$))/', $glyphs, $matches);
			if (count($matches[0])) {
				foreach ($matches[0] as $m) {
                    if (strpos($m, ',')) {
                        $glyphs = str_replace($m, '', $glyphs);
                    }
                    elseif(strpos($glyphs, ',')) {
                        $glyphs = str_replace(','.$m, '', $glyphs);
                    }
                    else {
                        $glyphs = '';
                    }
        			$str = preg_replace('/'.$m.'/', $letter, $str);
                }
			}
			$glyphs = explode(',', $glyphs);
			$str = str_replace($glyphs, $letter, $str);
		}
 
		return $str;
}
}
It was supposed to be there in order to translate alias form greek to latin language in a better way than joomla did then.
How can i get red of it;

Maybe the error is produced when trying to make the alias of the article.
Last edited by toivo on Thu Mar 31, 2022 12:10 pm, edited 1 time in total.
Reason: mod note: added CODE tags

AntonisM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Mar 31, 2022 10:28 am

Re: JString error in language/overrides/en-GB.localise.php:93

Post by AntonisM » Thu Mar 31, 2022 12:16 pm

maybe it is not the right way but i just renamed the file en-GB.localise.php and now i can save articles with no problems.

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

Re: JString error in language/overrides/en-GB.localise.php:93

Post by toivo » Thu Mar 31, 2022 12:25 pm

That sounds like a good workaround.

No idea if the code would work once the JString class in line 93 is replaced because Joomla 4 may have introduced other changes, too:

Code: Select all

		$str = JString::strtolower($string);
The old JString class alias has been removed. Use \Joomla\String\StringHelper instead.
Ref. Potential backward compatibility issues in Joomla 4
Toivo Talikka, Global Moderator

AntonisM
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Mar 31, 2022 10:28 am

Re: JString error in language/overrides/en-GB.localise.php:93

Post by AntonisM » Thu Mar 31, 2022 1:44 pm

thank you very much both of you for your great help


Post Reply

Return to “Language - Joomla! 4.x”