JSON Error after updating to 2.8.6. #560

Closed
opened 2026-10-05 00:04:13 +02:00 by adam · 21 comments
Owner

Hi,
after updating to 2.8.6 I get an error when I use the user-manager
"DataTables warning (table id = 'userList'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error"

What´s wrong?

best regards
Jörg

Hi, after updating to 2.8.6 I get an error when I use the user-manager "DataTables warning (table id = 'userList'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error" What´s wrong? best regards Jörg <!-- github-sync-id:203629076 -->
adam closed this issue 2026-10-05 00:04:13 +02:00
Author
Owner

We need more details because this is just the generic message when Piwigo displays an error in the ajax call.

With Firefox, right-click on the page and "inspect element". Then go to the "network" tab, refresh the page and click on the "user_list_backend.php" line, to see what is the exact output.

piwigo-286-users-network-tool

We need more details because this is just the generic message when Piwigo displays an error in the ajax call. With Firefox, right-click on the page and "inspect element". Then go to the "network" tab, refresh the page and click on the "user_list_backend.php" line, to see what is the exact output. ![piwigo-286-users-network-tool](https://cloud.githubusercontent.com/assets/9326959/22371861/02058d90-e49a-11e6-81b6-b5bbefdfb824.png) <!-- github-comment-id:275661409 -->
Author
Owner

json1
json2

And also in the topline (you see on pic1):
Warning: session_start(): Failed to read session data: user (path: d:\session) in E:\db-webs\becker.pics\include\common.inc.php on line 149

best regards

Jörg

![json1](https://cloud.githubusercontent.com/assets/7591544/22372026/f44d71a8-e49a-11e6-8f79-877780072c1d.JPG) ![json2](https://cloud.githubusercontent.com/assets/7591544/22372029/f846df7e-e49a-11e6-8f15-511f4da3e8dd.JPG) And also in the topline (you see on pic1): Warning: session_start(): Failed to read session data: user (path: d:\session) in E:\db-webs\becker.pics\include\common.inc.php on line 149 best regards Jörg <!-- github-comment-id:275662625 -->
Author
Owner

OK, so the important here is this warning "Warning: session_start()" it breaks the parsing for the user list. Fix this and your user list will come back.

What can be wrong with d:\session ?

OK, so the important here is this warning "Warning: session_start()" it breaks the parsing for the user list. Fix this and your user list will come back. What can be wrong with d:\session ? <!-- github-comment-id:275663080 -->
Author
Owner

The joke is: there is no drive d:
and nothing shows to that

The joke is: there is no drive d:\ and nothing shows to that <!-- github-comment-id:275663358 -->
Author
Owner

Hello
what is you environment? OS, server type, php version etc

Hello what is you environment? OS, server type, php version etc <!-- github-comment-id:275663407 -->
Author
Owner

This error was not before the update!
It is windows Server 2016 - IIS10

This error was not before the update! It is windows Server 2016 - IIS10 <!-- github-comment-id:275663555 -->
Author
Owner

please also overwrite the files again with the 2.8.6 ones to be sure Or use Check Files Integrity

please also overwrite the file**s** again with the 2.8.6 ones to be sure Or use Check Files Integrity <!-- github-comment-id:275663578 -->
Author
Owner

what file?

what file? <!-- github-comment-id:275663623 -->
Author
Owner
http://piwigo.org/forum/viewtopic.php?id=27637 https://github.com/Piwigo/Piwigo/issues/586 <!-- github-comment-id:275663674 -->
Author
Owner

Don´t know what file it should be???
PS: It is PHP 7.1

Don´t know what file it should be??? PS: It is PHP 7.1 <!-- github-comment-id:275664040 -->
Author
Owner

Oh but you are the original poster of the issue 586!
Does your old workaround with the DB user recreation works again

Oh but you are the original poster of the issue 586! Does your old workaround with the DB user recreation works again <!-- github-comment-id:275664179 -->
Author
Owner

I did, and now I have two errors!

Notice: Undefined variable: results in E:\db-webs\becker.pics\include\functions_session.inc.php on line 148

Notice: Trying to get property of non-object in E:\db-webs\becker.pics\include\dblayer\functions_mysqli.inc.php on line 216

I did, and now I have two errors! Notice: Undefined variable: results in E:\db-webs\becker.pics\include\functions_session.inc.php on line 148 Notice: Trying to get property of non-object in E:\db-webs\becker.pics\include\dblayer\functions_mysqli.inc.php on line 216 <!-- github-comment-id:275665164 -->
Author
Owner

those are just Notices but still they shouldn't appear. Is there anything not operational?

those are just Notices but still they shouldn't appear. Is there anything not operational? <!-- github-comment-id:275665448 -->
Author
Owner

The JSON Error see postings before

The JSON Error see postings before <!-- github-comment-id:275665684 -->
Author
Owner

Yeah but the JSON Error happens when debug messages are displayed in the JSON respond so if you lower the level of Php error reporting, it shoudl work.
And your screen shot doesn't show the content of the JSON call but the content of the css file.

Yeah but the JSON Error happens when debug messages are displayed in the JSON respond so if you lower the level of Php error reporting, it shoudl work. And your screen shot doesn't show the content of the JSON call but the content of the css file. <!-- github-comment-id:275666266 -->
Author
Owner

json3

![json3](https://cloud.githubusercontent.com/assets/7591544/22372640/2582d9fe-e49e-11e6-93a9-452464e6b201.JPG) <!-- github-comment-id:275666708 -->
Author
Owner

Then go to the "network" tab, refresh the page and click on the "user_list_backend.php" line, to see what is the exact output.

> Then go to the "network" tab, refresh the page and click on the "user_list_backend.php" line, to see what is the exact output. <!-- github-comment-id:275666869 -->
Author
Owner

json4

![json4](https://cloud.githubusercontent.com/assets/7591544/22372765/d2b3d01a-e49e-11e6-811d-4e8f70a6de87.JPG) <!-- github-comment-id:275667618 -->
Author
Owner

Almost there Now Antwort

Almost there Now Antwort <!-- github-comment-id:275667897 -->
Author
Owner

whats that????? I did nothing and the error is away???????

whats that????? I did nothing and the error is away??????? <!-- github-comment-id:275669356 -->
Author
Owner

I think that the clues points toward an instability of the server. Your installation might not be totally reliable especially the mysql server. Then maybe a caching issue maintains the error a little longer after it has been fixed. But by far I'm not the most skilled one from the team.

I think that the clues points toward an instability of the server. Your installation might not be totally reliable especially the mysql server. Then maybe a caching issue maintains the error a little longer after it has been fixed. But by far I'm not the most skilled one from the team. <!-- github-comment-id:275670195 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#560