The Joomla! Forum ™





Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Oct 13, 2006 9:45 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 558
Location: Gogledd Cymru
The fact that you have the same hosting company sound rather suspicious!!

What Joomfish does is to replace the global Joomla DB connection with a new one that can support the tranlsation code - its this replacing that's failing.  But there is no reason why it should that I can think of (and the fact that 99.9% of users have no problems would support this hypothesis).

I'll have another think next week.

Geraint


Top
 Profile  
 
PostPosted: Fri Oct 13, 2006 11:08 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 28, 2006 3:43 pm
Posts: 7
I agree,

btw, it seems that we are not the only two to have some problems with joomfish and OVH hosting.

the only strange thing is that when benske modifyed the php function as you said, it solved his problem.

waiting for your feedback next week and really really appreciate your help and your time


Top
 Profile  
 
PostPosted: Sat Oct 14, 2006 9:48 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 558
Location: Gogledd Cymru
I had a thought this morning so had to let you try it out...

remove altogether (or comment it out) the line

@mysql_close($database->_resource);   

and go to

includes\database.php and at line 82 change

if (!($this->_resource = @mysql_connect( $host, $user, $pass, true ))) {

to

if (!($this->_resource = @mysql_connect( $host, $user, $pass, false ))) {

This should force your database connection to be reused.


Top
 Profile  
 
PostPosted: Sat Oct 14, 2006 11:11 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 28, 2006 3:43 pm
Posts: 7
Well, I recommend you to work especially in the morning because you have some really great thoughts in the morning !!!

It seems to work perfectly now !! I've also enabled the joomla caching, I don't know if that had any impact.

Thank you !!

Hope this post will be a great help for everyone using OVH Hosting !!!


Top
 Profile  
 
PostPosted: Wed Nov 07, 2007 9:31 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Sep 24, 2006 8:39 pm
Posts: 1
Geraint wrote:
I had a thought this morning so had to let you try it out...

remove altogether (or comment it out) the line

@mysql_close($database->_resource);   

and go to

includes\database.php and at line 82 change

if (!($this->_resource = @mysql_connect( $host, $user, $pass, true ))) {

to

if (!($this->_resource = @mysql_connect( $host, $user, $pass, false ))) {

This should force your database connection to be reused.


The same thing for me!
Thanks a lot this fixed my problem.
My site www.creadex.eu is also hosted on OVH (France)
The error message was:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in ... includes/database.php on line 289
and was displayed on the page which was very ennoying.


Top
 Profile  
 
PostPosted: Tue Feb 26, 2008 9:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat May 19, 2007 8:05 am
Posts: 11
Hello,
I tried to modified the bot but I now have the following message:
Fatal error: Call to undefined function: () in /home.10.16/petitcit/www/mambots/system/jfdatabase.systembot.php on line 54

and in line 54 I have: global $database; // *********** NEW LINE
I don't know what to do next. Who could help me?
Thank you !
Perrine


Top
 Profile  
 
PostPosted: Wed Apr 14, 2010 6:32 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Apr 14, 2010 6:27 am
Posts: 1
Hey. I stumbled across this thread whilst having this problem as well.

The error messages were showing up in my main menu module. The solution I found was to enable the cache on the main menu which is where my error messages were showing up.

Jeff


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group