Playsms + CENTOS 7 + PHP7 - HTTP 500 error


(Rui Brito Da Silva) #1

After instalation everything went well.

Bau whe i try to login on main page, i’v got HTTP 500

I’ve checked errors. To few arguments:

[Sun Nov 05 14:10:51.127642 2017] [php7:error] [pid 8769] [client 84.90.226.221:62627] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function themes_submenu(), 0 passed in /var/www/html/playsms/plugin/themes/common/fn.php on line 23 and exactly 1 expected in /var/www/html/playsms/plugin/core/themes/fn.php:39\nStack trace:\n#0 /var/www/html/playsms/plugin/themes/common/fn.php(23): themes_submenu()\n#1 /var/www/html/playsms/lib/fn_core.php(192): common_hook_themes_apply(’<table width=‘1…’)\n#2 /var/www/html/playsms/plugin/core/themes/fn.php(32): core_hook(‘common’, ‘themes_apply’, Array)\n#3 /var/www/html/playsms/inc/app/main.php(39): themes_apply(’<table width=‘1…’)\n#4 /var/www/html/playsms/index.php(34): include(’/var/www/html/p…’)\n#5 {main}\n thrown in /var/www/html/playsms/plugin/core/themes/fn.php on line 39

Does anyone know the solution for this?

Thanks.
Best Regards
Rui Silva


(Edilson Spessoto) #2

Tenta o php 5, nunca usei o 7


(Arjun Dev) #3

500 error means internal error, please playsms path, firewall


(Rui Brito Da Silva) #4

Everything seams to be alright

playsmsd check
PLAYSMSD_CONF = /etc/playsmsd.conf
PLAYSMS_PATH = /var/www/html/playsms
PLAYSMS_LIB = /var/lib/playsms
PLAYSMS_BIN = /usr/local/bin
PLAYSMS_LOG = /var/log/playsms
DAEMON_SLEEP = 1
ERROR_REPORTING = E_ALL ^ (E_NOTICE | E_WARNING)
IS_RUNNING = 1
PIDS schedule = 15687
PIDS ratesmsd = 15689
PIDS dlrssmsd = 15691
PIDS recvsmsd = 15693
PIDS sendsmsd = 15695

Firewall is disbaled for tests purpose.
Senstatus= disabled

ps ax | grep playsms
5113 pts/0 S+ 0:00 grep --color=auto playsms
15687 ? S 1:38 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf schedule
15689 ? S 1:20 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf ratesmsd
15691 ? S 1:41 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf dlrssmsd
15693 ? S 1:34 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf recvsmsd
15695 ? S 1:25 /usr/bin/php -q /usr/local/bin/playsmsd /etc/playsmsd.conf sendsmsd


(Rui Brito Da Silva) #5

Obrigado pela dica também pensei nisso mesmo. Mas dá conflito:
Error: php-mysql conflicts with php71w-mysqlnd-7.1.10-1.w7.x86_64
Error: php71w-common conflicts with php-common-5.4.16-42.el7.x86_64

Thanks for the tip, I tought the same but it gives conflict:
Error: php-mysql conflicts with php71w-mysqlnd-7.1.10-1.w7.x86_64
Error: php71w-common conflicts with php-common-5.4.16-42.el7.x86_64


(Arjun Dev) #6

Are you able to send sms using terminal


(Edilson Spessoto) #7

You have to uninstall every php7 rpm and install 5 instead


(Rui Brito Da Silva) #8

Yes. But i need php7 for joomla and other dependencies.


(Edilson Spessoto) #9

Understood. On this case, maybe you can use php fpm, but is a messy thing.


(Rui Brito Da Silva) #10

Can’t get out of this! Im stucked!

HTT500 it still’s

Amazing!


(Arjun Dev) #11

Can I install for you, with remote login.


(Rui Brito Da Silva) #12

Yes. I can give you access!

email or whatsapp? wich one do you want to exchange user & Pass (and ip)?


(Arjun Dev) #13

my email account : adev09@gmail.com


(Arjun Dev) #14

Now your playsms is working on browser.


(Edilson Spessoto) #15

What was the problem?


(aTremen) #16

thanks i didn’t know this. i have error 500 and now seemingly i’ve got to search where it is the problem


(Edilson Spessoto) #17

Arjun,

There are another persons with the same problem. Could you, please, share the solution?

Thanks,

Edilson


(Arjun Dev) #18

give me remote access. My email id: adev09@gmail.com


(Edilson Spessoto) #19

Arjun,

I don´t have this problem. Could you like to share the solution, please?


(Matelesecurite Aviseo) #20

Hi thank you for your help .

I have probleme 500 .

Can you share solution please ?