The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
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()); ?>
(display the component with the same name as the page)

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.