Adam Posted October 9, 2014 Share Posted October 9, 2014 This is the first time I have ever had a problem with processwire and I have no clue whats wrong.I have a processwire site and a phpbb forum, I want to get the items from the menu on the processwire site and show them in the phpbb forum, I have got up to the part where I include the php file into my phpbb template.The php file itself works fine, but when I include it nothing works.I get this error in my processwire log file Call to undefined method template::getTableData() (line 106 of (path-removed)\wire\core\WireSaveableItems.php) And the forum will stop in it's tracks as soon as that include is called, so I get the header and then it stops. The php file contains the following <?php include '../index.php'; $homepage = wire('pages')->get('/'); $children = $homepage->children; foreach($children as $child) { echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; } ?> My only guess is the two are conflicting.Is the any way of fixing this or will I have to manually update the menu when we add new stuff to the pw site.Thanks Adam Link to comment Share on other sites More sharing options...
kongondo Posted October 10, 2014 Share Posted October 10, 2014 Does this help? https://processwire.com/talk/topic/1213-included-in-another-script/ See the bit about paths... Link to comment Share on other sites More sharing options...
Adam Posted October 10, 2014 Author Share Posted October 10, 2014 It's not a problem with the paths I don't think.I have tried absolute and relative paths and they both work fine until I add the include to my template in phpbbit's loading the index.php file correctly it's just not working right when included. Link to comment Share on other sites More sharing options...
doolak Posted July 19, 2015 Share Posted July 19, 2015 Did you find any solution for this problem? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now