[ Alexxandar @ 27.08.2011. 20:54 ] @
Skoro sam backupovao Joomla sajt na kome radim sa web servera ali iz nekog razloga nikako neće da radi na lokalnom WAMPu. Interesantno je da je napravljen prvo na tom istom WAMPu pa uploadovan i sada nekoliko meseci kasnije dolazi do neobične greške.

Dakle krene da učitava sajt, vidim kako je otvorio celu stranicu i baš u trenutku kada to učitavanje treba da dođe do kraja, sve nestane i dobijem poruku "The connection was reset. The connection to the server was reset while the page was loading."

Pokušao sam da stavim drugu verziju PHP-a(imao sam 5.3.0 koji je malo buggy i hoće da izaziva tu grešku). Takođe u menjao sam i verzije WAMPa, prvo sam stavio najnoviju 64bitnu(mislim da su mi i druge stvari s njom bagovale), pa onda vratio na 32bitnu ali problem ostaje. Evo šta Apache error log kaže:
Code:
[Sat Aug 27 21:32:50 2011] [alert] [client 127.0.0.1] C:/Users/Alexxandar/Documents/WWW/Projects/CarProject/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Aug 27 21:32:51 2011] [alert] [client 127.0.0.1] C:/Users/Alexxandar/Documents/WWW/Projects/menjacnicedok.rs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Aug 27 21:32:51 2011] [alert] [client 127.0.0.1] C:/Users/Alexxandar/Documents/WWW/Projects/www.logitechshop.rs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Aug 27 21:32:51 2011] [alert] [client 127.0.0.1] C:/Users/Alexxandar/Documents/WWW/Projects/www.logitechshop.rs-stari/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Aug 27 21:32:51 2011] [alert] [client 127.0.0.1] C:/Users/Alexxandar/Documents/WWW/Projects/www.menjacnicedok.rs - original/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP Notice:  Undefined property: stdClass::$cachable in C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\environment\\response.php on line 52, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   1. JSession->__destruct() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\session\\session.php:0, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   2. JSession->close() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\session\\session.php:135, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   3. session_write_close() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\session\\session.php:529, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   4. JSessionStorageDatabase->write() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\session\\storage\\database.php:0, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   5. JTable->store() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\session\\storage\\database.php:92, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   6. JFDatabase->updateObject() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\database\\table.php:285, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   7. JDatabaseMySQL->updateObject() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\plugins\\system\\jfdatabase\\jfdatabase_inherit.php:602, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   8. JFDatabase->query() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\database\\database\\mysql.php:583, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP   9. interceptDB->setRefTables() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\plugins\\system\\jfdatabase\\jfdatabase_inherit.php:642, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  10. interceptDB->_getFieldCount() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\plugins\\system\\jfdatabase\\intercept.jdatabasemysql.php:225, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  11. JError->raiseError() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\plugins\\system\\jfdatabase\\intercept.jdatabasemysql.php:79, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  12. JError->raise() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\error\\error.php:171, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  13. JError->handleCallback() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\error\\error.php:143, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  14. call_user_func() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\error\\error.php:530, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  15. JError::customErrorPage() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\error\\error.php:0, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  16. JResponse::toString() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\error\\error.php:576, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [error] [client 127.0.0.1] PHP  17. JResponse::allowCache() C:\\Users\\Alexxandar\\Documents\\WWW\\Projects\\DuPropriAuto1\\libraries\\joomla\\environment\\response.php:197, referer: http://localhost/Projects/
[Sat Aug 27 21:33:11 2011] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat Aug 27 21:33:12 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Sat Aug 27 21:33:12 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sat Aug 27 21:33:12 2011] [notice] Parent: Created child process 4152
[Sat Aug 27 21:33:12 2011] [notice] Child 4152: Child process is running
[Sat Aug 27 21:33:12 2011] [notice] Child 4152: Acquired the start mutex.
[Sat Aug 27 21:33:12 2011] [notice] Child 4152: Starting 64 worker threads.
[Sat Aug 27 21:33:12 2011] [notice] Child 4152: Starting thread to listen on port 80.


Ja zaista ne razumem kako jedna PHP greška može da izazove restart apache???
[ Milan Kragujevic @ 28.08.2011. 11:48 ] @
Koji OS koristiš?
x64 ili x86 (64 ili 32 bita)
Da li si menjao putanje Joomle da se slažu sa trenutnom lokacijom?
[ Alexxandar @ 28.08.2011. 12:05 ] @
Windows 7 Ultimate 64bit, da podesio sam sve putanje...
Mali update stavio sam verziju Wampa sa PHP 5.2.9-2 i stranica se normalno učita ali na dnu svake stranice piše 500 No valid connection to DB. Promenio sam tip DB u mysqli i konačno sve normalno funkcioniše... ali ipak kako to da ovaj problem pre nije postojao :P
[ Milan Kragujevic @ 28.08.2011. 12:06 ] @
Najverovatnije si imao pogrešnu verziju php-a, pogrešnu verziju baze, i 32-bitno verziju WAMPP-a
[ Alexxandar @ 28.08.2011. 12:11 ] @
Ali kako je prava verzija(na kojoj je sajt napravljen) u međuvremenu postala pogrešna? :)
[ Milan Kragujevic @ 29.08.2011. 20:49 ] @
Ne znam.
Obriši WAMPP i stavi XAMPP.
Pa probaj ponovo :)
[ Zmaj @ 29.08.2011. 21:51 ] @
Pored toga sto ti WAMP-ovi nisu isto podeseni, posto si rekao da si stavio novi, imas i problem sa verzijom PHP, radio si sajt na 5.2.9 (ili neki manji), a sad si stavio poslednji PHP. Moj savet ti je da ako ne znas da podesis Apache i PHP, da ne radis tako cesto update, localhost ti nije kritican za razvoj sajtova koje radis, narocito u Joomli. Recimo ja i dalje teram localhost na 5.2.9, jer na poslu radim na nekom kodu koji nije pisan skroz "cisto" pa dobijam razne notice i warninge ako instaliram noviji PHP. Za licnu potrebe koristim server sa PHP 5.3.x (ne znam koji tacno, mislim da je 5.3.4).