Error after update
-
Notice: Undefined index: post_type in /home/mywebsite/www/wp-content/plugins/easy-content-templates/obj/template.class.php on line 234
fix ?
ps : it’s in debug mode
https://www.ads-software.com/plugins/easy-content-templates/
-
hey thanks for reporting that in and being specific about it (line 234), i’ll try to replicate that error and will update it with a fix.
fixed in 1.4.2
I still get this when trying to load the template from HTML view, something I was able to do before you initial update.
It’s important for me to be able to load the template from HTML view, because I’m using special characters that end up getting converted in the Visual editor, even though I need them to remain as special characters without being converted.
Any chance this can be dealt with, so that the template can be loaded from HTML view, like they could be done before?
Let me just add, in case there’s some confusion. I discovered about a year ago that the plugin wouldn’t work if you disabled the Visual Editor. As long as the Visual Editor is enabled in general, I used to be able to remain in the HTML viewer, with the Visual Editor active in general and load a template to show in the body of the post with its HTML tags and special characters. I can’t do that now. This is what I want to be able to go back to doing.
Thanks, in advance, for your help.
Hey filedsf, I’ll check it out really quick. Sorry for the inconvenience.
Ok this one is fixed. Thanks for giving the details. Version 1.4.3 has been tested to load the content in 3 views (HTML/Text, Visual, HTML/Text with visual disabled).
Can you please confirm if the issue has been resolved on your end? Thanks.
Ok this one is fixed. Thanks for giving the details. Version 1.4.3 has been tested to load the content in 3 views (HTML/Text, Visual, HTML/Text with visual disabled).
Can you please confirm if the issue has been resolved on your end? Thanks.
I just updated to 1.4.3, and I’m still getting the “undefined” when trying to load the template in HTML view.
I logged out and logged back into my site, and I’m still getting the undefined when loading from HTML view.
It’s not working for me in spite of your update.
Hi fieldsf,
Your site might be running a cached copy (old version) of the script file that loads the template. Try clearing your browser cache or (for most browsers and OSes) pressing CTRL+F5 to do a hard-refresh.
Hope that works.
Hi fieldsf, check out more of this “developer’s” incompetence here
For a working solution to your problem, try Simple Content Templates instead.
??
wow teracow, now that’s not just being egotistical, that’s also unethical.
people are free to choose the plugin they use though. i’m wondering how could you smile after doing something unethical?
japaalekhinllemos: I’ve been doing web design/development since 1999, so the first thing I did before logging out and logging back in was try the CTRL+F5. I thought that went without having to be said, so that’s why I didn’t mention it. Apologies for not letting you know that I’d already tried that before logging out and back in.
teracow: Thanks for your suggestion. I used SCT prior to switching to ECT, and I find ECT far superior to SCT for what I need. Nothing at all against SCT, because it did work fine, but it wasn’t optimal for my needs. Now I see that SCT wants you to upgrade to and pay for a Pro version to get several of the features that come free with ECT.
japaalekhinllemos: There is some merit in what you’re saying, though, because I opened my site in Firefox, where I never log into my site, and tried loading the template in the HTML viewer, and it worked perfectly without issue. I think that’s odd since I did already to do the CTRL+F5 on the Chrome browser, and the template still is not loading properly in the HTML viewer in the Chrome browser. Anyway, I’ll see if the issue has to do with some of the extensions I have loaded in Chrome. I’ll keep you posted.
UPDATE: This may not work for everyone, but it worked for me. First, I copied/pasted all my templates into .txt files, so I wouldn’t lose them. Then I deactivated and deleted the ECT plugin. I logged out and logged back in. I re-installed the ECT plugin, and all my templates came right back. I tried loading a template in HTML view, and I got the “undefined” again. Then I did the CTRL+F5 once more and tried to load the template again. It worked without issue. All is right with my world now. Hopefully, this will help someone else.
Thanks for helping with this.
You might want to try accessing the script directly (yourdomain.com/wp-content/plugins/easy-content-templates/js/templates.js) and force refreshing that. near the bottom you should see something like this:
if(visual_mode){ switchEditors.go("content", "html"); $("#content").val(unescape(data.data.content)); switchEditors.go("content", "tinymce"); }else{ $("#content").val(unescape(data.data.content)); }
please note that after
}else{
, the faulty one only hadunescape(data.content)
instead ofunescape(data.data.content)
- The topic ‘Error after update’ is closed to new replies.