Ошибка joomla cannot use object of type stdclass as array

0 Пользователей и 1 Гость просматривают эту тему.

  • 57 Ответов
  • 19037 Просмотров

Обновил до 3.8.10. И теперь нельзя создать меню. Ошибка —   Обнаружена ошибка. 0 Cannot use object of type stdClass as array  —
Как решается такое?

Решения не нашел. Обновлять не буду. Много косяков.

Причину нашел.   Helix3.  Ждать обновление. Helix3.  У меня просто он стоит на сайте.

Причину нашел.   Helix3.  Ждать обновление. Helix3.  У меня просто он стоит на сайте.

так надо было сначала хеликс обновить
там и фреймворк и прочее под него вышло

Записан

SEO-оптимизация,продвижение
Создание и сопровождение сайтов на Joomla
Миграция

Обновил до 3.8.10. И теперь нельзя создать меню. Ошибка —   Обнаружена ошибка. 0 Cannot use object of type stdClass as array  —
Как решается такое?

Вот вот точно такая же ошибка выходит. Как с ней бороться не понятно. На главной странице всё работает. А вот при редактирование в меню выбивает в ошибку, стоит компонент TZ Portfolio Plus.

Точно такая же ошибка. Шаблон стоит от smartaddons. Но я думаю проблема не в нем а в самом обновлении Joomla. Нашел кто решение?

Тоже такая же ошибка, только шаблоны от другой студии…. вот же обновления( теперь все откатывать

Сказали — 2 дня ждать. До нового обновления Helix3

да причем тут хеликс, тут масштабная, не только в хеликсах

хотя одни проекты работают…хмм…оч странно

береженого БГ бережет
потерпим

Записан

SEO-оптимизация,продвижение
Создание и сопровождение сайтов на Joomla
Миграция

береженого БГ бережет
потерпим

просто что делать если нельзя пункт меню создать….

просто что делать если нельзя пункт меню создать….

Ждем пока баги пофиксят

Записан

SEO-оптимизация,продвижение
Создание и сопровождение сайтов на Joomla
Миграция

просто что делать если нельзя пункт меню создать….

ОТключить плагин, создать пункт, обратно включить

пункт

Такого не нашла, нашла лишь плагин «Контент — Joomla», выключила и включила, все также(

Надо сторонние плагины типо хеликса и других производителей шаблона отключать,  а не стандартные Joomla.

все проще
расширения-менеджер расширений-обновление
обновите все что с хеликсом связано или другим фреймворком и все будет работать

Записан

SEO-оптимизация,продвижение
Создание и сопровождение сайтов на Joomla
Миграция

обновите все что с хеликсом связано или другим фреймворком и все будет работать

Если производитель удосужился выпустить обновление

Если производитель удосужился выпустить обновление

согласен
на хеликсах точно есть

Записан

SEO-оптимизация,продвижение
Создание и сопровождение сайтов на Joomla
Миграция

все проще
расширения-менеджер расширений-обновление
обновите все что с хеликсом связано или другим фреймворком и все будет работать

увы никаких хеликсов нет(

Решилась проблема после обновления Google Structured Data

У меня сегодня повторно обновление System — Helix3 Framework и Helix3 — AJAX вылезло… Обновился и опять все меню не работает…

P.S> Извиняюсь за ложную информацию, включил в SEO Перенаправление URL и меню error 500 выдавало, подумал уж то же самое , потом вспомнил , что менял. Не нашел, как удалить свое сообщение.

« Последнее редактирование: 03.07.2018, 21:06:08 от stoorm89 »

Записан

Htaccess оригинальный?

Да

Тогда смотрите логи или включайте отладку, что даёт 500 ошибку

Попробуйте временно отключить System — Helix3 Framework мне помогло — http://prntscr.com/k650ic

Не отключайте, а обновите все что связано с хеликсом

Записан

SEO-оптимизация,продвижение
Создание и сопровождение сайтов на Joomla
Миграция

Мне тоже ничего не помогает. Helix framework 2.5.4, Joomla 3.8.10. Отключение системного плагина Helix и AjaxHelix не помогает. Все равно ошибка 0 Cannot use object of type stdClass as array при попытке зайти в любой пункт меню. Также в «Менеджер расширений — управление» не работает в инструментах поиска — выбор типа. Срабатывает только если написать вручную (например template).

Попробуйте поиском по плагином поискать onContentPrepareForm
Неработающий фильтр известный баг, пофиксят скорее уже в новой версии.

Moderator: General Support Moderators

Eucrow

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jul 21, 2015 11:09 am

error Cannot use object of type stdClass as array

Hi

When I try to create a new menu this error is displayed:

Fatal error: Cannot use object of type stdClass as array in /home/proyect1/public_html/administrator/components/com_menus/models/item.php on line 540

I created new menus recently without any problem so I don’t understand what is happening :(

Thanks
:)


sorinio

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Aug 05, 2015 3:18 am

Re: error Cannot use object of type stdClass as array

Post

by sorinio » Wed Aug 05, 2015 4:10 am

I have the exact same problem as Eucrow, occurring after upgrading from 2.5 to 3.4.3. For me it only happens when I try to create a new menu element, from scratch. If I edit an existing one (or save as copy, everything works fine), but if I try to create a new menu element, it crashes with «Fatal error: Cannot use object of type stdClass as array in …/administrator/components/com_menus/models/item.php on line 540»
Didn’t meddle with any code. Can anyone suggest a solution?


elplasti

Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Sat Aug 08, 2009 4:49 pm

Re: error Cannot use object of type stdClass as array

Post

by elplasti » Thu Aug 13, 2015 6:17 pm

i have the same problem… PLEASE HELP !!!


Eucrow

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jul 21, 2015 11:09 am

Re: error Cannot use object of type stdClass as array

Post

by Eucrow » Fri Aug 14, 2015 7:50 am

I can’t find a solution to the problem. Fortunately it was a very little proyect so I installed joomla again and imported some tables for the old one.


Miemiest

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Jul 16, 2012 7:41 am

Re: error Cannot use object of type stdClass as array

Post

by Miemiest » Tue Sep 15, 2015 6:24 pm

Has anyone found a solution to this problem yet? I am also experiencing it now.

Thanks guys :)


kemalwebnet

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jan 14, 2009 1:19 pm

Re: error Cannot use object of type stdClass as array

Post

by kemalwebnet » Mon Oct 26, 2015 7:44 pm

I am also experiencing it now.

Has anyone found a solution to this problem yet?

Help me.


illovo

Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Sun Jan 13, 2013 9:30 am
Contact:

Re: error Cannot use object of type stdClass as array

Post

by illovo » Sat Dec 19, 2015 2:13 pm

The same problem was reported in a german forum 2 times now.
Last one was after Upgrade to 3.4.6 when new menu items should be created.
Creation of new menu items was suddenly no longer possible with this message (now it’s line 548). After Upgrade it worked for some new items. Then over.


User avatar

meto

Joomla! Explorer
Joomla! Explorer
Posts: 333
Joined: Fri Aug 07, 2009 12:42 am
Location: Germany

Re: error Cannot use object of type stdClass as array

Post

by meto » Wed Jun 27, 2018 3:50 pm

Hello all,

I think this issue caused after new Joomla update 3.8.9 and 3.8.10 specially with helix3 plugin system. If you have this plugin you should do the following step to get this issue solved:

Open the file located in: ‘/plugins/system/helix3/helix3.php’

On 50 line add below php code:

if (is_object($data)) {
$data = (array)$data;
}

Image

I hope it helps.

Thanks :)


besihosseini

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 09, 2018 1:58 pm

newton1585

Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri May 03, 2013 9:19 pm
Location: Paraguay
Contact:

Re: error Cannot use object of type stdClass as array

Post

by newton1585 » Mon Jul 09, 2018 3:18 pm

meto wrote:Hello all,

I think this issue caused after new Joomla update 3.8.9 and 3.8.10 specially with helix3 plugin system. If you have this plugin you should do the following step to get this issue solved:

Open the file located in: ‘/plugins/system/helix3/helix3.php’

On 50 line add below php code:

if (is_object($data)) {
$data = (array)$data;
}

Image

I hope it helps.

Thanks :)

thank you very much, works great! :D


User avatar

meto

Joomla! Explorer
Joomla! Explorer
Posts: 333
Joined: Fri Aug 07, 2009 12:42 am
Location: Germany

Re: error Cannot use object of type stdClass as array

Post

by meto » Mon Jul 09, 2018 4:52 pm

@besihosseini
@newton1585

I’m very happy to know that it works with you both.

Thank you :)


deputt

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 18, 2018 7:57 am

Re: error Cannot use object of type stdClass as array

Post

by deputt » Tue Sep 18, 2018 7:59 am

TQ, meto. This worked very well indeed.

meto wrote: ↑

Wed Jun 27, 2018 3:50 pm


Hello all,

I think this issue caused after new Joomla update 3.8.9 and 3.8.10 specially with helix3 plugin system. If you have this plugin you should do the following step to get this issue solved:

Open the file located in: ‘/plugins/system/helix3/helix3.php’

On 50 line add below php code:

if (is_object($data)) {
$data = (array)$data;
}

Image

I hope it helps.

Thanks :)


KianWilliam

Joomla! Guru
Joomla! Guru
Posts: 550
Joined: Thu Jan 12, 2017 10:13 am

Re: error Cannot use object of type stdClass as array

Post

by KianWilliam » Tue Sep 18, 2018 8:28 am

Set joomla error reports to max from global config, collect more data, there might be a version collision between your joomla version, template version or a 3rd party extension.
Kian William



Return to “Administration Joomla! 3.x”


Jump to

  • Joomla! Announcements
  • ↳   Announcements
  • ↳   Announcements Discussions
  • Joomla! 4.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 4.x
  • ↳   Installation Joomla! 4.x
  • ↳   Administration Joomla! 4.x
  • ↳   Migrating and Upgrading to Joomla! 4.x
  • ↳   Extensions for Joomla! 4.x
  • ↳   Security in Joomla! 4.x
  • ↳   Templates for Joomla! 4.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 4.x
  • ↳   Language — Joomla! 4.x
  • ↳   Performance — Joomla! 4.x
  • ↳   Joomla! 4.x Coding
  • Joomla! 3.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 3.x
  • ↳   Installation Joomla! 3.x
  • ↳   Joomla! 3.x on IIS webserver
  • ↳   Administration Joomla! 3.x
  • ↳   Access Control List (ACL) in Joomla! 3.x
  • ↳   Migrating and Upgrading to Joomla! 3.x
  • ↳   Security in Joomla! 3.x
  • ↳   Extensions for Joomla! 3.x
  • ↳   Templates for Joomla! 3.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 3.x
  • ↳   Language — Joomla! 3.x
  • ↳   Performance — Joomla! 3.x
  • ↳   Joomla! 3.x Coding
  • Joomla! Versions which are End of Life
  • ↳   Joomla! 2.5 — End of Life 31 Dec 2014
  • ↳   General Questions/New to Joomla! 2.5
  • ↳   Installation Joomla! 2.5
  • ↳   Joomla! 2.5 on IIS webserver
  • ↳   Administration Joomla! 2.5
  • ↳   Access Control List (ACL) in Joomla! 2.5
  • ↳   Migrating and Upgrading to Joomla! 2.5
  • ↳   Security in Joomla! 2.5
  • ↳   Extensions for Joomla! 2.5
  • ↳   Templates for Joomla! 2.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 2.5
  • ↳   Language — Joomla! 2.5
  • ↳   Performance — Joomla! 2.5
  • ↳   Joomla! 1.5 — End of Life Sep 2012
  • ↳   General Questions/New to Joomla! 1.5
  • ↳   Installation 1.5
  • ↳   Joomla! 1.5 on IIS webserver
  • ↳   Administration 1.5
  • ↳   Migrating and Upgrading to Joomla! 1.5
  • ↳   Security in Joomla! 1.5
  • ↳   Extensions for Joomla! 1.5
  • ↳   Templates for Joomla! 1.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 1.5
  • ↳   Language — Joomla! 1.5
  • ↳   Performance — Joomla! 1.5
  • ↳   Joomla! 1.0 — End of Life 22 July 2009
  • ↳   Installation — 1.0.x
  • ↳   Upgrading — 1.0.x
  • ↳   Security — 1.0.x
  • ↳   3rd Party/Non Joomla! Security Issues
  • ↳   Administration — 1.0.x
  • ↳   Extensions — 1.0.x
  • ↳   Components
  • ↳   Modules
  • ↳   Plugins/Mambots
  • ↳   WYSIWYG Editors — 1.0.x
  • ↳   Integration & Bridges — 1.0.x
  • ↳   phpbb — Joomla! Integration
  • ↳   Templates & CSS — 1.0.x
  • ↳   Language — 1.0.x
  • ↳   Joom!Fish and Multilingual Sites
  • ↳   Performance — 1.0.x
  • ↳   General Questions — 1.0.x
  • Joomla! International Language Support
  • ↳   International Zone
  • ↳   Arabic Forum
  • ↳   تنبيهات هامة
  • ↳   الدروس
  • ↳   4.x جوملا!
  • ↳   جوملا! 1.6/1.7
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   1.5 !جوملا
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   جوملا! 1.0
  • ↳   الأسئلة الشائـعة
  • ↳   التثبيت
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   الإضافات المعرّبة
  • ↳   القوالب و التصميم
  • ↳   الحماية — تحسين السرعة والأداء — صداقة محركات البحث
  • ↳   القسم العام
  • ↳   القسم العام
  • ↳   !عرض موقعك بجوملا
  • ↳   الأرشيف
  • ↳   Bengali Forum
  • ↳   Bosnian Forum
  • ↳   Joomla! 1.5
  • ↳   Instalacija i prvi koraci
  • ↳   Ekstenzije
  • ↳   Templejti
  • ↳   Moduli
  • ↳   Prevodi i dokumentacija
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Catalan Forum
  • ↳   Notícies
  • ↳   Temes sobre l’administració
  • ↳   Temes sobre la traducció
  • ↳   Components, mòduls i joombots
  • ↳   Temes de disseny
  • ↳   Webs realitzades amb Joomla!
  • ↳   Offtopics
  • ↳   Chinese Forum
  • ↳   Croatian Forum
  • ↳   Danish Forum
  • ↳   Meddelelser
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x (Anbefalet til nye installationer. Nyeste funktionalitet)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Ældre versioner (disse vedligeholdes ikke længere fra officiel side)
  • ↳   Joomla! 2.5 (Supporteres indtil 31. dec. 2014)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.5 (Tidligere langtidssupporteret version indtil sep. 2012)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.0 (Udgået version, der blev afløst af 1.5 i 2008)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Mambots
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Oversættelser (lokalisering)
  • ↳   Joomla brugergrupper i Danmark
  • ↳   JUG Kolding
  • ↳   JUG København
  • ↳   JUG Odense
  • ↳   JUG Århus
  • ↳   JUG Sorø
  • ↳   Kommerciel (betalt) hjælp ønskes
  • ↳   SEO
  • ↳   FAQ — Dokumentation og vejledninger
  • ↳   Vis dit websted
  • ↳   Afviste ‘Vis dit websted’ indlæg
  • ↳   Diverse (Off topic)
  • ↳   Dutch Forum
  • ↳   Aankondigingen
  • ↳   Algemene vragen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Installatie 3.x
  • ↳   Extensies 3.x
  • ↳   Templates 3.x
  • ↳   Joomla! 2.5
  • ↳   Installatie 2.5
  • ↳   Componenten 2.5
  • ↳   Modules 2.5
  • ↳   Plugins 2.5
  • ↳   Templates 2.5
  • ↳   Joomla! 1.5
  • ↳   Installatie
  • ↳   Componenten
  • ↳   Modules
  • ↳   Plugins
  • ↳   Templates
  • ↳   Joomla! 1.0
  • ↳   Installatie 1.0.x
  • ↳   Componenten 1.0.x
  • ↳   Modules 1.0.x
  • ↳   Mambots 1.0.x
  • ↳   Templates 1.0.x
  • ↳   Vertalingen
  • ↳   Offtopic
  • ↳   Show jouw website
  • ↳   Filipino Forum
  • ↳   International Support Center
  • ↳   Pinoy General Discussion & Archives
  • ↳   Site Showcase
  • ↳   Events
  • ↳   Design Tips and Tricks
  • ↳   Tsismis Zone
  • ↳   Pinoy Translation Zone
  • ↳   Pinoy Forum Archives
  • ↳   Joomla! Philippines Local Forum www.joomla.org.ph
  • ↳   Finnish Forum
  • ↳   French Forum
  • ↳   Les annonces!
  • ↳   Le bistrot!
  • ↳   L’expo!
  • ↳   J! 4.x — L’atelier!
  • ↳   J! 3.x — L’atelier!
  • ↳   3.x — Questions générales, nouvel utilisateur
  • ↳   3.x — Installation, migration et mise à jour
  • ↳   3.x — Sécurité et performances
  • ↳   3.x — Extensions tierce partie
  • ↳   3.x — Templates et design
  • ↳   3.x — Développement
  • ↳   3.x — Ressources
  • ↳   J! 2.5.x — L’atelier!
  • ↳   2.5 — Questions générales
  • ↳   2.5 — Installation, migration et mise à jour
  • ↳   2.5 — Sécurité et performances
  • ↳   2.5 — Extensions tierce partie
  • ↳   2.5 — Templates et design
  • ↳   2.5 — Développement
  • ↳   2.5 — Ressources
  • ↳   J! 1.5.x — L’atelier!
  • ↳   1.5 — Questions générales
  • ↳   1.5 — Installation, migration et mise à jour
  • ↳   1.5 — Sécurité et performances
  • ↳   1.5 — Extensions tierce partie
  • ↳   1.5 — Templates et design
  • ↳   1.5 — Développement
  • ↳   1.5 — Ressources
  • ↳   J! 1.0.x — L’atelier!
  • ↳   1.0 — Questions générales
  • ↳   1.0 — Installation et mise à jour
  • ↳   1.0 — Sécurité
  • ↳   1.0 — Extensions tierce partie
  • ↳   1.0 — Templates et design
  • ↳   1.0 — Développement
  • ↳   1.0 — Ressources
  • ↳   Besoin d’un professionel ?
  • ↳   Extensions Open Source pour Joomla!
  • ↳   German Forum
  • ↳   Ankündigungen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 2.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 1.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Professioneller Service
  • ↳   Sonstiges (Offtopic)
  • ↳   Archiv
  • ↳   Joomla! 1.0
  • ↳   Allgemeine Fragen 1.0.x
  • ↳   Installation und erste Schritte 1.0.x
  • ↳   Komponenten, Module, Mambots 1.0.x
  • ↳   Template, CSS und Designfragen 1.0.x
  • ↳   Entwicklerforum 1.0.x
  • ↳   Zeige Deine Webseite 1.0.x
  • ↳   Greek Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.5.x
  • ↳   Joomla! 1.0.x
  • ↳   Hebrew Forum
  • ↳   Indic Languages Forum
  • ↳   Indonesian Forum
  • ↳   FAQ
  • ↳   Bantuan
  • ↳   Komponen
  • ↳   Modul
  • ↳   Template
  • ↳   Diskusi
  • ↳   Italian Forum
  • ↳   Guide
  • ↳   Traduzioni
  • ↳   Componenti — Moduli — Plugins
  • ↳   Template — Grafica
  • ↳   Notizie
  • ↳   Prodotti Open Source per Joomla!
  • ↳   Richieste professionali
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.x
  • ↳   Latvian Forum
  • ↳   Lithuanian Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 1.5
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Joomla! 1.0
  • ↳   Vertimai ir Kalba
  • ↳   Malaysian Forum
  • ↳   Solved
  • ↳   Norwegian Forum
  • ↳   Informasjon
  • ↳   Arkiverte annonseringer
  • ↳   FAQ — Ofte spurte spørsmål
  • ↳   Arkiv
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Netthandel, betaling m.m.
  • ↳   VirtueMart
  • ↳   Andre nettbutikkløsninger
  • ↳   Generelt
  • ↳   Oversettelser
  • ↳   Fremvisning av sider (Show off)
  • ↳   Avviste fremvisninger
  • ↳   Diverse (off topic)
  • ↳   Kommersiell hjelp ønskes
  • ↳   Eldre versjoner av Joomla!
  • ↳   Joomla! 1.0
  • ↳   Administrasjon/installasjon
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/mambots
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 1.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 2.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Persian Forum
  • ↳   قالب ها
  • ↳   مدیریت
  • ↳   سوالهای عمومی
  • ↳   نصب
  • ↳   مامبوت ها
  • ↳   ماژولها
  • ↳   کامپوننت ها
  • ↳   Polish Forum
  • ↳   Instalacja i aktualizacja
  • ↳   Administracja
  • ↳   Komponenty, moduły, wtyczki
  • ↳   Szablony
  • ↳   Paczta i Podziwiajta
  • ↳   Modyfikacje i własne rozwiązania
  • ↳   Tłumaczenia
  • ↳   FAQ
  • ↳   Tips&Tricks
  • ↳   Dokumentacja
  • ↳   Profesjonalne usługi
  • ↳   Portuguese Forum
  • ↳   Componentes, módulos e mambots
  • ↳   Programação e desenvolvimento
  • ↳   Segurança
  • ↳   Sites dos usuários
  • ↳   Off-topic
  • ↳   Tradução
  • ↳   Templates
  • ↳   Romanian Forum
  • ↳   Traduceri
  • ↳   Russian Forum
  • ↳   Объявления по Joomla!
  • ↳   Безопасность Joomla!
  • ↳   Joomla 4.x — Задайте здесь свой вопрос по поддержке
  • ↳   Joomla 3.x — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 3.x
  • ↳   Установка Joomla! 3.x
  • ↳   Миграция и переход на Joomla! 3.x
  • ↳   Расширения для Joomla! 3.x
  • ↳   Многоязычные веб-сайты на Joomla 3.x
  • ↳   Joomla 2.5 — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 2.5
  • ↳   Установка Joomla! 2.5
  • ↳   Расширения для Joomla! 2.5
  • ↳   Русский язык Joomla! 2.5
  • ↳   Serbian/Montenegrin Forum
  • ↳   Tehnička pitanja
  • ↳   Instalacija i početnička pitanja
  • ↳   Šabloni
  • ↳   Prevod i dokumentacija
  • ↳   Ćaskanje
  • ↳   Bezbednost
  • ↳   Joomla! dodaci
  • ↳   Pravna pitanja
  • ↳   Arhiva
  • ↳   Joomla! Događaji i Zajednica
  • ↳   Izlog (spisak) sajtova radjenih u Joomla! CMS-u
  • ↳   Profesionalne usluge
  • ↳   Slovak Forum
  • ↳   Spanish Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Migración y actualización a Joomla 3.x
  • ↳   Versiones de Joomla! obsoletas
  • ↳   Joomla! 2.5
  • ↳   Joomla! 1.5
  • ↳   Extensiones
  • ↳   Plantillas (templates) y diseño
  • ↳   Idioma y traducciones
  • ↳   SEO para Joomla!
  • ↳   Seguridad y rendimiento
  • ↳   Productos de Código Abierto para Joomla!
  • ↳   Servicios profesionales
  • ↳   Salón de la comunidad Ñ
  • ↳   Swedish Forum
  • ↳   Meddelanden
  • ↳   Forum Joomla! 4.x
  • ↳   Forum Joomla! 3.x
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Äldre versioner
  • ↳   Forum Joomla! 1.0
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och Mambots
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.7 / Joomla! 1.6
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 2.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Översättning
  • ↳   Webbplatser gjorda i Joomla
  • ↳   Webbplatser J! 3.x
  • ↳   Webbplatser J! 2.5
  • ↳   Webbplatser Joomla! 1.7 / Joomla! 1.6
  • ↳   Webbplatser J! 1.5
  • ↳   Webbplatser J! 1.0
  • ↳   Kommersiell hjälp önskas
  • ↳   Diverse (off topic)
  • ↳   Tamil Forum
  • ↳   Thai Forum
  • ↳   โชว์เว็บไซต์ของคุณที่สร้างด้วยจูมล่า
  • ↳   เคล็ดลับการใช้งานส่วนต่างๆ เกี่ยวกับจ&#
  • ↳   คอมโพเน้นท์ โมดูล ปลักอิน ต่างๆ ที่ติดตั
  • ↳   อับเดดข่าวสารเกี่ยวกับจูมล่าลายไทย
  • ↳   Turkish Forum
  • ↳   Duyurular
  • ↳   Dersler
  • ↳   Genel Sorular
  • ↳   Bileşen, Modül, Bot
  • ↳   Eklenti Haberleri
  • ↳   Temalar
  • ↳   Vietnamese Forum
  • ↳   Gặp gỡ và giao lưu
  • ↳   Joomla Tiếng Việt
  • ↳   Cài đặt — Cấu hình
  • ↳   Thành phần mở rộng cho Joomla!
  • ↳   Hỏi đáp Joomla! 3.x
  • ↳   Hỏi đáp Joomla! 2.5
  • ↳   Hỗ trợ kỹ thuật
  • ↳   Bài viết cũ
  • ↳   Thiết kế Template
  • ↳   Joomla! 1.5
  • ↳   Hỏi đáp Joomla! 4.x
  • ↳   Welsh Forum
  • Other Forums
  • ↳   Open Source Products for Joomla!
  • ↳   The Lounge
  • ↳   Forum Post Assistant (FPA)
  • Joomla! Development Forums
  • Joomla! Official Sites & Infrastructure
  • ↳   docs.joomla.org — Feedback/Information
  • ↳   extensions.joomla.org — Feedback/Information
  • ↳   joomla.com — Feedback/Information
  • ↳   Sites & Infrastructure — Feedback/Information
  • ↳   Archived Boards — All boards closed
  • ↳   Design and Accessibility — Archived
  • ↳   Quality and Testing — Locked and Archived
  • ↳   Joomla! 1.0.x_Q&T
  • ↳   Q&T 1.0.x Resolved
  • ↳   Known Issues
  • ↳   Superseded Issues
  • ↳   Archive
  • ↳   Q&T 1.0.x Resolved — Archived
  • ↳   Known Issues — Archive
  • ↳   Superseded Issues — Archive
  • ↳   Joomla! 3.x Bug Reporting
  • ↳   Third Party Testing for Joomla! 1.5
  • ↳   Q&T 1.5.x Resolved
  • ↳   Joomla! 1.5 BETA
  • ↳   Joomla! 1.5 BETA 2
  • ↳   Reaction to the ‘Letter to the community’
  • ↳   Reaction to New Project Name
  • ↳   Logo Competition
  • ↳   Humor, Fun and Games
  • ↳   Libraries
  • ↳   patTemplate
  • ↳   com_connector — Multi Joomla Bridge
  • ↳   CiviCRM Support
  • ↳   CiviCRM Installation Issues
  • ↳   FAQ Archive
  • ↳   FAQ Discussion Board
  • ↳   3rd Party Extensions FAQ
  • ↳   FAQs not moved
  • ↳   3rd Party/Non Joomla! Security FAQ
  • ↳   Joomla! Coding 101
  • ↳   Joombie Tools of the Trade
  • ↳   Joombie Coding Q/A
  • ↳   Joombie Think Tank
  • ↳   Joombie Developer Lab
  • ↳   Joomla Forge — Archived
  • ↳   Non-Profit Organizations and Joomla!
  • ↳   Schools and Universities
  • ↳   Bangsamoro Forum
  • ↳   Joomla! 1.5 Template Contest
  • ↳   SMF — Simplemachines.org Forum
  • ↳   GPL Discussion
  • ↳   Security Announcements — Old
  • ↳   Tips & Tricks — Moving
  • ↳   Submit Your Suggested Tips & Tricks to Docs.joomla.org now please.
  • ↳   Google Summer of Code and GHOP
  • ↳   Google Summer of Code 2008
  • ↳   Proposed projects
  • ↳   Student area
  • ↳   Past Google Summer of Code Editions
  • ↳   Google’s Highly Open Participation Contest
  • ↳   Documentation
  • ↳   Suggestions, Modifications, and Corrections
  • ↳   Archive
  • ↳   1.5 Archive
  • ↳   Suggestions, Modifications & Corrections
  • ↳   Submit
  • ↳   Feedback and Suggestions
  • ↳   Applications for participation in the Development Workgroup
  • ↳   Development
  • ↳   1.5 Site Showcase — Archived
  • ↳   1.0 x Site Showcase — Archived.
  • ↳   Feature Requests — White Papers — Archived
  • ↳   Under Review — Archived
  • ↳   Accepted — Archived
  • ↳   Not Accepted — Archived
  • ↳   Wishlists and Feature Requests — Archive
  • ↳   Wishlist Archives — Archived
  • ↳   Spanish Forum — Archive
  • ↳   Papelera
  • ↳   Tutoriales
  • ↳   General
  • ↳   Salón de la Joomlaesfera hispanohablante
  • ↳   Danish Forum — Archive
  • ↳   Diskussion af Meddelelser + Sikkerhedsmeddelelser + FAQ
  • ↳   Shop.Joomla.org
  • ↳   Joomla! 1.6 RC Support [closed]
  • ↳   Joomla! 1.0 Coding
  • ↳   Core Hacks and Patches
  • ↳   Joomla! 2.5 Beta Support
  • ↳   People.joomla.org — Feedback/Information
  • ↳   Joomla! 1.5 Bug Reporting
  • ↳   Joomla! 1.5 Coding
  • ↳   Joomla! 3 Beta Support
  • ↳   Trending Topics
  • ↳   Help wanted in the community
  • ↳   templates.joomla.org — Feedback/Information
  • ↳   Certification
  • ↳   Albanian Forum
  • ↳   Azeri Forum
  • ↳   Urdu Forum
  • ↳   Basque Forum
  • ↳   Itzulpenaren inguruan
  • ↳   Laguntza teknikoa
  • ↳   Belarusian Forum
  • ↳   Maltese Forum
  • ↳   Hungarian Forum
  • ↳   Slovenian Forum
  • ↳   Japanese Forum
  • ↳   Khmer Forum
  • ↳   ពិពណ៌​ស្ថាន​បណ្ដាញ​ជុំឡា
  • ↳   ជុំឡា​ខ្មែរ​មូលដ្ឋានីយកម្ម
  • ↳   Community Blog Discussions
  • ↳   JoomlaCode.org
  • ↳   Joomla! Marketing and PR Team
  • ↳   resources.joomla.org — Feedback/Information
  • ↳   Training.Joomla.org
  • ↳   OpenSourceMatters.org
  • ↳   magazine.joomla.org — Feedback/Information
  • ↳   Site Showcase
  • ↳   Joomla! 4 Related
  • ↳   Joomla! Events
  • ↳   Joomla! Ideas Forum
  • ↳   Registered Joomla! User Groups
  • ↳   Joomla! 2.5 Coding
  • ↳   Joomla! 2.5 Bug Reporting
  • ↳   User eXperience (UX)
  • ↳   Joomla! Working Groups
  • ↳   Translations

Instead of using the brackets, use the object operator. For example, my array based on a database object is created like this in a class called DB:

class DB {

    private static $_instance = null;

    private $_pdo,
            $_query,
            $_error = false,
            $_results,
            $_count = 0;

    private function __construct() {
        try {
            $this->_pdo = new PDO('mysql:host=' . Config::get('mysql/host') . ';dbname=' . Config::get('mysql/db'), Config::get('mysql/username'), Config::get('mysql/password'));
        }
        catch(PDOException $e) {
            $this->_error = true;
            $newsMessage = 'Sorry.  Database is off line';
            $pagetitle = 'Teknikal Tim - Database Error';
            $pagedescription = 'Teknikal Tim Database Error page';
            include_once 'dbdown.html.php';
            exit;
        }
        $headerinc = 'header.html.php';
    }

    public static function getInstance() {
        if(!isset(self::$_instance)) {
            self::$_instance = new DB();
        }
        return self::$_instance;
    }

    public function query($sql, $params = array()) {
        $this->_error = false;
        if($this->_query = $this->_pdo->prepare($sql)) {
            $x = 1;
            if(count($params)) {
                foreach($params as $param) {
                    $this->_query->bindValue($x, $param);
                    $x++;
                }
            }
        }

        if($this->_query->execute()) {

            $this->_results = $this->_query->fetchAll(PDO::FETCH_OBJ);
            $this->_count = $this->_query->rowCount();
        }
        else {
            $this->_error = true;
        }

        return $this;
    }

    public function action($action, $table, $where = array()) {
        if(count($where) === 3) {
            $operators = array('=', '>', '<', '>=', '<=');

            $field    = $where[0];
            $operator = $where[1];
            $value    = $where[2];

            if(in_array($operator, $operators)) {
                $sql = "{$action} FROM {$table} WHERE {$field} = ?";

                if(!$this->query($sql, array($value))->error()) {
                    return $this;
                }
            }
        }
        return false;
    }

    public function get($table, $where) {
        return $this->action('SELECT *', $table, $where);

    public function results() {
        return $this->_results;
    }

    public function first() {
        return $this->_results[0];
    }

    public function count() {
        return $this->_count;
    }

}

To access the information, I use this code on the controller script:

<?php
    $pagetitle = 'Teknikal Tim - Service Call Reservation';
    $pagedescription = 'Teknikal Tim Sevice Call Reservation Page';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/core/init.php';
    $newsMessage = 'temp message';

    $servicecallsdb = DB::getInstance()->get('tt_service_calls', array('UserID', '=', '$_SESSION['UserID']));

    if(!$servicecallsdb) {
        //$servicecalls[] = array('ID'=>'', 'ServiceCallDescription'=>'No Service Calls');
    } else {
        $servicecalls = $servicecallsdb->results();
    }
    include 'servicecalls.html.php';
?>

Then to display the information. I check to see if servicecalls has been set and has a count greater than 0. Remember it’s not an array I am referencing, so I access the records with the object operator «->» like this:

<?php include $_SERVER['DOCUMENT_ROOT'] . '/includes/header.html.php';?>

<!-- Main content -->
<div id="mainholder"> <!-- div so that page footer can have a minimum
                           height from the header -->
<h1><?php if(isset($pagetitle)) htmlout($pagetitle);?></h1>
<br>
<br>
<article>
    <h2></h2>
</article>

<?php
    if (isset($servicecalls)) {
        if (count ($servicecalls) > 0) {
             foreach ($servicecalls as $servicecall) {
                echo '<a href="/servicecalls/?servicecall=' .
                     $servicecall->ID . '">' .
                     $servicecall->ServiceCallDescription .'</a>';
            }
        }
        else
            echo 'No service Calls';
    }
?>

<a href="/servicecalls/?new=true">Raise New Service Call</a>
</div> <!-- Main content end -->

<?php include $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.html.php'; ?>

Steps to reproduce the issue

I try to create a new menu item or edit a new one

Expected result

Creation form of a new item / Editing form of old items

Actual result

Error: «0 Cannot use object of type stdClass as array»

System information (as much as possible)

PHP Built On Linux es1.siteground.eu 3.12.18-clouder0 #16 SMP Wed Feb 14 15:05:16 EET 2018 x86_64
Database Type mysql
Database Version 5.6.36-82.1-log
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.2.5
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.8.10 Stable [ Amani ] 26-June-2018 15:45 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Additional comments

I have this issue after updating from Joomla! 3.8.8 to Joomla! 3.8.9, still having issue on Joomla! 3.8.10

Fatal error: Cannot use object of type stdClass as array in dministrator/components/com_menus/models/item.php on line 548

Lines #546-#550:

// Get selected fields
$filters = JFactory::getApplication()->getUserState('com_menus.items.filter');
$data['published'] = (isset($filters['published']) ? $filters['published'] : null);
$data['language'] = (isset($filters['language']) ? $filters['language'] : null);
$data['access'] = (isset($filters['access']) ? $filters['access'] : null);

Error occurred while creating a new menu item in Menu Manager.

The Menu Manager works fine until upgrading from Joomla 3.4.1 to 3.5.1.

asked Apr 21, 2016 at 12:35

Neo's user avatar

1

Ensure your extensions are running the latest versions.

You can also search for uses of

JFilterInput::clean(SOMETEXT);

and replace it with:

$filter = new JFilterInput;
$filter->clean(SOMETEXT);

Check this : https://docs.joomla.org/J3.x:Fatal_Error_in_Input_Filtering/en

answered Apr 21, 2016 at 12:42

Niklesh Raut's user avatar

Niklesh RautNiklesh Raut

33.8k16 gold badges75 silver badges109 bronze badges

As $filters is an object with properties, not an array with elements; so you need to use object syntax to access those properties:

$data['published'] = (isset($filters->published) ? $filters->published : null);
$data['language'] = (isset($filters->language) ? $filters->language : null);
$data['access'] = (isset($filters->access) ? $filters->access : null);

answered Apr 21, 2016 at 12:43

Mark Baker's user avatar

Mark BakerMark Baker

209k32 gold badges342 silver badges384 bronze badges

Thanks a lot for the pointers, Mark and Rishi.

I solved the problem by downloading the full Joomla 3.5.1 package and replace the entire administrator/components/com_menus directory, and it works now!

I suspect there are some files missing during the 3.4.1->3.5.1 update process (using the Joomla Update Manager). I would recommend doing manual upgrade to avoid unexpected or unwanted situations.

answered Apr 22, 2016 at 4:38

Neo's user avatar

  • Ошибка jenkins при запуске 1с
  • Ошибка jeep grand cherokee wj p0420
  • Ошибка jeep grand cherokee p0456
  • Ошибка jcb l 071
  • Ошибка jcb 220 p0380