Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Адаптация 2.3.6 к php 8

Recommended Posts

Пытаюсь адаптировать свои форумы к php8. Дошел до авторизации, после ввода логин-пароля получаем 


[27-Jul-2021 18:18:14 UTC] PHP Fatal error:  Uncaught Error: Call to a member function simple_exec_query() on null in /home/vors01717457/public_html/ips_kernel/class_converge.php:188
Stack trace:
#0 /home/vors01717457/public_html/sources/loginauth/login_core.php(148): class_converge->converge_load_member()
#1 /home/vors01717457/public_html/sources/loginauth/internal/auth.php(80): login_core->auth_local()
#2 /home/vors01717457/public_html/sources/handlers/han_login.php(192): login_method->authenticate()
#3 /home/vors01717457/public_html/sources/action_public/login.php(576): han_login->login_authenticate()
#4 /home/vors01717457/public_html/sources/action_public/login.php(81): login->do_log_in()
#5 /home/vors01717457/public_html/index.php(580): login->auto_run()
#6 {main}
  thrown in /home/vors01717457/public_html/ips_kernel/class_converge.php on line 188


Там у нас функция


public function converge_load_member($email)
		if ( ! $email )
			$this->member = array();
		  	$this->member = $this->converge_db->simple_exec_query( array( 'select' => '*', 'from' => 'members_converge', 'where' => "converge_email='$email'" ) );


Где-то в simple_exec_query ошибка, но не пойму где.


function simple_exec_query( $a )
    	return $this->build_and_exec_query( $a );

function build_and_exec_query( $a )
    	$this->build_query( $a );

    	$ci = $this->exec_query();
    	if ( isset($a['select']) AND $a['select'] )
    		return $this->fetch_row( $ci );


Благодарю за любую помощь.



Share this post

Link to post

2.3.6 адаптировать под php 8 это хардкорно.

Ошибка в $this->converge_db. База данных не установлена, значение там null поэтому и ругается что не может вызвать метод.

Share this post

Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...