Support ⇒ Dragonfly CMS v10 ⇒ Error in content module ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

Error in content module Reply to topic


I think that there is an error in the code of content module:
Line 59 (modules/Content/functions/categories.inc):
// Retrieve content categories.
$result = $db->sql_query("SELECT cid, title, description FROM {$prefix}_pages_categories{$suffix}
WHERE parentcid={$parent}

I think that must be:

$result = $db->sql_query("SELECT cid, title, description FROM {$prefix}_pages_categories{$suffix}
WHERE cid={$parent}

"parentcid" field doesn't exists in pages_categories table.

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2

Last edited by Aforo on Mon Jun 11, 2018 7:02 pm; edited 2 times in total


v10 Content module has no /functions/categories.inc are you sure you have the right module?

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


DJ Maze wrote
v10 Content module has no /functions/categories.inc are you sure you have the right module?


I was using a module not compatible. Sorry.

Aforo - Google Earth - WebNaranja - DFcms.es

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Centos 5/Apache 2.2.3/MySQL:5.0.45/PHP:5.2.10 /9.2

All times are UTC


Jump to: