zikula-modules / Clip

Flexible Document Creator
35 stars 8 forks source link

error message while creating new field #82

Open MrMontesa opened 12 years ago

MrMontesa commented 12 years ago

I get an error message while choosing from the select box (Fieldtype (Plugin)). The page greys out and I get: "Requested page could not be found. Old Authkey "AuthKey". have you tried "back" Button in Browser? Please try to reload the page." Its just the badly translated version of the error, since I get it in german. Reloading the page does not help. This happens in Chrome. In IE I get: "Page was not found!" In FF it works fine.

Setup: zk 1.3.2, Clip 0.9.1 If needed this can be troubleshooted in my online testenvironment.

Btw: is there no version bounce from 0.9.0 to 0.9.1. I just updated the code and admin panel still states 0.9.0 installed. Thanks

matheo commented 12 years ago

Indeed, no version bounce yet as I will release it officially in some days but needed to correct a problem with the Upload field, and now this issue too!

Seems like a JavaScript problem handling the form submit, we'll need to see what's the request sent while changing the Plugin selector.

I remember an issue if the original URL of the Form wasn't used.

Please try removing this line: form.action = form.action + '#newpubfield' in Clip/javascript/Clip.Pubfields.js

MrMontesa commented 12 years ago

Unfortunatly no changes in behavior on commenting out the line you mentioned. Do I have to delete some cache files?

matheo commented 12 years ago

Just Ctrl+F5 to reload the browser's cache.

I work on Ubuntu 11.10 and that selector worked fine on FF, and I just tested it on Chrome and it also works with the latest copy.

I guess I will complete more than a year without touch IE :P

MrMontesa commented 12 years ago

Hmmm, just installed your latest version and doublechecked that your changes are available. IE9 works now, but still the same behavior in Chrome. No matter if Win or Linux (Ubuntu 11.4). Means: IE and FF do whork, while my Chrome doesn't. Cant be a cache issue since my Win and Linux do not share their caches.

matheo commented 12 years ago

I guess I was able to see the issue but just in the File Upload plugin, caused by a fatal error on it.

Try again, I hope it's solved now ;)

MrMontesa commented 12 years ago

Thanks for your reply. Will test again. But iirc I had this issue in pubtypes where no file upload was configured too.

matheo commented 12 years ago

Have to enable the error logging in the config to see what's the issue affecting the selection.

Try enabling a level 5 logging for display and ajax log. Also check your server's log after the error occurs.

What happen is: You select a new field but the ajax response gets messed by an error, The response is corrupted and it doesn't update the authkey, so it fails in the next step.

MrMontesa commented 12 years ago

I've set the debugging to 5 and reproduced the error until the AuthError popped up. Then I went to zk debug console and had 1 error in Log-console. It sais: _NOTICE (5): ENOTICE: Undefined variable: accessLevel in /docroot/modules/Clip/lib/Clip/Util/Grouptypes.php Zeile 133

But after that I recognized that this error message is there all the time while being in the Clip module. I havent seen any other Ajax related error messages. Probably I havent configured debug console correctly. BR

matheo commented 12 years ago

Indeed, that error was always present before 0.9.2 It can be a browser or javascript issue if nothing crashes on the Zikula side.