• Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Core
  • Assigned To
    Ortwin Pinke
  • Operating System
  • Severity Critical
  • Priority Very High
  • Reported Version Contenido 4.8.16 CL beta
  • Due in Version ConLite 1.0
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: ConLite
Opened by Ortwin Pinke - 11.04.2012
Last edited by 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

Closed by  Ortwin Pinke
18.04.2012 17:45
Reason for closing:  Fixed
Additional comments about closing:  

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 commented on 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.


Available keyboard shortcuts


Task Details

Task Editing