Git Product home page Git Product logo

Comments (11)

theeldarka avatar theeldarka commented on May 29, 2024 2

php > 7.0

from levels-ranks-web.

fr0nch avatar fr0nch commented on May 29, 2024

Have you enabled abbreviated tags in your php settings?

from levels-ranks-web.

shubhamdev8 avatar shubhamdev8 commented on May 29, 2024

image
its on default

from levels-ranks-web.

shubhamdev8 avatar shubhamdev8 commented on May 29, 2024

I have php 7.0 and 7.1 installed

from levels-ranks-web.

shubhamdev8 avatar shubhamdev8 commented on May 29, 2024

My Bad, I am using virtualmin with multiple php versions and it was using older version by default
thanks for your help :)

from levels-ranks-web.

Hibari233 avatar Hibari233 commented on May 29, 2024

My Bad, I am using virtualmin with multiple php versions and it was using older version by default
thanks for your help :)

I got the same problem like yours . But I do not have multiple php version . I only have a version which is php 7.2. But the site shows HTTP 500 ERROR again. Do you have any suggestions?

from levels-ranks-web.

Hibari233 avatar Hibari233 commented on May 29, 2024

Here's the error log.


[Wed Feb 05 15:18:07.248091 2020] [php7:warn] [pid 1107] [client 61.167.169.2:7327] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /var/www/html/app/ext/Db.php on line 130


[Wed Feb 05 15:18:07.251101 2020] [php7:error] [pid 1107] [client 61.167.169.2:7327] PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/app/ext/Db.php:263\nStack trace:\n#0 /var/www/html/app/ext/Db.php(330): app\ext\Db->inquiry('Core', 0, 0, 'SELECT * FROM l...', Array)\n#1 /var/www/html/app/ext/General.php(180): app\ext\Db->queryAll('Core', 0, 0, 'SELECT * FROM l...')\n#2 /var/www/html/app/ext/General.php(59): app\ext\General->get_server_list()\n#3 /var/www/html/index.php(137): app\ext\General->__construct(Object(app\ext\Db))\n#4 {main}\n thrown in /var/www/html/app/ext/Db.php on line 263


from levels-ranks-web.

shubhamdev8 avatar shubhamdev8 commented on May 29, 2024

Here's the error log.

[Wed Feb 05 15:18:07.248091 2020] [php7:warn] [pid 1107] [client 61.167.169.2:7327] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /var/www/html/app/ext/Db.php on line 130

[Wed Feb 05 15:18:07.251101 2020] [php7:error] [pid 1107] [client 61.167.169.2:7327] PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/app/ext/Db.php:263\nStack trace:\n#0 /var/www/html/app/ext/Db.php(330): app\ext\Db->inquiry('Core', 0, 0, 'SELECT * FROM l...', Array)\n#1 /var/www/html/app/ext/General.php(180): app\ext\Db->queryAll('Core', 0, 0, 'SELECT * FROM l...')\n#2 /var/www/html/app/ext/General.php(59): app\ext\General->get_server_list()\n#3 /var/www/html/index.php(137): app\ext\General->__construct(Object(app\ext\Db))\n#4 {main}\n thrown in /var/www/html/app/ext/Db.php on line 263

i think your db is not configured properly
check /storage/cache/sessions/db.php if its properly configured or not
and make sure you have installed all the required php modules

from levels-ranks-web.

Hibari233 avatar Hibari233 commented on May 29, 2024

Here's the error log.
[Wed Feb 05 15:18:07.248091 2020] [php7:warn] [pid 1107] [client 61.167.169.2:7327] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /var/www/html/app/ext/Db.php on line 130
[Wed Feb 05 15:18:07.251101 2020] [php7:error] [pid 1107] [client 61.167.169.2:7327] PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/app/ext/Db.php:263\nStack trace:\n#0 /var/www/html/app/ext/Db.php(330): app\ext\Db->inquiry('Core', 0, 0, 'SELECT * FROM l...', Array)\n#1 /var/www/html/app/ext/General.php(180): app\ext\Db->queryAll('Core', 0, 0, 'SELECT * FROM l...')\n#2 /var/www/html/app/ext/General.php(59): app\ext\General->get_server_list()\n#3 /var/www/html/index.php(137): app\ext\General->__construct(Object(app\ext\Db))\n#4 {main}\n thrown in /var/www/html/app/ext/Db.php on line 263

i think your db is not configured properly
check /storage/cache/sessions/db.php if its properly configured or not
and make sure you have installed all the required php modules

I did not configure the db.php . The instructions on GitHub did not say to configure the db.php. What I only did is configure the Apache , PHP and MariaDB, and put the web in /var/www/. Then the web told me that I need to configure the databases and it can be found in databases.cfg. So how to configure the db.php? I am very sorry to spend your time. Thank you very much.

from levels-ranks-web.

Hibari233 avatar Hibari233 commented on May 29, 2024

Here's the error log.
[Wed Feb 05 15:18:07.248091 2020] [php7:warn] [pid 1107] [client 61.167.169.2:7327] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /var/www/html/app/ext/Db.php on line 130
[Wed Feb 05 15:18:07.251101 2020] [php7:error] [pid 1107] [client 61.167.169.2:7327] PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/app/ext/Db.php:263\nStack trace:\n#0 /var/www/html/app/ext/Db.php(330): app\ext\Db->inquiry('Core', 0, 0, 'SELECT * FROM l...', Array)\n#1 /var/www/html/app/ext/General.php(180): app\ext\Db->queryAll('Core', 0, 0, 'SELECT * FROM l...')\n#2 /var/www/html/app/ext/General.php(59): app\ext\General->get_server_list()\n#3 /var/www/html/index.php(137): app\ext\General->__construct(Object(app\ext\Db))\n#4 {main}\n thrown in /var/www/html/app/ext/Db.php on line 263

i think your db is not configured properly
check /storage/cache/sessions/db.php if its properly configured or not
and make sure you have installed all the required php modules

I found the db.php's template and I have installed the Levels-Ranks core in my CSGO server.
But I didn't know the database configuration.
I use the command "mysql -uroot -A" and "show databases;". But I found there is no databases at all;
I could not find the Core's databases, maybe it is default ?
Would I need to create the databases and tables manually and configure the db.php with the databases?
Can you describe it more in details?
Thank you for helping me!

from levels-ranks-web.

shubhamdev8 avatar shubhamdev8 commented on May 29, 2024

Here's the error log.
[Wed Feb 05 15:18:07.248091 2020] [php7:warn] [pid 1107] [client 61.167.169.2:7327] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /var/www/html/app/ext/Db.php on line 130
[Wed Feb 05 15:18:07.251101 2020] [php7:error] [pid 1107] [client 61.167.169.2:7327] PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/app/ext/Db.php:263\nStack trace:\n#0 /var/www/html/app/ext/Db.php(330): app\ext\Db->inquiry('Core', 0, 0, 'SELECT * FROM l...', Array)\n#1 /var/www/html/app/ext/General.php(180): app\ext\Db->queryAll('Core', 0, 0, 'SELECT * FROM l...')\n#2 /var/www/html/app/ext/General.php(59): app\ext\General->get_server_list()\n#3 /var/www/html/index.php(137): app\ext\General->__construct(Object(app\ext\Db))\n#4 {main}\n thrown in /var/www/html/app/ext/Db.php on line 263
i think your db is not configured properly
check /storage/cache/sessions/db.php if its properly configured or not
and make sure you have installed all the required php modules

I found the db.php's template and I have installed the Levels-Ranks core in my CSGO server.
But I didn't know the database configuration.
I use the command "mysql -uroot -A" and "show databases;". But I found there is no databases at all;
I could not find the Core's databases, maybe it is default ?
Would I need to create the databases and tables manually and configure the db.php with the databases?
Can you describe it more in details?
Thank you for helping me!

add me on discord FLASHING#8548

from levels-ranks-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.