Jump to content

Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin


Recommended Posts

Posted (edited)

Hi, normally we have this errors in log file, how i can fix it?

thanks!

  Reveal hidden contents
Edited by ARV187
  • 3 months later...
Posted (edited)

I still have same problem

=====
Time: 06.30.13 14:18:55
=====
Time: 06.30.13 14:18:55
Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > PilotData::updatePilotStats > PIREPAdmin->edit_pirep_post > PIREPAdmin->post_action > PIREPAdmin->viewpending > call_user_func_array > MainController::RunAllActions
Query: UPDATE phpvms_pilots SET `totalhours`=0, `totalflights`=0 WHERE `pilotid`=
Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
=====


=====

Edited by ARV187
  • Administrators
Posted

What version is this site running on?

Do you get any on screen errors when you are using the "PIREPAdmin" section of the admin side?

I see two errors that should point you in a general direction:

1 - ( WHERE `pilotid`= ) looks as though you have PIREPS without a pilot id possibly coming from an ACARS program? You need to look in the database and see if there are pilot id's recorded in all of them or possibly the core file is corrupted.

2 - Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'

Error: (2006) - MySQL server has gone away

This could be either that the script is hanging up and leaving the connection to the sql server open which gets closed after a period of inactivity, or the sql server has more connections than it can handle. In the first case, look at the data your are trying to pull from the database, is it there? Is it something it shouldnt be? Is the field missing entirely? In the second case, it is an issue with the host.

Have you reloaded the install folder and run the checkinstall function? Did it show any corrupt files?

Posted
  On 7/1/2013 at 1:16 PM, itrobb said:

Could you edit that to a code snippet rather than a spoiler please? Makes it easier to read and therefore easier to help you...

Done!

  On 7/1/2013 at 2:20 PM, simpilot said:

What version is this site running on?

Do you get any on screen errors when you are using the "PIREPAdmin" section of the admin side?

I see two errors that should point you in a general direction:

1 - ( WHERE `pilotid`= ) looks as though you have PIREPS without a pilot id possibly coming from an ACARS program? You need to look in the database and see if there are pilot id's recorded in all of them or possibly the core file is corrupted.

2 - Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'

Error: (2006) - MySQL server has gone away

This could be either that the script is hanging up and leaving the connection to the sql server open which gets closed after a period of inactivity, or the sql server has more connections than it can handle. In the first case, look at the data your are trying to pull from the database, is it there? Is it something it shouldnt be? Is the field missing entirely? In the second case, it is an issue with the host.

Have you reloaded the install folder and run the checkinstall function? Did it show any corrupt files?

I must see this with more time, to make all checks.

But as an introduction, the phpvms version is : 2.1.v2.1.935, php server is configured as 5.3. but in Cpanelx i see this:

Version de PHP 5.2.17 Version de MySQL 5.5.30-cll-lve

The others item to check, in a couple of days i will do it.

Thanks by the answers!!!

Posted

Ok, i did all cheks:

  On 7/1/2013 at 2:20 PM, simpilot said:

What version is this site running on?

phpvms version is : 2.1.v2.1.935 php server is 5.3 Version the MySQL 5.5.30-cll-lve

  Quote
Do you get any on screen errors when you are using the "PIREPAdmin" section of the admin side?

No screen errors.

  Quote
I see two errors that should point you in a general direction:

1 - ( WHERE `pilotid`= ) looks as though you have PIREPS without a pilot id possibly coming from an ACARS program? You need to look in the

database and see if there are pilot id's recorded in all of them or possibly the core file is corrupted.

Pilot id its present in all pireps in DB.

  Quote
2 - Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'

Error: (2006) - MySQL server has gone away

This could be either that the script is hanging up and leaving the connection to the sql server open which gets closed after a period of

inactivity, or the sql server has more connections than it can handle. In the first case, look at the data your are trying to pull from

the database, is it there? Is it something it shouldnt be? Is the field missing entirely? In the second case, it is an issue with the

host.

For example, the error #1 "(where `pilotid`= )" data is saved in phpvms_pilots, its there. The error #2 "MySQL

server has gone away" has not been repeated, may be a particular time of that day. So i think that this is fixed.

  Quote
Have you reloaded the install folder and run the checkinstall function? Did it show any corrupt files?

The result of checkinstall:

  Reveal hidden contents

The most errors are when a pilot login in kacars, etc or in webpage, work good, not issues, but log phpvms regist a error.

  • 2 weeks later...

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...