PHP Fatal error: Uncaught exception 'cInvalidArgumentException' with message 'Object ID must be greater than 0.'

Fragen zur Installation von CONTENIDO 4.9? Probleme bei der Konfiguration? Hinweise oder Fragen zur Entwicklung des Systemes oder zur Sicherheit?
Antworten
lunsen_de
Beiträge: 297
Registriert: Mo 17. Okt 2005, 20:26
Wohnort: Weimar
Kontaktdaten:

PHP Fatal error: Uncaught exception 'cInvalidArgumentException' with message 'Object ID must be greater than 0.'

Beitrag von lunsen_de » Di 1. Aug 2017, 13:25

Hallo, habe plötzlich im Errorlog folgende Fehlermeldung (mehrfach):

Code: Alles auswählen

[01-Aug-2017 13:47:25 Europe/Berlin] PHP Warning:  cSmartyFrontend __construct Parameter 2 invalid. in /var/www/vhosts/web/httpdocs/2017/contenido/includes/functions.general.php on line 1428
[01-Aug-2017 13:47:25 Europe/Berlin] PHP Fatal error:  Uncaught exception 'cInvalidArgumentException' with message 'Object ID must be greater than 0.' in /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.registry.php:572
Stack trace:
#0 /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.registry.php(166): cRegistry::_fetchItemObject('cApiLanguage', 0)
#1 /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.i18n.php(117): cRegistry::getLanguage()
#2 /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.i18n.php(83): cI18n::translate('pifa_show_form', 'form_assistant')
#3 /var/www/vhosts/web/httpdocs/2017/contenido/includes/functions.i18n.php(48): cI18n::__('pifa_show_form', 'form_assistant')
#4 /var/www/vhosts/web/httpdocs/2017/contenido/plugins/form_assistant/includes/config.plugin.php(86): i18n('pifa_show_form', 'form_assistant')
#5 /var/www/vhosts/web/httpdocs/2017/contenido/plugins/form_assistant/includes/config.plugin.php(387): Pifa::i18n('pifa_show_form')
#6 /var/www/vhosts/web/httpdocs/2017/con in /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.registry.php on line 572
[01-Aug-2017 14:05:02 Europe/Berlin] PHP Fatal error:  Call to a member function generate() on null in /var/www/vhosts/web/httpdocs/2017/contenido/includes/include.con_editcontent.php(523) : eval()'d code on line 312
Ich kann es derzeit nicht reproduzieren.

Kann jemand mit dem Fehler etwas anfangen?

PS: folgdende plötzlich auch noch:

Code: Alles auswählen

  thrown in /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.i18n.php on line 105
[01-Aug-2017 13:44:50 Europe/Berlin] PHP Fatal error:  Uncaught exception 'cException' with message 'init $belang is not set' in /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.i18n.php:105
Stack trace:
#0 /var/www/vhosts/web/httpdocs/2017/contenido/classes/class.i18n.php(83): cI18n::translate('Freeze article', 'contenido')
#1 /var/www/vhosts/web/httpdocs/2017/contenido/includes/functions.i18n.php(48): cI18n::__('Freeze article', 'contenido')
#2 /var/www/vhosts/web/httpdocs/2017/data/config/production/cfg_actions.inc.php(22): i18n('Freeze article')
#3 /var/www/vhosts/web/httpdocs/2017/contenido/logout.php(29): require_once('/var/www/vhosts...')
#4 {main}
Gruß lunsen_de

rethus
Beiträge: 1851
Registriert: Di 28. Mär 2006, 11:55
Wohnort: Mönchengladbach
Kontaktdaten:

Re: PHP Fatal error: Uncaught exception 'cInvalidArgumentException' with message 'Object ID must be greater than 0.'

Beitrag von rethus » Mi 2. Aug 2017, 16:16

Beides ein Problem mit der Sprach-ID.
Oben im ersten Posting siehst du im Backtrace, das die Lang-ID scheinbar unterwegs verloren gegangen ist:

cRegistry::_fetchItemObject('cApiLanguage', 0)

In deinem zweiten Snippet ist auch $belang und i18n betroffen (beides hängt mit der Sprache zusammen.

Hier müsstest du wohl oder übel in den Sourcecode und herausfinden, warum deine Sprach-ID's dort verloren gehen. Der Backtrace zeigt dir ja genau den Pfad, der den Fehler erzeugt hat.
Could I help you... you can help me... buy me a coffee . (vielen ❤ Dank an: Seelauer, Peanut, fauxxami )

xstable.com: - HighSpeed Hosting, Domains, DomainReselling, Linux-Administration
suther.de: - App-Programierung, High-Performance-Webpages, MicroServices, API-Anbindungen & Erstellung

Software... ein Blick wert: GoogleCalender Eventlist, xst_dynamic_contentType

lunsen_de
Beiträge: 297
Registriert: Mo 17. Okt 2005, 20:26
Wohnort: Weimar
Kontaktdaten:

Re: PHP Fatal error: Uncaught exception 'cInvalidArgumentException' with message 'Object ID must be greater than 0.'

Beitrag von lunsen_de » Do 3. Aug 2017, 12:31

Hallo,

ok, dass die Sprache verloren geht habe ich verstanden.

Allerdings habe ich keine Ahnung wo ich jetzt ansetzen soll. Ist das ein Fehler in einem Modul, eine fehlerhafte Einstellung oder ein Bug im System?

Gruß lunsen_de

Antworten