Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: PHP warning "A non-numeric value encountered" in several pages #6712

Closed
marcosgdf opened this issue Apr 14, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@marcosgdf
Copy link
Contributor

commented Apr 14, 2017

Bug

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/admin/dict.php on line 76
Call Stack
#	Time	Memory	Function	Location
1	0.0488	381008	{main}( )	.../dict.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/admin/dict.php on line 77
Call Stack
#	Time	Memory	Function	Location
1	0.0488	381008	{main}( )	.../dict.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/admin/dict.php on line 78
Call Stack
#	Time	Memory	Function	Location
1	0.0488	381008	{main}( )	.../dict.php:0
( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/admin/translation.php on line 53
Call Stack
#	Time	Memory	Function	Location
1	0.0387	370344	{main}( )	.../translation.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/admin/translation.php on line 54
Call Stack
#	Time	Memory	Function	Location
1	0.0387	370344	{main}( )	.../translation.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/admin/translation.php on line 55
Call Stack
#	Time	Memory	Function	Location
1	0.0387	370344	{main}( )	.../translation.php:0
( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3259
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3273
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3281
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3281
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3281
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3281
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3281
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363
 12345...323
( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/core/lib/functions.lib.php on line 3380
Call Stack
#	Time	Memory	Function	Location
1	0.0001	368968	{main}( )	.../translation.php:0
2	0.5494	4289640	print_barre_liste( )	.../translation.php:363
3	0.5502	4290632	print_fleche_navigation( )	.../functions.lib.php:3295

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/comm/card.php on line 70
Call Stack
#	Time	Memory	Function	Location
1	0.0213	381200	{main}( )	.../card.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/comm/card.php on line 71
Call Stack
#	Time	Memory	Function	Location
1	0.0213	381200	{main}( )	.../card.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/comm/card.php on line 72
Call Stack
#	Time	Memory	Function	Location
1	0.0213	381200	{main}( )	.../card.php:0

Environment

  • Version: 5.0.2
  • PHP: 7.1
@marcosgdf

This comment has been minimized.

Copy link
Contributor Author

commented Apr 14, 2017

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/product/list.php on line 70
Call Stack
#	Time	Memory	Function	Location
1	0.0655	377208	{main}( )	.../list.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/product/list.php on line 71
Call Stack
#	Time	Memory	Function	Location
1	0.0655	377208	{main}( )	.../list.php:0

( ! ) Warning: A non-numeric value encountered in /var/www/htdocs/product/list.php on line 72
Call Stack
#	Time	Memory	Function	Location
1	0.0655	377208	{main}( )	.../list.php:0
@SylvainLegrand

This comment has been minimized.

Copy link

commented Jul 14, 2017

Hello,

I find a solution :
Replace if ($page == -1) { $page = 0 ; }
by if (empty($page) || $page == -1) { $page = 0 ; }

But you should do it on 67 files , 47 folders.
I maid the job, see zip file attached.
htdocs.zip

I hope that help someone ; if you see bug or problem, may you report it ? thank's.

Greetings,
Sylvain.

@atm-maxime

This comment has been minimized.

Copy link
Member

commented May 19, 2019

Too old version, please upgrade and reopen if needed.

@atm-maxime atm-maxime closed this May 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.