jbroadway / elefant

Elefant, the refreshingly simple PHP CMS and web framework.
http://www.elefantcms.com
MIT License
208 stars 39 forks source link

Website breaks without any major changes #319

Closed arefbt closed 2 years ago

arefbt commented 2 years ago

My website broke twice and I had to reinstall the cms twice. I didn't make any major changes and even tried to replace the files but nothing helps. It's a bug which shows file uploader in frontend. http://www.monarta.com/ please check.

lux commented 2 years ago

It looks like you might have set the status of the index page to private, which could cause it to forward to the admin login page to password protect it.

arefbt commented 2 years ago

I have restored all the minimalist theme files to original but nothing happens however if I change the default theme to bigtype the website works again. The access to the index page is set public and not private.

lux commented 2 years ago

Thanks for emailing me the additional details so I could take a closer look.

It seems that the filemanager/photo helper was the cause of the issue, where somehow the templates were rendered as if that helper was missing and rendered the filemanager/index script instead.

I was able to fix it by editing the minimal/inc/index and minimal/inc/navbar templates, which cleared the cache and allowed the helper, which was embedded in both of those templates, to re-render properly. The templates themselves are unchanged, I just removed the tag, saved the templates, then added it back in and saved them again.

I believe that should fix the issue moving forward, but let me know if you run into any more issues.

arefbt commented 2 years ago

Honestly I thank you so much for saving my day. I still don't understand why such a wonderful cms has been underrated. I have used most of the widely available cms's but didn't find such a simple yet very powerful cms.

On Sun, Nov 28, 2021, 04:12 John Luxford @.***> wrote:

Thanks for emailing me the additional details so I could take a closer look.

It seems that the filemanager/photo https://www.elefantcms.com/helper/filemanager/photo helper was the cause of the issue, where somehow the templates were rendered as if that helper was missing and rendered the filemanager/index script instead.

I was able to fix it by editing the minimal/inc/index and minimal/inc/navbar templates, which cleared the cache and allowed the helper, which was embedded in both of those templates, to re-render properly. The templates themselves are unchanged, I just removed the tag, saved the templates, then added it back in and saved them again.

I believe that should fix the issue moving forward, but let me know if you run into any more issues.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jbroadway/elefant/issues/319#issuecomment-980801568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWRROGOKA6YZQGZRJSD7HJTUOFNGHANCNFSM5I2Y7L5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.