The following warnings occurred: | |||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Page properties must have correct type (e.g. string) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7) +--- Thread: Page properties must have correct type (e.g. string) (/showthread.php?tid=2075) |
Page properties must have correct type (e.g. string) - mvlcek - 2011-08-19 Some important global variables like $url are not strings, but XML node objects. Thus e.g. the following does not work, because the node is not converted to a string (automatically): Code: <?php get_component(return_page_slug()); ?> The convertion has to be done explicitly: Code: <?php get_component((string) return_page_slug()); ?> Preferably the global variables should already have the correct type, but at least the access functions like return_page_slug must return the correct type. |