vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - ibProArcade - professional Arcade System (https://vborg.vbsupport.ru/showthread.php?t=101554)

MarkFL 05-16-2017 05:13 PM

Quote:

Originally Posted by dan325ci (Post 2586604)
Did all those changes but now getting this:

ERROR: Cannot find database myforums_forums

There is a SQL error.
You can contact the board administrator by clicking here

Error Returned

Yes, I get that error on one PHP 7.x site (but it only happened all of a sudden after the arcade had been working well for months), but not another, and I haven't been able to resolve the issue yet. :(

dan325ci 05-16-2017 05:17 PM

Quote:

Originally Posted by MarkFL (Post 2586605)
Yes, I get that error on one PHP 7.x site (but it only happened all of a sudden after the arcade had been working well for months), but not another, and I haven't been able to resolve the issue yet. :(


Furthermore, if i keep set $MYSQLI = 0;

I get this error:


Call to undefined function mysql_connect() on line 41 in /home/username/public_html/forum/arcade/functions/dbclass.php
#0 /home/username/public_html/forum/arcade.php(188): db_driver->connect()
#1 {main}


So, does that mean the only way to get this to work is downgrade to PHP 5.6 again?

Are these issues a result of upgrading to php 7 or 4.2.5??

MarkFL 05-16-2017 05:27 PM

I believe these are issues related to the PHP/MySQL versions, not the vB version. I don't know how to resolve the other error, although I will admit not putting much time into it because in general, I always seem to have more important issues to deal with. :)

dan325ci 05-16-2017 07:49 PM

Quote:

Originally Posted by MarkFL (Post 2586607)
I believe these are issues related to the PHP/MySQL versions, not the vB version. I don't know how to resolve the other error, although I will admit not putting much time into it because in general, I always seem to have more important issues to deal with. :)

well heres hoping you can help to identify it. it could just be a simple code issue. For now our entire arcade is down and i guess i will have to look for alternatives. :(

MarkFL 05-18-2017 03:37 PM

Quote:

Originally Posted by dan325ci (Post 2586608)
well heres hoping you can help to identify it. it could just be a simple code issue. For now our entire arcade is down and i guess i will have to look for alternatives. :(

Here's how I was able to resolve the issue:
  • Rename "dbclass.php" to "dbclass_orig.php".
  • Rename "dbclass_mysqli.php" to "dbclass.php".
That brought back the arcade for me. :)

edit: I forgot to mention, these files are located in the "arcade/functions" folder.

MarkFL 05-19-2017 01:45 AM

Another change that needs to be made so that the product settings work within the AdminCP is to edit the file "admincp/arcade.php" to change line 41 to:

PHP Code:

$sql_driver FUNCTIONS_PATH "dbclass.php"


dan325ci 05-21-2017 01:17 AM

Quote:

Originally Posted by MarkFL (Post 2586670)
Another change that needs to be made so that the product settings work within the AdminCP is to edit the file "admincp/arcade.php" to change line 41 to:

PHP Code:

$sql_driver FUNCTIONS_PATH "dbclass.php"



This file already had the live above as you mentioned.


I also did all the previous changes you mentioned but still getting this error:

Quote:

ERROR: Cannot find database myforums_forums

There is a SQL error.
You can contact the board administrator by clicking here

Error Returned

mySQL query error: SELECT arcade_access, p_require FROM usergroup WHERE usergroupid = 1

mySQL error:
mySQL error code:
Date: Sunday 21st 2017f May 2017 03:20:39 AM

and in the error logs the following:

Code:

[21-May-2017 03:09:31 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; info has a deprecated constructor in /home/username/public_html/forum/arcade.php on line 112
[21-May-2017 03:09:31 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Arcade has a deprecated constructor in /home/username/public_html/forum/arcade.php on line 341
[21-May-2017 03:09:31 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; FUNC has a deprecated constructor in /home/username/public_html/forum/arcade/functions/functions.php on line 3
[21-May-2017 03:09:31 UTC] PHP Warning:  require(./arcade/functions/dbclass_mysqli.php): failed to open stream: No such file or directory in /home/username/public_html/forum/arcade.php on line 161
[21-May-2017 03:09:31 UTC] PHP Fatal error:  require(): Failed opening required './arcade/functions/dbclass_mysqli.php' (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/username/public_html/forum/arcade.php on line 161


Any other advice?

MarkFL 05-21-2017 01:24 AM

What version of vB are you running? On the site where I was having the issue, I coincidentally upgraded to the latest vB 4.2.5 (I was running a Beta before) and then after the upgrade, I looked at the arcade issue again, and it was only then that the "Cannot find database" issue went away, and only then could I proceed with the changes I described in the past few posts. :)

bridge2heyday 05-22-2017 12:39 AM

I took sometime checking this for a friend
on MYSQLI class I changed the connect function to
PHP Code:

 function connect()
    {
        
$this->connection_id mysqli_connect($this->obj['sql_host'], $this->obj['sql_user'], $this->obj['sql_pass'], $this->obj['sql_database']);
        if (
mysqli_connect_errno()) {
            echo 
"Failed to connect to MySQL: " mysqli_connect_error();
        }
        
    } 

and at line 186
PHP Code:

 $this->query_id mysqli_query($the_query$this->connection_id); 

connection should be the first parameter on mysqli_connect fuction not second parameter
PHP Code:

 $this->query_id mysqli_query($this->connection_id$the_query); 

it is working fine now

dan325ci 05-23-2017 11:01 AM

Quote:

Originally Posted by MarkFL (Post 2586738)
What version of vB are you running? On the site where I was having the issue, I coincidentally upgraded to the latest vB 4.2.5 (I was running a Beta before) and then after the upgrade, I looked at the arcade issue again, and it was only then that the "Cannot find database" issue went away, and only then could I proceed with the changes I described in the past few posts. :)

I upgraded from 4.2.4 to 4.2.5 and it broke. (but at the same time i went from PHP 5.6 to 7.0)


All times are GMT. The time now is 12:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08207 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete