• Status geschlossen
  • Prozent erledigt
  • Aufgabentyp Bug Report
  • Kategorie Core
  • zuständig
    Ortwin Pinke
  • Betriebssystem
  • Schweregrad kritisch
  • Dringlichkeit sofort
  • betrifft Version Contenido 4.8.16 CL beta
  • fällig in Version ConLite 1.0
  • fällig am unbestimmt
  • Stimmen
  • versteckt
gehört zu Projekt: ConLite
angelegt von Ortwin Pinke - 11.04.2012
zuletzt bearbeitet von Ortwin Pinke - 18.04.2012

FS#20 - genericdb: urlencode() expects parameter 1 to be string, array given

I’ll get an error while using the modul nivoslider.

[11-Apr-2012 11:56:46] PHP Warning: urlencode() expects parameter 1 to be string, array given in C:\xampp\htdocs\xxx\contenido\classes\class.genericdb.php on line 1936

[11-Apr-2012 11:56:46] PHP Stack trace:

[11-Apr-2012 11:56:46] PHP 1. {main}() C:\xampp\htdocs\xxx\cms\front_content.php:0

[11-Apr-2012 11:56:46] PHP 2. eval() C:\xampp\htdocs\xxx\cms\front_content.php:928

[11-Apr-2012 11:56:46] PHP 3. ModuleMpNivoSliderOutput→generateOutput() C:\xampp\htdocs\xxx\cms\front_content.php(928) : eval()’d code:420

[11-Apr-2012 11:56:46] PHP 4. ModuleMpNivoSliderOutput→_getImages() C:\xampp\htdocs\xxx\cms\includes\class.module.mpnivoslider.output.php:211

[11-Apr-2012 11:56:46] PHP 5. ItemCollection→next() C:\xampp\htdocs\xxx\cms\includes\class.module.mpnivoslider.output.php:435

[11-Apr-2012 11:56:46] PHP 6. UploadMetaCollection→loadItem() C:\xampp\htdocs\xxx\contenido\classes\class.genericdb.php:1310

[11-Apr-2012 11:56:46] PHP 7. Item→loadByPrimaryKey() C:\xampp\htdocs\xxx\cms\includes\class.uploadmeta.php:75

[11-Apr-2012 11:56:46] PHP 8. Item→loadBy() C:\xampp\htdocs\xxx\contenido\classes\class.genericdb.php:1670

[11-Apr-2012 11:56:46] PHP 9. Item→_inFilter() C:\xampp\htdocs\xxx\contenido\classes\class.genericdb.php:1624

[11-Apr-2012 11:56:46] PHP 10. urlencode() C:\xampp\htdocs\xxx\contenido\classes\class.genericdb.php:1936

geschlossen von  Ortwin Pinke
18.04.2012 17:45
Grund für das Schließen:  Fixed
Kommentar zum Schließen:  

Adapted genericdb from contenido svn. Error seems to be fixed. please reopen if u get this error or make a new ticket.

Project Manager
Ortwin Pinke schrieb am 11.04.2012 13:21

Ok, i checked that out and there was no check for is_string or is another object when in- and out-filters are used. We have to have a look over that again, maybe there ist something wrong with that item stuff in genericdb. In methods Loadbyxxx sometimes there is a string given, sometimes there is an array.
I added check for string at some points, but that seems only to be a workaround, not really a fix. Maybe some more investigation is needed.


Verfügbare Tastenkürzel