Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4 Topic is solved

Need help upgrading your Joomla! website or converting to 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
Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Mon Nov 21, 2022 12:52 pm

Hello Joomla Forum
We use:
PHP: 7.4.33
Database Type: mysql
Joomla! 4.2.3 Stable [ Uaminifu ] 27-September-2022 15:35 GMT

We tried to migrate our website to Joomla 4 and we engaged with the following error in Media folder.
"Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string"

We saw in other posts that the solution was to enable the php fileinfo extension but that doesn't worked for us, as it was already enabled.

related posts we checked
posts:
3652660
37052
991916

Is there anything else we can do to fix that?
Thank you in advance

User avatar
Rondeb
Joomla! Guru
Joomla! Guru
Posts: 503
Joined: Mon Dec 02, 2013 12:14 pm
Location: Meschede - Germany
Contact:

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Rondeb » Mon Nov 21, 2022 2:31 pm

Hi,

can you test it if this problem also there is with PHP 8?

Ron :)

Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Mon Nov 21, 2022 3:49 pm

We tried with php 8, still the same.

User avatar
Rondeb
Joomla! Guru
Joomla! Guru
Posts: 503
Joined: Mon Dec 02, 2013 12:14 pm
Location: Meschede - Germany
Contact:

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Rondeb » Mon Nov 21, 2022 4:11 pm

Hi,

If I were you, I would install a standard Joomla in subdomain and see if the problem is still there or not.

If it's gone, then the problem is really in the Joomla upgrade.

Ron :)

Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Tue Nov 22, 2022 9:59 am

Hey and thank you for your replies.
I will present our steps if anyone faced something similar.

1.We upgraded our website in Joomla 4. In this version we can't access MEDIA files and we see the followning error.
("Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string")
Also in this version if we try to upgrade to php8 we get 502 Bad gateway

2.We made a clean Joomla 4 installation an we transfered the needed databases.
In this version we see the same error in Media files and after the upgrade to php8 that applied normally.

Fileinfo is enabled.

Any ideas?

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

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by ceford » Tue Nov 22, 2022 10:26 am

In Global Configuration, set Debug System to Yes and set Error Reporting to Maximum. Trigger the error and then post the stack trace here.

Also, run the Forum Post Assistant and post the public results here.

User avatar
Rondeb
Joomla! Guru
Joomla! Guru
Posts: 503
Joined: Mon Dec 02, 2013 12:14 pm
Location: Meschede - Germany
Contact:

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

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

Brainer wrote:
Tue Nov 22, 2022 9:59 am
2.We made a clean Joomla 4 installation an we transfered the needed databases.
Have you tested if the default Joomla 4 with default database worked? :)

Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Tue Nov 22, 2022 3:02 pm

Hi Ceford, we enabled the debug system and error reporting and we received these 3 in homepage.

Warning
: foreach() argument must be of type array|object, null given in
/var/www/vhosts/platform.gr/newplatform.gr/templates/ja_comics/html/mod_articles_categories/main_items.php
on line
21
Warning: Undefined array key 0 in /var/www/vhosts/platform.gr/newplatform.gr/templates/ja_comics/html/mod_articles_category/style-1.php on line 18
Warning: Attempt to read property "catid" on null in /var/www/vhosts/platform.gr/newplatform.gr/templates/ja_comics/html/mod_articles_category/style-1.php on line 18

The fun fact is that after we applied these the images showed up in front end. But still we can't access admin Media. We prepare to run the Forum Post Assistant as you suggested.

Hi Rondeb, everything applied normally. Articles categories and users shows correctly. Our only issue so far is that we can't access Media files.
Even if i open an image path it opens fine.

Thank you for your assistance

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

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by ceford » Tue Nov 22, 2022 3:39 pm

The warning messages you are getting are just warnings. They indicate something is not properly coded but the outcome is not fatal. They are in php files that don't exist in Joomla 4 so you will have to figure that out yourself.

What about the media component? Is your problem in the frontend or backend? A screenshot showing the error message would be useful. A lot of media interaction is done with JavaScript so you could open your browser Developer Tools to see if there are any errors reported.

Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Thu Nov 24, 2022 11:29 am

Hi again, bellow you will find the forum Post Assistant results. The problem with Media compoment is in Admin Area. (SS: https://prnt.sc/oZiRZVdJjBXq)
First images would not show in the frontend at all. After we changed the Debug System to Yes and set Error Reporting to Maximum they show in frontend.
Forum Post Assistant (v1.6.5) : 24-Nov-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.2.5-Stable (Uaminifu) 8-November-2022
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: 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: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.2.5: Yes | Database Supports J! 4.2.5: Yes | Database Credentials Present: Yes |

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

PHP Configuration :: Version: 8.0.25 | PHP API: fpm-fcgi | Session Path Writable: No | Display Errors: 0 | Error Reporting: 1 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: /var/www/vhosts/platform.gr/:/tmp/ | Uploads: 1 | Max. Upload Size: 128M | Max. POST Size: 128M | Max. Input Time: 1200 | Max. Execution Time: 2400 | Memory Limit: 4G

Database Configuration :: Version: 10.5.17-MariaDB (Client:mysqlnd 8.0.25) | Database Size: 160.45 MiB | #of Tables with config prefix:  102 | #of other Tables:  11 | 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 (8.0.25) | date (8.0.25) | libxml (8.0.25) | openssl (8.0.25) | pcre (8.0.25) | zlib (8.0.25) | bz2 (8.0.25) | calendar (8.0.25) | ctype (8.0.25) | hash (8.0.25) | filter (8.0.25) | ftp (8.0.25) | gettext (8.0.25) | gmp (8.0.25) | SPL (8.0.25) | iconv (8.0.25) | json (8.0.25) | Reflection (8.0.25) | session (8.0.25) | standard (8.0.25) | SimpleXML (8.0.25) | sockets (8.0.25) | mbstring (8.0.25) | tokenizer (8.0.25) | xml (8.0.25) | cgi-fcgi (8.0.25) | mysqlnd (mysqlnd 8.0.25) | bcmath (8.0.25) | curl (8.0.25) | dba (8.0.25) | dom (20031129) | enchant (8.0.25) | fileinfo (8.0.25) | gd (8.0.25) | i360 (7.1.1) | imagick (3.7.0) | imap (8.0.25) | intl (8.0.25) | ldap (8.0.25) | exif (8.0.25) | mysqli (8.0.25) | odbc (8.0.25) | PDO (8.0.25) | pdo_mysql (8.0.25) | PDO_ODBC (8.0.25) | pdo_pgsql (8.0.25) | pdo_sqlite (8.0.25) | pgsql (8.0.25) | Phar (8.0.25) | posix (8.0.25) | pspell (8.0.25) | redis (5.3.7) | soap (8.0.25) | sodium (8.0.25) | sqlite3 (8.0.25) | sysvmsg (8.0.25) | sysvsem (8.0.25) | sysvshm (8.0.25) | tidy (8.0.25) | xmlreader (8.0.25) | xmlwriter (8.0.25) | xsl (8.0.25) | zip (1.19.5) | Zend OPcache (8.0.25) | Zend Engine (4.0.25) |
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/ (---) | 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: 3809946 | Threads: 74 | Questions: 756092288 | Slow queries: 60697 | Opens: 789809 | Open tables: 2000 | Queries per second avg: 198.452 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

Components :: Admin ::
Core :: com_cache (4.0.0) 1 | com_mails (4.0.0) 1 | com_finder (4.0.0) 1 | com_plugins (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_actionlogs (3.9.0) 1 | com_postinstall (4.0.0) 1 | com_privacy (3.9.0) 1 | com_contenthistory (4.0.0) 1 | com_installer (4.0.0) 1 | com_banners (4.0.0) 1 | com_ajax (4.0.0) 1 | com_admin (4.0.0) 1 | com_cpanel (4.0.0) 1 | com_templates (4.0.0) 1 | com_associations (4.0.0) 1 | com_checkin (4.0.0) 1 | com_workflow (4.0.0) 1 | com_content (4.0.0) 1 | com_messages (4.0.0) 1 | com_redirect (4.0.0) 1 | com_scheduler (4.1.0) 1 | com_menus (4.0.0) 1 | com_newsfeeds (4.0.0) 1 | com_modules (4.0.0) 1 | com_config (4.0.0) 1 | com_login (4.0.0) 1 | com_fields (4.0.0) 1 | com_users (4.0.0) 1 | com_categories (4.0.0) 1 | com_languages (4.0.0) 1 | com_tags (4.0.0) 1 | com_media (3.0.0) 1 | com_wrapper (4.0.0) 1 |
3rd Party:: com_jaextmanager (2.5.3) 1 | com_jaextmanager (2.7.4) 1 | Acym (7.9.5) 1 | AcyMailing - Search emails in Jooml (7.9.5) ? | AcyMailing - JCE integration (7.9.5) 1 | AcyMailing - Joomla integration (7.9.5) 1 | AcyMailing subscription form (7.9.5) 1 | AcyMailing - Override Joomla emails (7.9.5) 0 |

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

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

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_installer_webinstaller (4.0.0) 1 | 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_system_skipto (4.0.0) 1 | plg_system_jooa11y (4.2.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_task_notification (4.1) 1 | plg_system_redirect (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_actionlogs (3.9.0) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_logout (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_accessibility (4.0.0) 0 | plg_system_shortcut (4.2.0) 1 | plg_system_httpheaders (4.0.0) 0 | plg_system_logrotation (3.9.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_schedulerunner (4.1) 1 | plg_system_stats (3.5.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_sef (3.0.0) 1 | plg_webservices_config (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_installer (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_languages (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_task_requests (4.1) 1 | plg_task_site_status (4.1) 1 | plg_task_check_files (4.1) 1 | plg_task_demo_tasks (4.1) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 1 | plg_user_terms (3.9.0) 1 | plg_user_joomla (3.0.0) 1 | plg_user_token (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.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_extension_finder (4.0.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_module (3.5.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_content_finder (3.0.0) 0 | plg_content_loadmodule (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_content_fields (3.7.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_captcha_recaptcha (3.4.0) 0 | plg_sampledata_multilang (4.0.0) 1 | plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_yubikey (3.2.0) 0 | plg_multifactorauth_email (4.2.0) 0 | plg_multifactorauth_webauthn (4.2.0) 0 | plg_multifactorauth_totp (3.2.0) 0 | plg_workflow_featuring (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_publishing (4.0.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_api-authentication_token (4.0.0) 1 |
3rd Party:: Ajax - JA Content Type (1.2.0) 1 | plg_system_t4 (2.2.3) 1 | AcyMailing - Joomla integration (7.9.2) 1 | AcyMailing - Override Joomla emails (7.9.2) 0 | AcyMailing - JCE integration (7.9.2) 1 | System - JA Content Type (1.2.1) 1 | plg_editors_tinymce (5.10.5) 1 | plg_editors_codemirror (5.65.6) 1 | AcyMailing - Search emails in Jooml (7.9.2) ? |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) 1 | ja_comics (1.0.0) 1 |
Templates :: Admin :: atum (1.0) 1 |

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

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by ceford » Thu Nov 24, 2022 1:28 pm

I suspect you have an invalid file in your images folder. Media problems can be difficult to debug as they rely on Javascript. This may help:

Go to line 59 of administrator/components/com_media/src/Event/AbstractMediaItemValidationEvent.php

Paste in this line of code:

Code: Select all

        file_put_contents(JPATH_ADMINISTRATOR .'/logs/media-log.txt', $item->name . "\n", FILE_APPEND);
so it looks like this:

Code: Select all

        file_put_contents(JPATH_ADMINISTRATOR .'/logs/media-log.txt', $item->name . "\n", FILE_APPEND);
        // Non empty string
        if (empty($item->name) || !is_string($item->name)) {
            throw new \BadMethodCallException("Property 'name' of argument 'item' of event {$this->name} has a wrong item. Valid: non empty string");
        }
You will see there the error message you see in your browser. Reload the media page and then open administrator/logs/media-log.txt with a text editor. You should see a list of images that have been processed. The last one is probably the one that causes the error.

Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Thu Nov 24, 2022 2:48 pm

Ceford you are awsome, that worked perfect and we learned so much, you have our eternal gratitude.

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

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by ceford » Thu Nov 24, 2022 2:52 pm

Can you tell us what the problem was? Which image? What type of image? Something else?

Brainer
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 21, 2022 12:35 pm

Re: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string Joomla 4

Post by Brainer » Thu Nov 24, 2022 3:06 pm

Sure Ceford
We followed your instructions.

In media-log.txt we had as result the zero number "0"

We reload the Media page with the error 3 times and we had 3 zeros "0"

The file was a folder named zero "0" with 2 subfolders 2021 and 2022 that they were empty.

We deleted the folder "0" and after that we reloaded the Media page and our images and folders appeared.

If anyone has any other question about the case we will be happy to assist.


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”