Jump to content

Recommended Posts

Posted

Hello,

I just came into the family and I have a question. all of my stuff was cpaneled over by the techs, what a pleasure!

 

But when I tried to connect on osticket, I got this error:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/xxxxxx/tickets/class.ticket.php on line 303

 

I looked in the file and it said:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/xxxxx/tickets/class.ticket.php on line 303

function time_convert($mysql_timestamp) {

global $config;

$t = mysql_fetch_array(mysql_query("SELECT UNIX_TIMESTAMP($mysql_timestamp) AS timestamp"));

$t[timestamp] += ($config[timezone] * 3600);

return $t[timestamp];

 

 

Does anyone know what might be the issue. Is there some componenet misssing on mysql on these servers that don't like the timestamp thing? Cause this did work fine on the last host I was on.

and I configured my paths and etc no issue there, able to run other programs etc.

 

Thanks much for any help.

Guest tohaet
Posted

Could be that the value being passed into that function isn't correct and so causes a bad query, it's not necessarily anything wrong with the database.

 

That function has no error handling, which makes it difficult to determine the problem, wonder why its using the Database server to do the casting too, seems like a waste.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...