Go Back   vb.org Archive > vBulletin Modifications > Premium Modifications > ibProArcade
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Can't access to Arcade Details »»
Can't access to Arcade
Version: , by gnrx gnrx is offline
Developer Last Online: Aug 2022 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-28-2019 Last Update: Never Installs: 0
 
No support by the author.

Today, one user indicate to me that are a problem,
In some posts of some threads, at the top of site appears this error:
Code:
PHP Warning: Illegal string offset 'type' in ..../includes/class_postbit.php(345) : eval()'d code on line 57
Only in some pages of some threads.

But now, I can't access to arcade, if click to access appears this error:
Code:
PHP Warning: mysqli_query(): (42000/1055): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mydatabase.c.champ_gid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in ..../arcade/functions/dbclass_mysqli.php on line 193

PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in ..../arcade/functions/dbclass_mysqli.php on line 512

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

Error Returned
mySQL query error: SELECT c.champ_gid AS GID, c.champ_mid AS MID, c.champ_name AS name, COUNT(c.champ_mid) AS total, g.opentag AS prefix, g.closetag AS suffix
FROM games_champs AS c
LEFT JOIN user AS m ON (m.userid=c.champ_mid)
LEFT JOIN usergroup AS g ON (g.usergroupid=m.usergroupid)
GROUP BY MID 
ORDER BY total DESC LIMIT 3

mySQL error: 
mySQL error code: 
Date: Monday 28th 2019f January 2019 11:47:36 PM

mySQL query error: SELECT c.champ_gid AS GID, c.champ_mid AS MID, c.champ_name AS name, COUNT(c.champ_mid) AS total, g.opentag AS prefix, g.closetag AS suffix
FROM games_champs AS c
LEFT JOIN user AS m ON (m.userid=c.champ_mid)
LEFT JOIN usergroup AS g ON (g.usergroupid=m.usergroupid)
GROUP BY MID 
ORDER BY total DESC LIMIT 3

mySQL error: 
mySQL error code: 
Date: Monday 28th 2019f January 2019 11:47:36 PM

We apologise for any inconvenience
I reupload the files of the product and reinstall the product, but continue the problem.

In admincp-arcade click in Game List, appears this error lines:
Code:
PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589
Thanks and regards.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-29-2019, 01:30 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I can't resolved the issue, I reupload all files, re-install product, and continue the issue.
Now, also in admincp-arcade, when click in some menu, appears the same error to connect database.

I was try to uninstall (for then, install from 0) but not uninstall, when click in uninstall, not made any change, not appears uninstalling, its like "stop".

How uninstall from database?

Regards.
Reply With Quote
  #3  
Old 01-30-2019, 09:40 AM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mind if I have a look?
Reply With Quote
Благодарность от:
gnrx
  #4  
Old 01-30-2019, 10:40 AM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stangger5 View Post
Mind if I have a look?
On the contrary, I am grateful for that, because I do not know what to do anymore.
I must indicate that, in my tests (I did not mind losing the user data of their games) I did some tests that I will comment. Even removing a table from the database and then installing the mod again, I see that you did not create it.
To get a look, do you mean the URL of my website? Currently I have the mod disabled seeing this problem, if you want to see it on the web, let me know and I enable it (and I'll provide you with url) if you mean access to admincp, I also give it to you if you want it.

Regards!
Reply With Quote
  #5  
Old 02-05-2019, 07:27 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At the moment, I can solved the issue for can install and uninstall, the problem...
A few weeks ago, I convert all my database tables to innodb (all except that necessary in myisiam and also, not of the tables of mods).
Today, I reconvert all tables to myisiam, and now, can install and uninstall, but continue with the issue, when access to arcade zone, have this problem:
When access to admincp-arcade-game list:
Code:
PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589

PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589
And when access to arcade (in forum) appears this:
Code:
PHP Warning: mysqli_query(): (42000/1055): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'mydatabase.c.champ_gid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in ..../arcade/functions/dbclass_mysqli.php on line 193

PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in ..../arcade/functions/dbclass_mysqli.php on line 512
 

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

Error Returned


We apologise for any inconvenience
Regards!
Reply With Quote
  #6  
Old 02-06-2019, 09:59 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems you really messed something up, why converting database and then again and back... huuhhh

What is your exact environment now?
database, mySQL-version, PHP-version ect

stangger took a look at your site?
Reply With Quote
  #7  
Old 02-06-2019, 10:21 AM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrZeropage View Post
It seems you really messed something up, why converting database and then again and back... huuhhh
It was a bad idea, I know, although I really knew it later ...
I had some performance problems, I contacted vbulletin.com, we saw that I had some tables (without any explanation in innodb) I was advised to change all to innodb except 3 that must be myisam and 2 that are memory.
But I only converted the vb tables, not the mods.
From that moment, I had more problems, some errors that I did not know why, mods (new) that I could not install and / or that gave errors, others that I could not uninstall.
Unstable server performance, peaks of low CPU load peaks of high cpu load (and I have a VPS with leftover resources for my site).
And then I saw the problem in arcade and some other more as indicated above.
After several days / weeks with innodb and see the instability, in a certain way, produced in server, I decide to reconfigure the tables as by default they would be in a 0 installation, I mean, myisam.
From that moment, all my problems disappeared, everything worked perfectly again, both on the server (cpu loads) and on my site.
Although I see that, the installation of a mod or uninstall, for example, the arcade one, takes a long time, before it did not take that long, but now it does it correctly, installs and uninstalls without errors.
The only problem I have is the arcade one.

Quote:
What is your exact environment now?
database, mySQL-version, PHP-version ect
PHP 7.1.26, mysql 5.7.25
Quote:
stangger took a look at your site?
stangger and I, we contact via mp

Thanks and regards.
Reply With Quote
  #8  
Old 02-10-2019, 11:16 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Finally, I was able to solve the problem!
stangger5 (from here thank you) could not solve the problem, but a comment he made about what he detected, left me on track in what to look for (and previously I did not realize looking for that kind of error .. .).
I started searching the internet and detected the problem.
I have mysql 5.7.25, but to not extend, here is the link to the problem:
https://stackoverflow.com/questions/...ntains-nonaggr
The explanation its:
Quote:
The full_group_by mode basically makes you write more idiomatic SQL. You can turn off this setting if you'd like. There are different ways to do this that are outlined in the MySQL Documentation. Here's MySQL's definition of what I said above:

MySQL 5.7.5 and up implements detection of functional dependence. If the ONLY_FULL_GROUP_BY SQL mode is enabled (which it is by default), MySQL rejects queries for which the select list, HAVING condition, or ORDER BY list refer to nonaggregated columns that are neither named in the GROUP BY clause nor are functionally dependent on them. (Before 5.7.5, MySQL does not detect functional dependency and ONLY_FULL_GROUP_BY is not enabled by default. For a description of pre-5.7.5 behavior, see the MySQL 5.6 Reference Manual.)
And the fix this:
Quote:
Edit my.cnf of the server and add:
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZE RO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_ USER,NO_ENGINE_SUBSTITUTION

In others words, remove: ONLY_FULL_GROUP_BY in WHM/cPanel of mysql
When I made the migration of the server, it coincided that I made the conversion to innodb of the tables of the database.
I blamed that reason for the failure, although it had no logic, but I thought it was for that reason.
I was wrong.
In my new server, that function comes by default, only affects ibproarcade, the rest of the forum and mods does not give any problem.
It was to make that change, restart mysql and .... to get back to work!
That yes, with all the tests I did I had eliminated all the ibproarcade data (scores ...) luckily, I keep the full backup of my previous server, restored that database, exported the ibproarcade tables, imported them in the new database of the new server, and everything returned as before, no loss of data (how important it is to keep a complete backup from time to time ... )

But after all these tests, I could verify that ibproarcade is not 100% compatible with php 7.1.
I have enabled to show error messages, it shows 2 different messages in two different options with php 7.1.
If I set php 7.0 no error appears.
With php 7.1 everything works, but it shows these errors:

Go to admincp->arcade->Game List.
Appears this:
Code:
PHP Warning: A non-numeric value encountered in ..../admincp/arcade.php on line 589
One line for each game that I have installed, as I have 14 games installed, 14 lines appear, if I have 5 games installed, 5 lines appear with that error.

Among the various pages that I have consulted this information, here, a user who has the same message and the explanation that this function as programmed, is not compatible with php 7.1.
It happens to me, if you set your site to php 7.0, it disappears:
https://forums.cpanel.net/threads/ro.../#post-2380427

Without going further, after thinking that the fault was coming from one cause, it was from another, thanks to stangger5 that left me on the track of what could happen and from there, I started looking.

Regards!!
Reply With Quote
  #9  
Old 02-11-2019, 07:20 PM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To fix the error "PHP Warning: A non-numeric value encountered in..." with PHP 7.1.26

admincp/arcade.php

Find:
Code:
	if (substr($bbuserinfo['tzoffset'],1,0) == "+")
	{
	
		 $temptime = $temptime + strval(substr($bbuserinfo['tzoffset'],1)) * 3600;
	}
	else
	{
	
		 $temptime = $temptime - strval(substr($bbuserinfo['tzoffset'],1)) * 3600;
	}
change to
Code:
		if (substr($bbuserinfo['tzoffset'],1,0) == "+")
	{
	
		 $temptime = $temptime + strval((int)substr($bbuserinfo['tzoffset'],1)) * 3600;
	}
	else
	{
	
		 $temptime = $temptime - strval((int)substr($bbuserinfo['tzoffset'],1)) * 3600;
	}
Reply With Quote
Благодарность от:
blind-eddie
  #10  
Old 02-12-2019, 06:15 AM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi stangger5,

I made the changes that you indicate and now, yes, work fine in php 7.1.26, not appears the error.

Again, thank you!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08692 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete