Jump to content

Bootstraping with phpbb = Call to undefined method template::getTableData()


Adam
 Share

Recommended Posts

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

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 phpbb

it's loading the index.php file correctly it's just not working right when included.

Link to comment
Share on other sites

  • 9 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...