Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Php Version Difference Error
richierich1m
post Mar 18 2007, 06:18 PM
Post #1


Premium Member
********

Group: Members
Posts: 162
Joined: 15-September 06
Member No.: 30,010



hi, i had a site which had php coded in earlier version of php ,and gence i feel i am facing errors like
CODE
DB Error: unknown errorDB_Error Object
(
[error_message_prefix] =>
[mode] => 16
[level] => 1024
[code] => -1
[message] => DB Error: unknown error
[userinfo] => select count(*) from osdate_views_winks where userid = '143' and act_time > '1174236810' and act = 'V' [nativecode=145 ** Table './richie_shaadiya/osdate_views_winks' is marked as crashed and should be repaired]
[backtrace] => Array
(
[0] => Array
(
[file] => /home/richie/public_html/libs/Pear/DB.php
[line] => 748
[function] => PEAR_Error
[class] => PEAR_Error
[type] => ->
[args] => Array
(
[0] => DB Error: unknown error
[1] => -1
[2] => 16
[3] => errhndl
[4] => select count(*) from osdate_views_winks where userid = '143' and act_time > '1174236810' and act = 'V' [nativecode=145 ** Table './richie_shaadiya/osdate_views_winks' is marked as crashed and should be repaired]
)

)

[1] => Array
(
[file] => /home/richie/public_html/libs/Pear/PEAR.php
[line] => 539
[function] => DB_Error
[class] => DB_Error
[type] => ->
[args] => Array
(
[0] => -1
[1] => 16
[2] => errhndl
[3] => select count(*) from osdate_views_winks where userid = '143' and act_time > '1174236810' and act = 'V' [nativecode=145 ** Table './richie_shaadiya/osdate_views_winks' is marked as crashed and should be repaired]
)

)

[2] => Array
(
[file] => /home/richie/public_html/libs/Pear/DB/common.php
[line] => 501
[function] => raiseError
[class] => PEAR
[type] => ->
[args] => Array
(
[0] =>
[1] => -1
[2] =>
[3] =>
[4] => select count(*) from osdate_views_winks where userid = '143' and act_time > '1174236810' and act = 'V' [nativecode=145 ** Table './richie_shaadiya/osdate_views_winks' is marked as crashed and should be repaired]
[5] => DB_Error
[6] => 1
)

)

[3] => Array
(
[file] => /home/richie/public_html/libs/Pear/DB/mysql.php
[line] => 775
[function] => raiseError
[class] => DB_common
[type] => ->
[args] => Array
(
[0] => -1
[1] =>
[2] =>
[3] =>
[4] => 145 ** Table './richie_shaadiya/osdate_views_winks' is marked as crashed and should be repaired
)

)

[4] => Array
(
[file] => /home/richie/public_html/libs/Pear/DB/mysql.php
[line] => 227
[function] => mysqlRaiseError
[class] => DB_mysql
[type] => ->
[args] => Array
(
)

)

[5] => Array
(
[file] => /home/richie/public_html/libs/Pear/DB/common.php
[line] => 954
[function] => simpleQuery
[class] => DB_mysql
[type] => ->
[args] => Array
(
[0] => select count(*) from osdate_views_winks where userid = '143' and act_time > '1174236810' and act = 'V'
)

)

[6] => Array
(
[file] => /home/richie/public_html/libs/Pear/DB/common.php
[line] => 1212
[function] => execute
[class] => DB_common
[type] => ->
[args] => Array
(
[0] => 111
[1] => Array
(
[0] => osdate_views_winks
[1] => 143
[2] => 1174236810
[3] => V
)

)

)

[7] => Array
(
[file] => /home/richie/public_html/index.php
[line] => 310
[function] => getOne
[class] => DB_common
[type] => ->
[args] => Array
(
[0] => select count(*) from ! where userid = ? and act_time > ? and act = ?
[1] => Array
(
[0] => osdate_views_winks
[1] => 143
[2] => 1174236810
[3] => V
)

)

)

)

[callback] => errhndl
)



the name of the script i used is osdate,is there amy solution for this problem
i found that this error is because the change in php version
one of my friend suggested there is an option in php.ini called the compatibility mode which checks the version of php written and then works according to it
currently its turn off as seen in php info file
" zend.ze1_compatibility_mode Off "
i am sure if this is turn "on" it will be helpful to everyone who have scripts of older version . smile.gif
Go to the top of the page
 
+Quote Post
rvalkass
post Mar 18 2007, 06:28 PM
Post #2


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,055
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



The error actually seems to state that the database you are trying to access has crashed and needs you to either repair it or load it again from a backup. Which version of PHP are you going from and to? If you are going from an older version to a newer version then you shouldn't really have any problems. If you are moving from a newer version to an older version you you will need to go through the code and check for any functions that are only available on the new version, and replace them with ones that will work on the older version.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. 403 Forbidden Error When Accessing My Site(11)
  2. Php Version 5.1.6 Available On Trap Accounts?(2)
  3. Wordpress Installation Error [resolved](3)
  4. Error Code In Subscriptions Page(5)
  5. Mysql Access Error[resolved](5)
  6. Database Connection Problem(5)
  7. Trying To Install Phpbb3 [resolved](0)
  8. Error In Credits [resolved](0)
  9. Error Trying To Edit File Using Cpanel Filemanager(8)
  10. Making Custom Error Pages With Cpanel(4)
  11. Error Using Fantastico!(4)
  12. 'page Not Found' Error [resolved](8)
  13. Error(6)
  14. Installing Joomla And Shell Question(0)
  15. Suspended Account Error [resolved](12)
  1. Help! Forum Error Please Reply(4)
  2. Error During Upgrade [resolved](3)
  3. Help: Internet Server Error(20)
  4. Email Creation Error(3)
  5. Keep Getting Socket Error(3)
  6. Parse Error: Syntax Error, Unexpected '<' On Line 29(11)
  7. Mysqli Error - Phpbb3(3)
  8. Phpmyadmin Error(4)
  9. Phpmyadmin Error [resolved](7)
  10. Coppermine Gallery Error(2)
  11. Page Load Error When Accessing Cpanel(0)
  12. Error 28 (on Phpmyadmin)(6)
  13. Phpbb3 - Error 28(5)


 



- Lo-Fi Version Time is now: 26th July 2008 - 08:04 AM