jacmaes Posted September 26, 2012 Share Posted September 26, 2012 I've just upgraded to the latest version of PW (from 2.2.3). Now I'm getting the following error whenever I try to insert a link to another page from TinyMCE: Error Call to undefined method stdClass::attr() (line 56 of ....../public_html/wire/modules/Process/ProcessPageEditLink/ProcessPageEditLink.module) In the Console Tab of Chrome's Web Inspector, there's the following error: "Failed to load resource: the server responded with a status of 500 (Internal Server Error) ..../processwire/page/link/?id=1176&modal=1" Link to comment Share on other sites More sharing options...
apeisa Posted September 26, 2012 Share Posted September 26, 2012 Hmm.. I'm not able to reproduce this and running the latest 2.2.9. version. Any 3rd party modules installed? Link to comment Share on other sites More sharing options...
jacmaes Posted September 26, 2012 Author Share Posted September 26, 2012 Nope, no third party module installed. I just have a multi-language setup (spanish by default + english) and I'm using CodeMagic. The rest is pretty much the default setup. The error in Chrome's Web Inspector seems to refer to line 17 of JqueryCore.js (JqueryCore.js:17) Link to comment Share on other sites More sharing options...
apeisa Posted September 26, 2012 Share Posted September 26, 2012 You aren't using the dev branch where there is updated jQuery version? Link to comment Share on other sites More sharing options...
Soma Posted September 26, 2012 Share Posted September 26, 2012 Are you using abstract link module from Ryan? Link to comment Share on other sites More sharing options...
jacmaes Posted September 26, 2012 Author Share Posted September 26, 2012 @apeisa: The jQuery Core is 1.6.2, and jQuery UI is 1.8.14. @soma: No, I'm not using that module as far as I'm aware. The only thing that I've not updated as recommended is the .htaccess file, but I don't think that's related. Everything else in TinyMCE is working fine, except that new fields that I created after updating do not seem to register CodeMagic. And I might be using the dev branch without realizing. I clicked on the "Download .zip" button on the following page: https://github.com/ryancramerdesign/ProcessWire/archives/master Link to comment Share on other sites More sharing options...
ryan Posted September 26, 2012 Share Posted September 26, 2012 Doesn't sound like you are on the dev branch. I think the problem here is just that CodeMagic only has translations for cs, en and sk. This is the only reason why I don't have codemagic installed by default. If you use codemagic with some language other than these, you'll get a javascript error. Try removing codemagic from your TinyMCE field settings and I'm guessing the error will clear up, but please let me know. Link to comment Share on other sites More sharing options...
jacmaes Posted September 27, 2012 Author Share Posted September 27, 2012 I added the two required .js language files for CodeMagic to work. It did work prior to upgrading the latest version. Link to comment Share on other sites More sharing options...
jacmaes Posted September 28, 2012 Author Share Posted September 28, 2012 OK, everything's magically working fine today. It emptied my browser's cache, and that seems to have solved the problem. Thanks to everyone who helped out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now