Support ⇒ Dragonfly CMS v10 ⇒ Content module blank ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

Content module blank Reply to topic


I haven't noticed this, because the block is working fine and I usually access pages that way.
But when I load the Content module directly, I just get a blank page.

I see this error in the logs:

PHP Warning includes/poodle/sql/adapter/mysqli.php line 360: mysqli_result::data_seek() expects parameter 1 to be long, string given

When you load the module directly, this is the only query that gets done:

else { $cat = new \Dragonfly\Modules\Content\Category(0); $K = \Dragonfly::getKernel(); $K->OUT->content_categories = $K->SQL->query("SELECT * FROM {$K->SQL->TBL->pages_categories}"); $K->OUT->content_pages = $cat->pages(); $K->OUT->display('Content/index'); }

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

Last edited by hybrid on Mon Apr 30, 2018 8:33 am; edited 1 time in total


PHP 7.2?
If so, this is correct.

./includes/dragonfly/sql/sql.php:174
public function data_seek($result, $rownum) { return $result->data_seek((int)$rownum); }

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


No, PHP 5.6

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Found! and solved Wink

Problem was caused by a speed fix in template system.
Old: first check if method exists. else offsetExists
New: first check offsetExists, else if method exists
The new way discovered a bug in the SQL Result class where offsetExists() didn't check for numeric Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Sun May 06, 2018 4:34 pm; edited 1 time in total

All times are UTC


Jump to: