MyBB Community Forums
can't delete event after upgrade to 1.8.20 - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: Installation and Upgrades Support (https://community.mybb.com/forum-182.html)
+--- Thread: can't delete event after upgrade to 1.8.20 (/thread-223098.html)



can't delete event after upgrade to 1.8.20 - sioc - 2019-05-19

Hello,

I just migrate from 1.8.19 to 1.8.20.

My forum uses a custom template, In the event page, if i open a public event the delete button doesn't work.

on the delete link i got : javascript:MyBB.deleteEvent(33); (the 33 is the right eid)

But nothing happen if clicked. 

I tried to change to default Mybb template, and that doesn't work too.

Any idea ?


RE: can't delete event after upgrade to 1.8.20 - chack1172 - 2019-05-19

Have you checked in console in there are js issues?


RE: can't delete event after upgrade to 1.8.20 - sioc - 2019-05-20

Yes i do :


general.js?ver=1820:118 Uncaught ReferenceError: templates is not defined
   at Object.prompt (general.js?ver=1820:118)
   at Object.deleteEvent (general.js?ver=1820:148)
   at <anonymous>:1:6
prompt @ general.js?ver=1820:118
deleteEvent @ general.js?ver=1820:148
(anonymous) @ VM2830:1

But i don(t know what to do with that one...
if you want to have a look to my headers : https://tousrolistes.fr/forums/


RE: can't delete event after upgrade to 1.8.20 - chack1172 - 2019-05-20

Edit template headerinclude, before this code:
var cookieDomain = "{$mybb->settings['cookiedomain']}";
Add this:
	var templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};



RE: can't delete event after upgrade to 1.8.20 - sioc - 2019-05-20

THANKS !

Solved Smile