Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Error when installing #145

Open
iMohamedSamir opened this issue Oct 8, 2020 · 4 comments
Open

500 Error when installing #145

iMohamedSamir opened this issue Oct 8, 2020 · 4 comments

Comments

@iMohamedSamir
Copy link

Hi, I am trying to install qlo by myself to try it.
I tried to install it locally on wsl:

ubuntu 20.04
php 7.2.34
mysql  Ver 14.14 Distrib 5.7.31
apache2

And I got localhost is currently unable to handle this request. HTTP ERROR 500
I thought there was something wrong with my wsl (fresh installation) so I installed every package mentioned in the dockerfile just to be sure, nothing worked.
so I grabbed wordpress version and proceeded to install it, and it have been installed just fine.
My last attempt was to upload qlo to my live server, created a subfolder inside a working project, and still when I access it, it gave me the same error

after soem digging and viewing apache2 error log i found the following:
[Thu Oct 08 04:48:42.872605 2020] [php7:notice] [pid 9852] [client ::1:65087] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 04:48:42.892094 2020] [php7:error] [pid 9852] [client ::1:65087] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 04:48:48.865468 2020] [php7:notice] [pid 9853] [client ::1:65088] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 04:48:48.867606 2020] [php7:error] [pid 9853] [client ::1:65088] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 04:50:13.400418 2020] [php7:notice] [pid 9940] [client ::1:65091] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 04:50:13.418697 2020] [php7:error] [pid 9940] [client ::1:65091] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 04:51:11.245371 2020] [php7:notice] [pid 10073] [client ::1:65094] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 04:51:11.265050 2020] [php7:error] [pid 10073] [client ::1:65094] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 04:51:13.399435 2020] [php7:notice] [pid 10075] [client ::1:65095] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 04:51:13.401631 2020] [php7:error] [pid 10075] [client ::1:65095] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 04:51:33.155286 2020] [php7:notice] [pid 10072] [client 192.168.100.31:65098] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 04:51:33.157213 2020] [php7:error] [pid 10072] [client 192.168.100.31:65098] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:09:22.884427 2020] [php7:notice] [pid 22931] [client 192.168.100.31:65152] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:09:22.903850 2020] [php7:error] [pid 22931] [client 192.168.100.31:65152] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:09:24.144030 2020] [php7:notice] [pid 22926] [client 192.168.100.31:65153] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:09:24.146150 2020] [php7:error] [pid 22926] [client 192.168.100.31:65153] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:09:29.187319 2020] [php7:notice] [pid 22923] [client 192.168.100.31:65154] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:09:29.189053 2020] [php7:error] [pid 22923] [client 192.168.100.31:65154] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:12:58.881141 2020] [php7:notice] [pid 22931] [client 192.168.100.31:65177] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:12:58.882719 2020] [php7:error] [pid 22931] [client 192.168.100.31:65177] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:13:17.336584 2020] [php7:notice] [pid 22937] [client 192.168.100.31:65179] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:13:17.338549 2020] [php7:error] [pid 22937] [client 192.168.100.31:65179] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:13:19.955353 2020] [php7:notice] [pid 22932] [client 192.168.100.31:65180] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:13:19.957632 2020] [php7:error] [pid 22932] [client 192.168.100.31:65180] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:14:54.570190 2020] [php7:notice] [pid 22935] [client 192.168.100.31:65185] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:14:54.572236 2020] [php7:error] [pid 22935] [client 192.168.100.31:65185] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:15:32.271924 2020] [php7:notice] [pid 22934] [client 192.168.100.31:65190] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:15:32.273897 2020] [php7:error] [pid 22934] [client 192.168.100.31:65190] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:15:36.303620 2020] [php7:notice] [pid 22925] [client 192.168.100.31:65191] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:15:36.305805 2020] [php7:error] [pid 22925] [client 192.168.100.31:65191] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce/install/classes/simplexml.php on line 27 [Thu Oct 08 05:29:05.788928 2020] [php7:notice] [pid 22936] [client 192.168.100.31:65219] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce-1.5.0/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:29:05.807487 2020] [php7:error] [pid 22936] [client 192.168.100.31:65219] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce-1.5.0/install/classes/simplexml.php on line 27 [Thu Oct 08 05:29:09.102798 2020] [php7:notice] [pid 22924] [client 192.168.100.31:65220] PHP Notice: tempnam(): file created in the system's temporary directory in /var/www/html/hotelcommerce-1.5.0/classes/PrestaShopAutoload.php on line 158 [Thu Oct 08 05:29:09.104695 2020] [php7:error] [pid 22924] [client 192.168.100.31:65220] PHP Fatal error: Class 'SimpleXMLElement' not found in /var/www/html/hotelcommerce-1.5.0/install/classes/simplexml.php on line 27 usr@DESKTOP-V2N1VT2:/var/log/apache2$

@iMohamedSamir
Copy link
Author

So, As I thought, the problem was with php version, I used php7.2 As mentioned in docker's but when I downgraded to 7.0 it worked, anyway, I will keep testing

@sumitwebkul
Copy link
Contributor

sumitwebkul commented Oct 8, 2020

@iMohamedSamir

Thanks for reporting the issue.

We will check and try to resolve it ASAP in the next upgrades.

Thanks & Regards.

@ayushwebkul
Copy link

Hello @iMohamedSamir
As we checked the GitHub qloapps issue, and install it on EC2 instance with same configuration as you mention in the issue and it works fine.
We also check our dockerfile of qloapps and there are all the php packages written in the file.
When we check for the logs which are send by you in the issue then found may be you forgot to install the php package for XML, because all the errors which are metioned in issue are about XML file.
php-xml, php-simplexml - make sure these packages are present on your server.
Thanks and Regards

@loki-odinson
Copy link

hi @ayushwebkul I have successfully installed qloapps on an ec2 instance. But on my localhost it returns with error: class "tools" not found. The php version on aws and on my local system are 7.2.34 the only difference being that some of the php.ini parameters on my system are more than required. The required php modules have also been installed along with the proper file permissions. 755 for folders and 666 for files. Any idea why this could be??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants