magazin online Posted February 21, 2017 Share Posted February 21, 2017 Hello, I had the problem that I couldn't upload files bigger than 2 MB.In php.ini I changed upload_max_filesize from 2M to 2000M. as it is sown here: After this, if I try to access prestashop, I receive error: 500 Server Error If I type admin path in browser:http://localhost/prestashop/admin/index.php....This error occurs:[PrestaShopException]Cannot select any valid SQL engine.at line 295 in file classes/db/Db.php290. } elseif (extension_loaded('mysqli')) {291. $class = 'DbMySQLi';292. }293.294. if (empty($class)) {295. throw new PrestaShopException('Cannot select any valid SQL engine.');296. }297.298. return $class;299. }300. DbCore::getClass - [line 229 - classes/db/Db.php] DbCore::getInstance - [line 48 - config/alias.php] pSQL - [line 346 - classes/shop/Shop.php] - [1 Arguments] ShopCore::initialize - [line 118 - config/config.inc.php] require - [line 43 - admin441avi9ut/index.php] - [1 Arguments] If I enter on http://localhost/phpmyadmin/ I receive this error:phpMyAdmin - ErrorThe mbstring extension is missing. Please check your PHP configuration. Now I do not have acces to my store. Please help me to solve this issue. Is there another way to acces my store and save my work? Thank you so much! Link to comment Share on other sites More sharing options...
gabdara Posted February 21, 2017 Share Posted February 21, 2017 You might have somehow disabled the php_mbstring extension if the store was working in the past. If you are using multiple apps for webserver you might have a conflict between the two. Check the status of mbstring (easiest way through a phpinfo file) and if it's not present search how you could enable it. To be sure you save your work make a backup of the files and use mysql at command line to make a dump of the database. Link to comment Share on other sites More sharing options...
magazin online Posted February 27, 2017 Author Share Posted February 27, 2017 gabdara thank you for answer! The problem was in php.ini I found out about an error logging file: apache/logs/error.log Here, at the time when error occurred, I saw next error lines: [Tue Feb 21 18:32:33.935226 2017] [ssl:warn] [pid 7404:tid 252] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [Tue Feb 21 18:32:34.232243 2017] [core:warn] [pid 7404:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? PHP: syntax error, unexpected END_OF_LINE, expecting '=' in C:\xampp\php\php.ini on line 2:0 server certificate does NOT include an ID which matches the server name I checked many times and I found only a space in first row before . In error.log it found error on line 2:0, I don't know why.I deleted that space and everything goes fine.So much work for only a space. Here is somebody with similar problem: http://serverfault.com/questions/555856/php-ini-file-starts-with-0php Link to comment Share on other sites More sharing options...
sebasxbox360 Posted April 4, 2018 Share Posted April 4, 2018 On 27/2/2017 at 12:53 PM, magazin online said: Gabdara gracias por la respuesta! El problema estaba en php.ini Descubrí un archivo de registro de errores: apache / logs / error.log Aquí, en el momento en que ocurrió el error, vi las siguientes líneas de error: [Mar 21 feb: 32: 33.935226 2017] [ssl: warn] [pid 7404: tid 252] AH01909: www.example.com:443:0 El certificado del servidor NO incluye una identificación que coincida con el nombre del servidor [Mar 21 feb: 32: 34.232243 2017] [core: warn] [pid 7404: tid 252] AH00098: archivo pid C: /xampp/apache/logs/httpd.pid sobrescrito - ¿Apagado imprudente de la ejecución anterior de Apache? PHP: error de sintaxis, inesperado END_OF_LINE, esperando '=' en C: \ xampp \ php \ php.ini en la línea 2: 0 el certificado del servidor NO incluye una ID que coincida con el nombre del servidor Lo comprobé muchas veces y solo encontré un espacio en la primera fila Borré ese espacio y todo va bien. Mucho trabajo solo por un espacio Aquí hay alguien con un problema similar: http://serverfault.com/questions/555856/php-ini-file-starts-with-0php Hola como solucionaste esto? tengo el mismo problema Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now