The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
'JSON' is undefined (Fedora 12) - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: 'JSON' is undefined (Fedora 12) (/showthread.php?tid=2440) Pages:
1
2
|
'JSON' is undefined (Fedora 12) - johnbleck2 - May 6th, 2013 Hello, We have recently moved from Windows server to Fedora 12 unix for Form tools. When using the published web form: We are getting javascript errors when navigating through the form: 'JSON' is undefined The form still works as you move through the pages, but.... our upload field will not prompt when hitting the "delete" using the delete button. Then I get 'g.messages.phrase_please_confirm' is null or not an object Now: When signed into formtools where fields can be edited, etc... when I view and edit a submission that contains an upload and hit "delete", I get the prompt and the link goes away!. So I know it works, just not "completely yet" I'm thinking there's either a config or permission issue here and since we are now using a unix platform, I figure this may be a no brainer for someone out there. John RE: 'JSON' is undefined (Fedora 12) - Joe - May 6th, 2013 Hey John, I'm not sure if this is related to your server. What browser are you using? Does this occur when testing on different browsers? Cheers, Joe RE: 'JSON' is undefined (Fedora 12) - johnbleck2 - May 7th, 2013 Joe, Google Chrome v 26 I get: cannot read property g.messages function Type error (native code) The "type" for g.messages is of course 'JSON' the example from the first post was from ie 8 I get similar errors even when on the host machine using firefox (not sure which version of firefox) poking around the internet the next thing I was going to try was to add extension=json.so to the php.ini under dynamic extensions. When I tried to do this I had access/permission errors and I couldn't save the php.ini file. Do you think this could be it. I'm pretty confident it's server side. Could it be a permission issue for the mysql user or on a folder on the server? We have 2 msql users both having the same username. One is using localhost the other using anyhost. When I remove the localhost user, the anyhost user of the same name allows me to log into that user on terminal without a password: even though I changed the password. or am I barking up the wrong tree? Should there be 2 same name users in mysql? tried the extension-json.so in dynamic extensions: didn't make a difference. RE: 'JSON' is undefined (Fedora 12) - johnbleck2 - May 7th, 2013 Even localhost browser gives me errors when not going through the formtools signin and editing a submission. Its screamming privileges issue for js. Either in the mysql user or a folder/file permission. But... the other javascript functions are working. the title that's not working is: title: g.messages["phrase_please_confirm"], again--only outside of editing through formtools administratively. RE: 'JSON' is undefined (Fedora 12) - Joe - May 7th, 2013 John, You should do a phpinfo(); and check if Json is enabled. If not, you'll definitely need to update your php.ini file. While permissions to the do need to be set to full read / write for the cache folder this doesn't sound like it's related to a permission issue. When you went from the Window's box to Linux, did you reinstall Form Tools? Or just transfer your files over? I recall you mentioning that there were a number of files missing in your Window's installation. Cheers, Joe RE: 'JSON' is undefined (Fedora 12) - johnbleck2 - May 7th, 2013 Joe, JSON is definitely enabled. The cache folder (from themes/default/cache) permissions are open. The files were transferred over from the windows box. We will be re-installing formtools tomorrow. I'll let you know what happens. Thanks, John RE: 'JSON' is undefined (Fedora 12) - Joe - May 9th, 2013 John, If JSON is enabled and permissions are properly set to read / write than it may be an issue with the installation. I think the re-installation will help. Cheers, Joe RE: 'JSON' is undefined (Fedora 12) - johnbleck2 - May 15th, 2013 Joe, Well, we have moved to another server. Fedora 12 installation. Installed form tools from the original zip file given us when we purchased the product. No files were copied over from any other existing server or platform. When trying to "delete" I get the following error: SCRIPT5007: Unable to get value of the property 'phrase_please_confirm': object is null or undefined edit_submission.js?v=2, line 64 character 5 Form Tools Core Version: 2.2.5 Core Version Upgrade Track: 2.2.5 API Version: 1.1.4 PHP Version: 5.3.3 MySQL Version: 5.1.47 PHP Sessions: Available Suhosin Extension: Not Installed Curl Extension: Available SimpleXML Extension: Available ____________________________________ MODULES (name, version, enabled) Core Field Types, 1.0.2, Yes Export Manager, 2.1.1, Yes File Upload, 1.0.9, Yes Form Builder, 1.0.5, Yes Pages, 1.2.6, Yes Swift Mailer, 1.1.2, Yes System Check, 1.0.3, Yes TinyMCE Field, 1.0.8, Yes ____________________________________ THEMES (name, version, enabled) Classic Grey, 1.1.3, Yes Default, 1.0.0, Yes So this is no longer a JSON issue at all. Getting no complaints about JSON any longer. The property 'phrase_please_confirm': is null or undefined. I know the javascript function call is used throughout formtools, and the delete button does work when editing a submission when signed in to formtools, but not as a standalone website. The cache folder is open for buissness permission-wise. So, after eliminating the other possible variables, the upload deletion is still not functioning. John RE: 'JSON' is undefined (Fedora 12) - Joe - May 16th, 2013 Hey John, I've emailed you a zip file with Form Tools. Please install that to see if your issues persist. Cheers, Joe RE: 'JSON' is undefined (Fedora 12) - johnbleck2 - May 16th, 2013 Joe, Got the email. The install was missing form_builder. Also missing file_type_upload. When I grabbed file_type_upload and popped it into the module folder it showed up and I installed it. The meat and potates most important module form_builder: I popped that into the module folder and it will not see the module to install. Could you send us a zip that includes both of those modules as well? John |