Page 1 of 1

Conflict with phpbb 3 last topics module

Posted: 17 Mar 2009, 23:44
by Ewinz87
Hello there!

I'd like to thanks Jan for your amazing work before going through my problem, I started using Joomla and I'm now using a couple of your extensions and they're working very nicely! Keep up the good work, it's much appreciated! :wink:

I'm experiencing a conflict (I beleive) problem with another module. I'm not sure which one conflict with the other so I figured I post here since my problem is with Phoca Gallery when the other is enabled. The other module it appears to be conflicting with is phpbb 3 last topics module. When this plugin is enabled and I try to access the gallery from a main menu link, I get a blank page. I turned error reporting to find what was the error and this came up:
Fatal error: Class 'JDate' not found in /var/www/html/modules/mod_phpbb3_last_topics/tmpl/default.php on line 38
Please note this problem disappear when I turn off phpbb 3 last topics module. I tried opening the above file to try and figure the problem but I can't seem to understand. Anyway, bellow are lines 37, 38 and 39 of the file that seems to conflict, not sure if it's of any help:

Code: Select all

//		$date = new JDate ($item->post_time);
		$date = new JDate ($item->post_time); //thanks to Fleiva 
		$post_time = $date->toFormat($formatdate);
I tried searching on google and on the forum for solutions without success. Hope someone can help me figure out the problem and fix it. Thanks again, and have a nice day!

-Alex

Re: Conflict with phpbb 3 last topics module

Posted: 18 Mar 2009, 00:34
by Ewinz87
Fixed it, sorry about that!

Changed line 38:

Code: Select all

		$date = new JDate ($item->post_time);
to

Code: Select all

		$date = & JFactory:: getDate ($item->post_time);
And it worked.

Re: Conflict with phpbb 3 last topics module

Posted: 23 Mar 2009, 18:02
by Jan
Ok