Got website which I constantly update from 8.5x. to 9.1.2 and always encunter some issues. Now got error 500 in case where I try to change design/block template. Its just does not work. Earlier (I dont remember but think about 9.1) worked, at least when I putted new block and was able to change template BUT after that I can’t. Now even not work change template on new block.
I can’t reproduce this error on fresh install since there simply works.
In my case in EDITMODE seems like loaded in header functions by View::element(‘file.php’) not loaded when throw me error about not found function. Files live in ./application/elements/ .
I have no idea how can I fix it. Of’coz website works and those issues I have only when enter edit-mode.
error Object { type: "Error", message: "Call to undefined function showEditMode()", code: 0, … }
type "Error"
message "Call to undefined function showEditMode()"
code 0
file "/home/***/domains/***.pl/public_html/application/blocks/page_list/templates/uc_ongrid_list.php"
line 12
trace [ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]
errors [ "Call to undefined function showEditMode()" ]
0 "Call to undefined function showEditMode()"
And throwed error:
https://www.***.pl/index.php/ccm/system/dialogs/block/design?cID=208&arHandle=Main&arGridMaximumColumns=&arEnableGridContainer=1&aID=97&bID=186
500 Internal Server Error
WersjaHTTP/3
Sent 2,33 KB (32,48 KB)
strict-origin-when-cross-origin
Highest
cache-control
public
content-encoding
br
content-type
application/json; charset=UTF-8
date
Thu, 29 Sep 2022 10:42:25 GMT
expires
Thu, 29 Sep 2022 10:42:25 GMT
server
LiteSpeed
vary
Accept-Encoding,User-Agent
Accept
*/*
Accept-Encoding
gzip, deflate, br
Accept-Language
pl,en-US;q=0.7,en;q=0.3
Alt-Used
www.***.pl
Connection
keep-alive
Cookie
cookie_policy_accept=yes; CONCRETE=***; CONCRETE_LOGIN=1; ccmAuthUserHash=***
Host
www.***.pl
Referer
https://www.***.pl/szkolenia
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
same-origin
TE
trailers
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
X-Requested-With
XMLHttpRequest
also
XML processing error: syntax error
Area: http://***/index.php/ccm/system/heartbeat?_=1664452822477
Line number: 1, column 1:
``