[cBB Blockgets 1.0.3] Fatal error


no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 8:38 am • via Web
Hi!

I installed phpBB-Knowledgebase Mod and when I click on my Classifieds Mod I get this error:


Fatal error: Call to a member function assign_var() on a non-object in /.../public_html/forum/blockgets/blockgets.php on line 687

On that line is:
Code: Select all
      $template->assign_var('S_BLG_HEADER', implode("\n", $result));


What is this and what to do to fix it?

EDIT: well, not sure if it has anything to do with phpbb-knowledgebase mod. In the meantime some of my ads expired in the Classifieds mod. Ads shows up on index_body too.
User avatar
IvanPF
Administrator
 
Posts: 2028
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Mar 18, 2013 11:43 am • via Web
I have reviewed cBB Blockgets files and that error is not produced directly by the mod.
I'll try to test the phpBB Knowledgebase mod to find the problem.
User avatar
IvanPF
Administrator
 
Posts: 2028
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Mar 18, 2013 12:36 pm • via Web
I've installed Classifieds Mod, phpBB-KnowledgeBase Mod and cBB Blockgets in the same forum and I have not had any error.

Have you made any changes to the file blockgets.php?
You can get the link to the page where the error is generated?
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 12:38 pm • via Android
I'm using phpbb-Knowledgebase Mod version 1.0.7 from Pertneer.

Maybe Classifieds mod cause the problem?!
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 12:43 pm • via Android
I haven't change blockgets! But did change html files of KB mod.

I'm not by the computer now. Will send it to you by half an hour, because I've disabled Classifieds mod now.
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 1:39 pm • via Web
Here it is: http://forum.mladiucitelj.si/oglasnik/index.php

And here is the KB mod on my site: http://forum.mladiucitelj.si/kb.php

I can upload the backup before KB mod to see if it works fine. But I'll wait for your response first.

Oh, I've added some code to viewonline for Classifieds mod too and change buysell folder for same mod to my choosen name.

It's really funny, because I haven't edited any of the blockgets files.
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 2:29 pm • via Web
Another thing!

A cannot access the main page of Classifieds, but I can see a single add, for example (this one just expires): http://forum.mladiucitelj.si/oglasnik/s ... p?ad_id=12
User avatar
IvanPF
Administrator
 
Posts: 2028
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Mon Mar 18, 2013 3:09 pm • via Web
It is very strange that this error only appears on this page.
What pages have you added in cBB Blockgets?

It is unlikely that the error is this, but anyway, check that it exists in the /blockgets/blockgets.php file:
Code: Select all
   function build_header()
   {
      global $template, $config;
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 3:15 pm • via Web
Yes, it is in blockgets.php file.

I have User Blog Mod (for a long time), MChat - OH! Look here where mchat is (at the bottom): http://forum.mladiucitelj.si/index.php

It used to have borders, but now they are not here. But I'm really not sure if this is after the intallation of KB, but think it was ok before.

What can I do? You think I install something incorrectly? I can use backup before installing KB to see if error persist.
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Mar 18, 2013 3:18 pm • via Web
Now I've somehow published one add again and look at the forum index page. It just doesn't look right and I'm sure it was working fine before installing KB. But what has this to do with Blockgets?
Last edited by mladiucitelj on Mon Mar 18, 2013 3:20 pm, edited 1 time in total.
Next

Who is online

Users browsing this forum: No registered users and 0 guests