Edit in designer, save button not working

Laraship QuestionsCategory: TechnicalEdit in designer, save button not working
mostafa922 asked 6 years ago

Hello Guys,I have a problem with editing pages using \\" Edit In Designer \\", After editing any page using that feature the save button is not working! What should I do?I think its Jquery problem! thats why I uploaded a screenshot about it.

Attachments
3 Answers
laraship Staff answered 6 years ago

Hello,

We just tested and confirmed the Designer is working fine, we noticed the JS console error, but that not preventing the designer from saving content

Mostapha Ramadan replied 6 years ago

Brothers why its not working for me! İts not working after fresh installed! what is the problem then? İ got 11 javascript errors !

mostafa922 replied 6 years ago

Please Guys I need your help! any advice! Looks like the problem is because of permissions for Jquery here is the error showing in the console:

PUT http://www.profits-fx.com/w/public/cms/pages/92mKbEz7M8/save-design 403 (Forbidden) jquery-3.2.1.min.js:4

Uncaught TypeError: Cannot read property ‘indexOf’ of undefined design:332
at console.warn (design:332)
at Object.error (design:159)
at i (jquery-3.2.1.min.js:2)
at Object.fireWith [as rejectWith] (jquery-3.2.1.min.js:2)
at A (jquery-3.2.1.min.js:4)
at XMLHttpRequest. (jquery-3.2.1.min.js:4)

laraship Staff answered 6 years ago

Hello,

Can you advise which platform and which theme is activated ?

Mostapha Ramadan replied 6 years ago

Thanks for your reply, İm using ” Laraship Form Builder & CMS ” , admin theme “corals-admin (v1.4)” and İ tried that on all the admin themes and all frontend themes but İ got the same problem.

Mostapha Ramadan replied 6 years ago

After researching about the problem İ found that the reason is a security server side problem, that prohibiting from inserting JS codes in the database using ajax! which giving 403 Forbidden error.

What İ did to fix the problem ” temporary ” is by editit this file:
/Corals/modules/CMS/resources/views/designer/designer.blade.php , and removed +JS , from var content = html + css + js; of the ajax code! Eveything is working now but without JS codes.

Do you have any suggestion? What to tell to the Hosting company! what should they stop to avoid that problem?

laraship Staff answered 6 years ago

Hello

Can you update the express them json file under

resources/themes/express/theme.json to be like

{

"type": "frontend",

"name": "corals-express",

"extends": null,

"caption": "Corals Express",

"version": "1.2.1",

"assetPath": "assets\/themes\/express",

"css": [

"css/bootstrap.css",

"css/theme.min.css"

],

"js": [

"js/theme.min.js"

]

}