Recently i've been getting this error with Drupal and the PHPBBForum module when i installed the SEO Premod so that i could get decent sitemaps for google.

Fatal error: Call to a member function set_user_url() on a non-object in /home/content/u/l/g/ulgrim/html/forum/includes/functions_content.php on line 1208

It seems these errors happen with Joomla and PHPBB3 as well. Not sure if it will help anyone but I only get this error when specific blocks of PHPBB3Forum are enabled in Drupal. Namely:
phpBBforum: New forum topics
phpBBforum: New forum posts

If anyone else is having the issue just dont enable those and you'll be fine.
If anyone has something that will help me out with this though so that i can get those useful blocks back i'd appreciate it. Maybe i've missed steps somewhere with something. Maybe it's just not compatible now after putting the premod on. I don't know.

Cheers guys,

Comments

Melkon’s picture

The issue occures because the phpbbforum module is not creating an object of the phpbbseo class.

I fixed this for myself months ago but currently i do not have any drupal-projects, so i am not really following the development of this module and it changed a lot.

What I did for myself was:
creating an object of $phpbb_seo in the phpbb_api.php file and adding the variable to the list of globals at the beginning of this file. maybe this workaround will help you as well.

superfedya’s picture

same error. any fix?

vb’s picture

I will try to add the support of the phpBB SEO Premod in the next release for 3.0.6

superfedya’s picture

Beta 8 works fine, exept links in the block.

www.madfanboy.com/site/home2/madfanbo/public_html/forum/viewtopic.php?f=...

But must be:
www.madfanboy.com/forum/viewtopic.php?f=5&t=475

/home2/madfanbo/public_html/forum/ is a path to my forum.

sreyas’s picture

Hi,

I also got this error at the beginning. but once i updated the phpbbforum settings in drupal admin section as relative path( earlier it was absolute path)

that is i changed it like below

/home/user/public_html/forums -> forums
/home/user/public_html/sites/all/modules/phpbbforum/includes -> sites/all/modules/phpbbforum

Then this error was corrected. Please give it a try at your end also.

Regards
Sreyas

fizk’s picture

Category: bug » feature
Status: Needs work » Closed (won't fix)