Welcome, Guest
Please Login or Register.    Lost Password?

Error on \displaygrid.php on line 103
(1 viewing) (1) Guest
Welcome to the ToolsJX forum!


Go to bottomPage: 1
TOPIC: Error on \displaygrid.php on line 103
#467
Error on \displaygrid.php on line 103 4 Months ago Karma: 0
HI, I'm having this error when I pick to the menu that goes to my article that has a grid inside...

Call to a member function build() on a non-object in /....../...../.../.../plugins/content/displaygrid.php on line 103

some suggestions?

so, In my local copy too, there appear so may errors. using easyPHP 5.2.1.0

Thanks!
A.
Dimavj
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#477
Re:Error on \displaygrid.php on line 103 4 Months ago Karma: 1
Hi,

Does the problem occur only in this case? Does it work if you just insert a gird in a front page article?

Try adding this code before switch (line 99) in plugins/content/displaygrid.php
Code:

$builder = new stdClass();
tomaz
Expert Boarder
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#488
Re: Error on \displaygrid.php on line 103 4 Months ago Karma: 0
WOOPs,
I had an error in my code, probably because a previous modification, so in the switch there were the two cases commented... Sorry now it's completely ok (I guess...)

it was like that...
Code:

 switch($config->typejx){
//case 'grid':$builder = new GridView($id, &$config);break;
//case 'card':$builder = new CardView($id, &$config);
}
            return $builder->build();
        } 



Thanks!

A.
Dimavj
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting