Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 23 - Pages: 2 [ Previous | 1 2 ] - Last Post: 31 Mar 25, 15:39 Last Post By: ming666 Threads: [ Previous | Next ]
ming666

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, 15:19   in response to: Laza in response to: Laza
 
I know it's not a special character, see earlier in the thread and if I split it into sub folders it works OK (same characters)

Do you know of other albums running successfully (on any server) with a data1.json file bigger than 4mb?
MarkusD

Posts: 937
Registered: 13-Apr-2006
Re: Limit on the total amount of info in the comments for the whole album?
Posted: 28 Mar 25, 15:26   in response to: ming666 in response to: ming666
 
Have a look at this thread:
https://jalbum.net/forum/thread.jspa?messageID=358479

This will reduce the size of the json-files dramatically. It just cuts of the value for "comment" and "description" in the resulting json-files. For me this works fine, maybe for you to. Cheers, Markus
ming666

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, 15:32   in response to: MarkusD in response to: MarkusD
 
Thank you I will check it out and report back
ming666

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, 16:11   in response to: MarkusD in response to: MarkusD
 
Well I tried it and it made no difference at all the the size of my json files!
Tried using the file he had uploaded and tried editing the one already there, neither made a difference
Laza

Posts: 1,579
Registered: 6-Sep-2005
Re: Limit on the total amount of info in the comments for the whole album?
Posted: 30 Mar 25, 09:53   in response to: ming666 in response to: ming666
 
Ok I've just noticed that I have a different album with a deep-data.json file bigger than 4bm that works fine!
The page does not load the deep-data.json file if no tag cloud is used for the "Whole album". (Normally, tree.json and data1.json is enough.) Try starting a Search in that album, and it will show whether deep-data can be loaded successfully in that album.

It's easy to find out if the server is the culprit by testing the local album. Does the local album work? Also, your server guy could have looked into the server log to determine the actual error. I bet it's some kind of file size restriction.
ming666

Posts: 90
Registered: 27-Aug-2019
Re: Limit on the total amount of info in the comments for the whole album?
Posted: 30 Mar 25, 10:13   in response to: Laza in response to: Laza
 
Laza wrote:
Ok I've just noticed that I have a different album with a deep-data.json file bigger than 4bm that works fine!
The page does not load the deep-data.json file if no tag cloud is used for the "Whole album". (Normally, tree.json and data1.json is enough.) Try starting a Search in that album, and it will show whether deep-data can be loaded successfully in that album.

It's easy to find out if the server is the culprit by testing the local album. Does the local >album work? Also, your server guy could have looked into the server log to determine the >actual error. I bet it's some kind of file size restriction.


Thanks
The local album does work.
I have asked him to check the logs
and yes a search breaks the album that works

Edited by: ming666 on 30 Mar 2025, 10:20

ming666

Posts: 90
Registered: 27-Aug-2019
Re: Limit on the total amount of info in the comments for the whole album?
Posted: 31 Mar 25, 15:32   in response to: Laza in response to: Laza
 
Laza wrote:
Ok I've just noticed that I have a different album with a deep-data.json file bigger than 4bm that works fine!
The page does not load the deep-data.json file if no tag cloud is used for the "Whole album". (Normally, tree.json and data1.json is enough.) Try starting a Search in that album, and it will show whether deep-data can be loaded successfully in that album.

It's easy to find out if the server is the culprit by testing the local album. Does the local album work? Also, your server guy could have looked into the server log to determine the actual error. I bet it's some kind of file size restriction.


OK I (well I say I) have fixed it
I suddenly recalled an issue from three years ago, which surprised me as I usually can't recall what I did yesterday, where search wasn't working.

It was the same issue I'm having now except the album was working as it was split into folders so the data1.json was smaller than 4MB but the deep-data.json was bigger than 4MB.

Thread here
https://jalbum.net/forum/thread.jspa?threadID=58082&start=15&tstart=0

Even though we didn't pin it down to a size issue in that thread it was fixed.

The fix (as per my server guy from 3 years ago) was to add a web.config file (see bottom) with the below in it to the folder.

His note in bold below

The MIME type was set as recommended (and probably could also be configured as text/json), however the isapi handler was registered to handle the request (which is normal if you are dynamically serving json from the server side application) rather that the generic static file handler.

I just removed the isapi handler registration for .json files from that folder.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <remove name="JSON" />
        </handlers>
    </system.webServer>
</configuration>


Edited by: ming666 on 31 Mar 2025, 15:33
JeffTucker

Posts: 8,591
Registered: 31-Jan-2006
Re: Limit on the total amount of info in the comments for the whole album?
Posted: 31 Mar 25, 15:36   in response to: ming666 in response to: ming666
 
In short, the default configuration of IIS was the cause.

On a normal Apache server, you'd never have encountered this in the first place. IIS is a curse.
ming666

Posts: 90
Registered: 27-Aug-2019
Re: Limit on the total amount of info in the comments for the whole album?
Posted: 31 Mar 25, 15:39   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
In short, the default configuration of IIS was the cause.

On a normal Apache server, you'd never have encountered this in the first place. IIS is a >curse.


I'm looking at moving but it's a huge site and we also have a private sharepoint database hosted on it so it's not easy.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums