Hi, I have problem with page that have over 30 fields. When I try to edit this page after 30 sec … browser shows 503 error. On other pages I don’t have this problem. Is it possible because page is have to many info? Or this could be of using plugins or custom fields?
Monosnap (some time its loads, but it loads very small, i have attached example video to shows how slow is page loading and how quick loads other pages)
Kirby and Panel version is 2.4.0
First of all I would try to disable all plugins and check if the error persists, then enable them again one by one.
Are there many different custom fields on that page?
I think that the problem that i use json files to load info to select fields http://take.ms/opgvi
And this can overload server… but this problem starts when we start adding textarea fields…
and upgrade kirby to 2.4.0
Have you tried to adapt the max_execution_time
and memory_limit
values?
Do you get any errors in your php_error log, or any javascript errors?
Hi,
I moved to new server… and up
max_execution_time and
memory_limit
So 503 error is gone.
But Page in Panel is loading to slow.
I have some JSON files that connected in blueprints with this page…
But I don’t think that they “eat” to much memory
But if I delete them, and try to load - page is loads quickly. But I need them (for example I have JSON with countries, languages, currencies…)
Could it be problem with number of posts? I have 100 pages, maybe this is slowdown work?
How are the JSON files generated and from what sort of data?
https://99bookmakers.com/api/country.json
this is example of JSON
and this is blueprint
All info I use with multiselect field so result you can see on this page https://99bookmakers.com/review/1xbet
title: Bookmaker Item
pages: false
files:
sortable: true
fields:
tab_info:
label: Page Details
type: tabs
title:
label: Bookmaker Name
type: text
description:
label: Bookmaker Description
type: textarea
redirect_link:
label: Affiliate Link
type: multiselect
options: query
query:
page: go
fetch: children
value: '{{url}}'
text: '{{title}}'
flip: true
about_bookmaker:
label: About Bookmaker
type: textarea
featured:
label: Featured
type: toggle
text: yes/no
about_background:
label: About Background Color
type: color
width: 1/2
about_color:
label: About Font Color
type: color
width: 1/2
bookmaker_logo:
label: Bookmaker Logo
type: selector
mode: single
types:
- image
site_screenshot:
label: Site Screenshot
type: gallery
aspectRatio: 4:3
official_name:
label: Official Name
type: text
address:
label: Address
type: text
website_url:
label: Website URL
type: url
terms_of_conditions:
label: Terms of Conditions
type: url
privacy:
label: Privacy
type: url
email:
label: Main Email
type: email
phone_number:
label: Phone Number
type: tel
live_chat:
label: Live Chat
type: toggle
text: yes/no
website_language:
label: Website Languages
type: multiselect
options: https://99bookmakers.com/api/language.json
bookmaker_type:
label: Bookmaker Type
type: multiselect
options: https://99bookmakers.com/api/bookmaker_type.json
bookmaker_license:
label: Bookmaker License
type: multiselect
options: https://99bookmakers.com/api/license.json
online_since:
label: Online Since
type: text
listed_on_stock_exchange:
label: Listed on Stock Exchange
type: toggle
text: yes/no
currency:
label: Account Currencies
type: multiselect
options: https://99bookmakers.com/api/currency.json
ssl_encryption:
label: SSL Encryption
type: toggle
text: yes/no
fair_gaming_body:
label: Fair Gaming Body
type: multiselect
options: https://99bookmakers.com/api/fair_gaming_body.json
market:
label: Markets
type: multiselect
options: https://99bookmakers.com/api/market.json
odds_formats:
label: Odds Formats
type: multiselect
options: https://99bookmakers.com/api/odds_formats.json
minimum_bet:
label: Minimum Bet
type: text
maximum_bet:
label: Maximum Bet
type: text
maximum_winning:
label: Maximum Winning
type: text
average_payout:
label: Average Payout
type: text
betting_history:
label: Betting History
type: toggle
text: yes/no
live_betting:
label: Live Betting
type: toggle
text: yes/no
live_streaming:
label: Live Streaming
type: toggle
text: yes/no
asian_handicap:
label: Asian Handicap
type: toggle
text: yes/no
mobile_betting:
label: Mobile Betting
type: toggle
text: yes/no
mobile_app:
label: Mobile App
type: checkboxes
columns: 3
options:
apple: Apple
android: Android
windows: Windows
advantages:
label: Advantages
type: list
placeholder: Add a new Advantage
disadvantages:
label: Disadvantages
type: list
placeholder: Add a new Disadvantage
deposit:
label: Deposit
type: multiselect
options: https://99bookmakers.com/api/payment.json
withdrawal:
label: Withdrawal
type: multiselect
options: https://99bookmakers.com/api/payment.json
transaction_history:
label: Transaction History
type: toggle
text: yes/no
popular_countries:
label: Popular Countries
type: multiselect
options: https://99bookmakers.com/api/country.json
excluded_countries:
label: Excluded Countries
type: multiselect
options: https://99bookmakers.com/api/country.json
Hm, I guess these are pre-generated JSON files, not generated on the fly?
Do you use any plugins, like autogit or similar? Do pages have a lot of images?
yes this is pre-generated JSON files
I use this plugins http://take.ms/T1LZH
Right now on page only 2 images (plan to be 5-6)
Does not sound like a lot. Could you test if you get the same effect with a fresh Starterkit and those json files (using a simple select field)? Somehow, we have to narrow this down.
Im install clean Kirby
When I use plugin multi select pages loads slow as at production server
When I use simple select field pages loads much faster
so sad, that the problem with multiselect field, but I need this functionality to choose few items, not just only one.
Im think that this isn’t PHP problem this is JS problem, because when page is loading, other pages from my site isn’t loading (I mean frontpages), but if I open other browser they loads fine.
Have you updated to the latest Kirby/Panel version (2.4.1)? When was the multi-select plugin updated last?
As I see in Multiselect field May 16
Yes i’m update kirby to 2.4.1
As You see in fresh kirby kit also this problem…
Any suggestions? What it could be? And how this problem can be resolved?
Hard to tell, at the moment it looks as if the problem is related to the multi-select field. But since when do you have the problem? Only after updating to 2.4 or before?
I think that the problem from 2.3.0 version… but I didn’t remember. Maybe problem no with kirby CMS, maybe I update multi-select field and this is the reason.
Well, I can reproduce this with a fresh Starterkit and the multi-select field. It seems that the more multi-select fields you add, the slower it gets, and you are using quite a few in a single page.
I tested with older version of the plugin, but the effect is the same.
Have you tried with adding the options manually rather then reading from file? At least the option lists are quite static, so it would not be necessary to read from file?
Yep, without JSON it starts works much faster! Thanks a lot!!! You save me!
If you use global field definitions for each field, you can keep your blueprints clean of all the options.