|
Replies:
23
-
Pages:
2
[
1
2
| Next
]
-
Last Post:
31 Mar 25, 15:39
Last Post By: ming666
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Limit on the total amount of info in the comments for the whole album?
Posted:
17 Mar 25, 15:26
|
|
|
I have 623 entries in an album, all with lengthy comments.
If i try and add another image and comments it doesn't work. Throws a server error:
"Can´t load data for folder "
console shows:
jalbum-album.js Error: Objects could not be loaded for "data1.json?1742221003": error, Internal Server Error
I @ all.min.js?v=6.6:9
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Manifest: Line: 1, column: 1, Syntax error.
It doesn't matter if I add a different photo and different associated comments.
If I remove comments or even only had half of them it works but then I cannot add more photos and comments. Like I've hit a limit?
It's behind a login area of the site or 'd give you a link. I can PM the link and a login though
Edited by: ming666 on 17 Mar 2025, 15:27
Edited by: ming666 on 17 Mar 2025, 15:29
|
|
|
Posts:
1,580
Registered:
6-Sep-2005
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
17 Mar 25, 22:07
in response to: ming666
|
|
|
|
This must be a broken database. I need a link to the album to see what caused this. My email: laza@jalbum.net
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
17 Mar 25, 23:11
in response to: Laza
|
|
|
|
Thanks I have emailed you
|
|
|
Posts:
1,580
Registered:
6-Sep-2005
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 07:55
in response to: ming666
|
|
|
|
The server responds with "error 500, Internal Server Error" when the album tries to access the data1.json file. (Also, the res/site.webmanifest, but that doesn't break the album.) If you encounter a problem, check the browser console (F12)! Check the local album before you upload.
I don't know why this happens, and the database is so huge I cannot pinpoint it by looking into it. You may use an illegal character that blocks the server from serving the whole file.
First, I'd check if removing "${comment}" from the image caption template can fix this. (If so, this is a problem in the skin, which compiles the image caption from the comment. Both are included in the JSON file.) I guess it's not the case.
Then, I'd go through the comments and look for irregularities. A missing number in a Unicode character could lead to an invalid data file. You can exclude half of the images and repeat halving until you find the wrong comment.
|
|
|
Posts:
1,580
Registered:
6-Sep-2005
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 08:11
in response to: ming666
|
|
|
|
Here's what Gemini told about this:
Yes, a file containing special characters, including those that might resemble or trigger an End-of-File (EOF) condition, can indeed lead to an Internal Server Error (500). Here's a breakdown of how this can happen:
1. Character Encoding Issues:
Invalid Encoding: If a file is encoded with a character set that the server or the application processing it doesn't recognize or handle correctly, it can lead to parsing errors. Special characters outside the expected encoding range can cause these errors.
UTF-8 Problems: Even with UTF-8, which is very robust, malformed UTF-8 sequences can crash parsers or lead to unexpected behavior. Some special characters may be represented by a multi-byte sequence, and if that sequence is corrupted, it will cause errors.
2. Parsing and Interpretation:
Scripting Languages: If the file is being processed by a scripting language (like PHP, Python, or Perl), certain characters might be interpreted as control characters or syntax errors. For instance, a character that breaks a string or prematurely terminates a script block can cause a 500 error.
Configuration Files: If the file is a configuration file (like .htaccess, web.config, or a JSON/YAML configuration), special characters that violate the file's syntax or structure can lead to parsing failures.
Data Files: If the file is a data file (like CSV, XML, or JSON), unexpected characters can disrupt the parsing process, especially if the parser is not designed to handle them gracefully.
3. EOF and Related Issues:
Premature EOF: While a literal EOF character is a system-level concept, certain characters or sequences might be interpreted as a premature end of the file by the application reading it. This can lead to incomplete processing and errors.
Control Characters: Some control characters, which are non-printing characters used for various purposes, can interfere with file processing. For example, characters that affect line endings or data streams can cause problems.
Binary Data in Text Files: If a text file accidentally contains binary data, it might include characters that are not meant to be interpreted as text, potentially leading to parsing errors.
4. Server-Side Handling:
Insufficient Error Handling: If the server-side application doesn't have robust error handling, unexpected characters can cause the application to crash, resulting in a 500 error.
Security Vulnerabilities: In some cases, special characters could be used to exploit vulnerabilities in the server-side application, leading to unexpected behavior and potentially a 500 error.
Example Scenarios:
A PHP script that reads a text file and encounters an unexpected null character (\0) might crash.
A JSON file with an unescaped control character might fail to parse, causing an error in a web application.
A malformed UTF-8 sequence in a configuration file could prevent the server from starting.
In summary: While a literal EOF is more of a system level indicator, special characters that break parsing rules, encoding rules, or application logic, can absolutely result in a 500 Internal Server error.
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 09:52
in response to: Laza
|
|
|
Thanks for that.
Local album works no problem
FYI I'm adding these photos one at a time and making the album so I know the exact point at which it broke.
I think we can rule out a character in the comments breaking it because I had the same thought and I removed the last comment a line at a time until it worked. I figured that something in that line was breaking it. I couldn't see anything.
Then I removed the whole comment and added a different comment of similar length from an earlier photo (which already worked) and that also broke it
In fact I can get it to the exact place where if I add anything more it breaks
E.g. this, added to the comment after that point will break it.
<p>adding this breaks it<br>
</p>
If you look at it now it works. Adding anything more at all breaks it
https://www.e-yaji.com/members/pages/WPST/book2/Exhib/index.html
I've just noticed that all my albums, even the ones that work display the errors in the console
site.webmanifest:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
site.webmanifest:1 Manifest: Line: 1, column: 1, Syntax error.
site.webmanifest:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Edited by: ming666 on 18 Mar 2025, 11:09
Edited by: ming666 on 18 Mar 2025, 11:22
|
|
|
Posts:
1,580
Registered:
6-Sep-2005
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:20
in response to: ming666
|
|
|
|
If it works locally but breaks only on the server, then your server reads the JSON file into the memory and fails at a certain point. I have never seen such behavior on Apache servers, even with much larger JSON files, but your server is running Microsoft IIS7.0. You might need to find the setting to avoid caching JSON files or give the server larger memory. It seems it can't serve JSON files larger than 4 MB. (Or perhaps move to an Apache server.)
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:35
in response to: Laza
|
|
|
|
Thanks
I'll talk to my server guy
|
|
|
Posts:
8,596
Registered:
31-Jan-2006
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:41
in response to: Laza
|
|
|
(Or perhaps move to an Apache server.)
Ding, ding, ding! We have the winner!!
There is no reason to stick with a balky Microsoft IIS server, unless you're running a bunch of .NET applications.
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:49
in response to: JeffTucker
|
|
|
|
Or, you have so much on the server that moving would be a huge pain in the arse
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:50
in response to: Laza
|
|
|
|
OK I've just compiled it with a different skin, the json is still over 4mb and it works
I mean lots of other things are broken due to the swap but the server is not having a problem
Edited by: ming666 on 31 Mar 2025, 10:48
|
|
|
Posts:
8,596
Registered:
31-Jan-2006
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:53
in response to: ming666
|
|
|
|
Plain is not a JSON-driven skin, so the file is never being read.
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
18 Mar 25, 12:54
in response to: JeffTucker
|
|
|
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
28 Mar 25, 13:47
in response to: Laza
|
|
|
|
My server guy checked the settings
"went through all the IIS settings. They seem to be fine and unlimited"
Ok I've just noticed that I have a different album with a deep-data.json file bigger than 4bm that works fine!
It is an album with sub albums though rather than an album with all the photo is one album
The one that doesn't work has a data.json file bigger than 4mb
I have no idea what that adds to the equation except that the server can cope with
deep-data.json being over 4mb but not data.json being over 4mb
|
|
|
Posts:
1,580
Registered:
6-Sep-2005
|
|
|
|
Re: Limit on the total amount of info in the comments for the whole album?
Posted:
28 Mar 25, 15:16
in response to: ming666
|
|
|
|
Not only can the size trigger Internal Server Error 500, but a special character, for example, that the server cannot decode can also do that. If the site works locally but fails when it runs on IIS, then it's a server software or server configuration error. Try to upload the album to another type of server as a test!
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|