Welcome, Guest
Please Login or Register.    Lost Password?

Grid Fatal Error
(1 viewing) (1) Guest
This is the optional Forum header for the Suggestion Box.
Go to bottomPage: 12
TOPIC: Grid Fatal Error
#546
Grid Fatal Error 3 Months, 1 Week ago Karma: 0
After creating my first grid I tried to use it within an article, but the result was: "Fatal error: Call to undefined method JException:: setQuery () in C:\ wamp\www\components\com_grid\GridBuilder.php on line 337"; the same error also gets in preview of grid.
My OS is Win 7 64 Bit and I'm using WampServer 2.0 (Apache 2.2.11, PHP 5.3.0 and MySQL 5.1.36) with Joomla! 1.5.17. The grid that I created is very simple: use a table of MySQL database on localhost.
Any suggestions?
Thank you for your help.

AlfM
AlfM
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/02 10:08 By AlfM.
The administrator has disabled public write access.
 
#547
Re:Grid Fatal Error 3 Months, 1 Week ago Karma: 0
For complete description of the problem, where the database used for the grid is the same as Joomla!, everything works fine, but does not work if the database is different, which unfortunately is the case of my personal interest.
Thank you for your cooperation
AlfM
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#549
Re:Grid Fatal Error 3 Months, 1 Week ago Karma: 1
Hi,

if I understand:

Now you can display grid with no problem if the database is the same as joomla's. As soon as you connect to another mySQL database, you receive error.

Well, we are using not only another mySQL but also another DB type like Oracle or MS_SQL (locally or remotely) and we dont't get such error. As you can see, e.g. Customer Area uses "download table" and displays a table from completly another mysql database. Then on demo page we have grid Products. This table is not in joomla's database, it is in another, called Northwind.

We are investigating what can cause the problem, if it is in joomla setting or something else.

Best regards,
Viljem
viljem
Admin
Posts: 153
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#552
Re:Grid Fatal Error 3 Months, 1 Week ago Karma: 0
Viljem, thanks for your answer. I have no doubt that Table JX works fine with different types of DB: I am sure that the problem is an error in the configuration of my server, and I would be grateful if you can give some indication to identify the problem.
Best regards
AlfM
AlfM
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/03 14:03 By AlfM.
The administrator has disabled public write access.
 
#553
Re:Grid Fatal Error 3 Months, 1 Week ago Karma: 0
Viljem, it seems that the problem was because I used the root user without password.
I created a new user with password and, using this new user to connect to the database in the grid, the report works properly. Is possible that the behavior of Grid whith users without password is not correct?
Best Regards
AlfM
AlfM
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#665
Re:Grid Fatal Error 1 Month, 2 Weeks ago Karma: 0
I am having the same issue when trying to connect to a different mysql database on the same server.

Fatal error: Call to undefined method JException::setQuery() in components/com_grid/GridBuilder.php on line 337
cspitteler
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting