Can't edit an existing form - Tomoac Form 5

Permalink Browser Info Environment
Hi there

A websites has got Tomoac Form 5 installed.
We would like to edit some fields but it doesn't seem possible... When you go to a page where a form is displayed and click on the block to Edit it, an "Edit Tomoac Form 5" popup appears (see image 1 attached) but there is no option to edit anything and the tabs are not selectable.

Also, when you go to Dashboard -> Tomoac Form 5, there is nothing there (see image 2 attached). And when you click on "Form Results" link the following error appears:

Fatal error: Call to undefined method ConcreteDashboardHelper::getDashboardPaneHeaderWrapper() in /public_html/packages/form_tomoac/single_pages/dashboard/form_tomoac/exforms.php on line 33

Line 33: echo $h->getDashboardPaneHeaderWrapper(t('Form Results'));

What could be the problem and how to fix it?

Thanks

2 Attachments

Type: Discussion
Status: In Progress
olgri
View Replies:
tomoac replied on at Permalink Reply
tomoac
What is version of concrete5?
I am going to check on your version.
olgri replied on at Permalink Reply
olgri
Hi there
As stated under the "Environment" link: concrete5 Version 5.4.1.1 and Tomoac Form 5 (0.9.4.6).
Thanks
tomoac replied on at Permalink Reply
tomoac
This add-on is everything empty after install.
First, you have to ADD some items and save.
After ADD, you can EDIT items.
Dashboard menu is above three buttons, choose one. You can see registed data after resist operations.

I have a question latest concrete5 version is 5.7.3 and 5.6.3.2. Why do you use 5.4.1.1 that is very old?
olgri replied on at Permalink Reply
olgri
Tomoac Form 5 plugin has been installed and a form has been created a long time ago by someone else. So, there is an existing form that I want to edit but as described above and shown on the images, there is no such option :-(

Yes, it's an older c5 version. It would be great to update but not not sure if existing plugins/addons and the theme will be affected so it's not an option at the moment.
tomoac replied on at Permalink Reply
tomoac
I saw two images that your sending, they seem to good.
Please show me your form in your page if you can.
olgri replied on at Permalink Reply
olgri
Sent a PM. Thanks.
tomoac replied on at Permalink Reply 1 Attachment
tomoac
I found a bug in dashboard of version 0.9.4.6.
It had fixed new version of Tomoac Form. Now Tomoac Form version is 0.9.8.12.

I attached file, their file override in "single_pages/dashboard/form_tomoac"

Edit problem I am not sure. I need more Informations.
olgri replied on at Permalink Reply
olgri
This update has fixed the dashboard issue - thanks :)
tomoac replied on at Permalink Reply
tomoac
Can you install bellow add-on?

https://www.concrete5.org/marketplace/addons/tomoac-form-5-backup/...

This add-on can dump data of Tomoac Form to a file.
And please send me to the file.
If you can send, I can check by your form data on my server.
olgri replied on at Permalink Reply
olgri
This add-on is for concrete 5.4.2 and greater. Our website is on concrete 5.4.1.1 :-(
Is there another way or an add-on for older C5?
olgri replied on at Permalink Reply 1 Attachment
olgri
I have tried to backup through the default backup option (Dashboard -> Tomoac Form 5 -> Form Backup... see attached img) but nothing happens. The page just refreshes itself when I click the "Backup" button.
tomoac replied on at Permalink Reply 1 Attachment
tomoac
I make special version.

it can install 5.4.1.1

Please try this package.

I tried my server on concrete5.4.1.1, it has no problem.
olgri replied on at Permalink Reply 1 Attachment
olgri
This one got installed successfully, thanks.

I suspect there should appear a link to download the backup file when you run a backup (as described here:http://concrete5english.tomo.ac/tomoac-form-5-backup/... ). But when I click "Form Backup" button (see attached img), nothing happens. It just reloads the page - that's it.
No errors in the error log either.

Are there any specific requirements for the hosting server for your extensions to work correctly?
tomoac replied on at Permalink Reply
tomoac
Do you know super-user's password?
You have to backup on super user?
If not, are you trying it by super-user.
olgri replied on at Permalink Reply
olgri
Backups work when logged in as a super admin (admin id 1) :)
I have just sent a backup file in a PM.
tomoac replied on at Permalink Reply 1 Attachment
tomoac
Thank you, I got your data and restore to concrete5 on my server.

See attache file, so I can edit it in concrete5.4.1.1 and Tomoac form 0.9.4.6.

I need more some informations.......
tomoac replied on at Permalink Reply
tomoac
I found a little problem. I will check it.
olgri replied on at Permalink Reply
olgri
OK thanks.
tomoac replied on at Permalink Reply
tomoac
Sorry, they were no problem.

During open EDIT window that item are no display, click right button, choose SourceCode, save to file.
olgri replied on at Permalink Reply
olgri
Done (sent in PM).

Another question...
How can I use backup/restore function (Tomoac Form 5 Backup add-on) for editing form fields without affecting the data (submitted form data from the past)?
Are the following steps correct?
1. Backup the form WITHOUT including the data ('Include the Data' UNchecked)
2. Edit some fields settings in the .json backup file by using a text editor
3. Restore the form using the modified .json file and UNcheck the 'Input Data' checkbox when restoring.

Basically, if backup/restore as described above, can I be sure that the data submitted in the past would still be there?
tomoac replied on at Permalink Reply 1 Attachment
tomoac
Thank you for your work.

This attache file change files but you should back up file.
this file is /form_tomoac/blocks/form_tomoac/form_setup_html.php
After change file, and Edit. You could see message
1. alert message -> start of list
2. click ok -> display item list.
3. alert message -> end of list

Can you dump all database in concrete5?
If you can it, pleas send me.
olgri replied on at Permalink Reply
olgri
I'm sorry I don't understand your last message...

I have replaced the /form_tomoac/blocks/form_tomoac/form_setup_html.php file with the one you have provided. Then went to edit the form but it all behaves exactly as it did before. No changes. So, not sure what you meant by the 1., 2., 3. steps.

Could you please explain it once again?
olgri replied on at Permalink Reply
olgri
Also, what is you answer to my question from my previous message (see below)?

-----------------------------------------------------------------------------------------------------

Another question...
How can I use backup/restore function (Tomoac Form 5 Backup add-on) for editing form fields without affecting the data (submitted form data from the past)?
Are the following steps correct?
1. Backup the form WITHOUT including the data ('Include the Data' UNchecked)
2. Edit some fields settings in the .json backup file by using a text editor
3. Restore the form using the modified .json file and UNcheck the 'Input Data' checkbox when restoring.

Basically, if backup/restore as described above, can I be sure that the data submitted in the past would still be there?
olgri replied on at Permalink Reply
olgri
One more question....
There are two different fields called "Email Address:" in the form I need to edit. I have checked the .json backup file and "required" setting is set to "0" (same in the database). But when you try to fill in the form, it requires you to type in the emails.
How do I make just one of the email fields optional (NOT required)?
tomoac replied on at Permalink Reply
tomoac
mail field, one or two,

"width2"=1 ->double
"width2"=0 -> single
olgri replied on at Permalink Reply
olgri
Sorry, I think I wasn't clear enough when asking about email fields...
If you look at the form, you will see one "Email Address:" in Section A (tenant's email) and another "Email Address:" is in Section C (landlord's email). Both of them are required. I want to keep "Email Address" in Section A as required and "Email Address" in Section C optional.
Section A "Email Address" - must fill in.
Section C "Email Address" - can fill in but doesn't have to.
How do I achieve this?
tomoac replied on at Permalink Reply
tomoac
"required":"1" <-- section A, must fill
"required":"0" <-- section C, any
olgri replied on at Permalink Reply
olgri
Yes, they are both set as "required":"0" which mean both should be optional, but both of them require you to fill in emails. If you look at the form backup file I have sent to you earlier, you will see.
tomoac replied on at Permalink Reply
tomoac
I'm not sure.

"required":"0" is optional
"required":"1" is required
tomoac replied on at Permalink Reply
tomoac
So backup data can edit and ok to restore.

If you restore items are merge in exist items.
I recommend, first new form by empty. ADD block and immediately save, so you can make empty form.
And restore to empty new block.

By the way, Backup data has little problem. you use description field last second item is include "¥" you have to remove "¥" before restore.

This step can do everytime.

You don't have to restore to current form block.
tomoac replied on at Permalink Reply
tomoac
If pop-up message, it means path to edit code.
tomoac replied on at Permalink Reply
tomoac
I want to reproduce your form on my server.
But It seems not bad.

I want to try same your environment. That's why, I need all database data, If you can.
tomoac replied on at Permalink Reply
tomoac
By the way,
Because of reproduction on my server.
I need full database dump image. So can you execute "mysqldump" and can you send me the file
olgri replied on at Permalink Reply
olgri
Sent the db dump in PM. Thanks.
tomoac replied on at Permalink Reply
tomoac
Thank you for your data.

I looked for form, but I can no find form.
What page is in the form?
olgri replied on at Permalink Reply
olgri
Tenants -> Tenancy Application Form
/tenants/tenancy-application-form
tomoac replied on at Permalink Reply 1 Attachment
tomoac
OK thanks.

After include my database from your file, I tried to open bellow
/tenants/tenancy-application-form

And into Edit on concrete5, choose Form block, and edit on Tomoac Form. I seem no problem. I can edit the Form block.

Next, this attache file is to output error_log and echo on your page.
After open Edit tag on Tomoac Form Block. I want see error_log on httpd(apache).
And send me part of error_log.

File change bellow
/form_tomoac/blocks/form_tomoac/controller.php
/form_tomoac/blocks/form_tomoac/tools/service.php
olgri replied on at Permalink Reply
olgri
Sent in PM. No errors seem to be triggered.
Any chance that it could be some sort of JavaScript conflict?
tomoac replied on at Permalink Reply
tomoac
May be you are right.

My sever is same version of concrete5, same version of Tomoac Form and same Database.
The different part are themes and another add-on. The page uses only use Tomoac Form block of add-on.
Because of that conflict Javascript in your theme and the Tomoac Form.

What kind of browser do you use?
When you click EDIT tabs, click right button on mouse, you can open debug window, choose console tab in debug window. You can see javascript error.
olgri replied on at Permalink Reply
olgri
Yes, I can see "Failed to load resource: net::ERR_CACHE_MISS" in Google Chrome and "The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page." in FireFox.
Does this tell you anything?
tomoac replied on at Permalink Reply
tomoac
Or can you send me your theme.
olgri replied on at Permalink Reply
olgri
Sent in PM, thanks.
tomoac replied on at Permalink Reply 2 Attachments
tomoac
I tried to your theme. See attache file.

Edit can do it. But Theme is little strange, I think it is not completed.
olgri replied on at Permalink Reply
olgri
Menu is unstyled because there is "Superfish - 1.1.4" addon is installed on the website as well.
Since it works on your machine with the theme I've supplied, then I guess, the conflict is with one of the addons that are installed on the website.
olgri replied on at Permalink Reply
olgri
However, it is still unclear why two "Email Address" fields are set to "required":"0" and both must be filled in before the form is submitted... hmm.. I don't think another addon could cause this...
tomoac replied on at Permalink Reply
tomoac
I'm not sure your question.
Email field on double that item is one item, one item but two input area on display.
olgri replied on at Permalink Reply
olgri
If you look at the form, you will see one "Email Address:" in Section A (tenant's email) and another "Email Address:" is in Section C (landlord's email). These are two separate email fields. Both of them appear as required on the page. However, both of the are set as "required":"0" (you can see it either in the database or the .json backup file I've sent you earlier). So they should be optional, but they are not. I wonder why?

I want to keep "Email Address" in Section A as required and I want to make "Email Address" in Section C optional. What I need:
Section A "Email Address" - must fill in.
Section C "Email Address" - can fill in but doesn't have to.
But both of them are already set as "required":"0". So it doesn't make sense why both of them still appear as "must fill in" on the page.
tomoac replied on at Permalink Reply 1 Attachment
tomoac
I understand about email fields.
Please change attache file to /form_tomoac/blocks/form_tomoac/controller.php

They are browser function. Email tags' type is "email" browser default required.
I change tag type from "email" to "text".

May be, it fixed new version.
olgri replied on at Permalink Reply
olgri
Ah, that what it is! I see. Thanks :)
tomoac replied on at Permalink Reply
tomoac
Please send me "Superfish - 1.1.4" and any add-on of using that page..

Theme and Tomoac form are not conflict.
I think Superfish and Tomoac Form are conflict.
olgri replied on at Permalink Reply
olgri
Sent Superfish - 1.1.4 addon in PM. I think this is the only addon (apart from the form) that is used on the page.
tomoac replied on at Permalink Reply 1 Attachment
tomoac
I installed Superfish. But screen is not change like attach image file.
Do you see that?
or
Do you use another add-on?
olgri replied on at Permalink Reply
olgri
Strange... I'm not sure why it doesn't affect it. Have you tried a full refresh (Ctrl+F5)? And maybe also clean cache in the admin dashboard before the full refresh as well?

I have sent you another addon that might be at fault (please see PM).
tomoac replied on at Permalink Reply 1 Attachment
tomoac
I tried clear cache.
I checked CSS in Statfish, but I can not find conflict.

Can you try to rebuild the page?

1'st, create new page.
2'nd, Add Tomoac-Form block and immediately Save. So, it just only button.
3'rd, Restore by Tomoac-Form-Backup.

By the way, Tomoac-Form-Backup have a bug.
Your backup data can not restore completely. If you try restore, you use this attach file.

And your backup data file don't have input data. If you have input data, please send me backup data, I can fix and return data.

OR

Can I login your web site as admin?
olgri replied on at Permalink Reply 1 Attachment
olgri
I think I'm on to something here...

There is a file in /public_html/js/jquery.js which is v1.6.4.
When replaced with an older v.1.4.2, form editing seems to start working.
I'm not sure what jquery version should be used on concrete 5.4.1 as I can't find where to download older concrete5 versions...
attached jquery.js is what was originally in my /public_html/js folder
jquery.js.142 - makes it work so it seems (just remove .142 part when testing)

What jquery version do you use on your test install?
tomoac replied on at Permalink Reply
tomoac
I don't use special jQuery. I am using jQuery in concrete5.
I checked version of jQuery on concrete5 that is "/concrete/js/".
The concrete5.4.1.1 has v1.4.2 of jQuery.
olgri replied on at Permalink Reply
olgri
Seems to work fine with the v1.4.2 of jQuery. This is what the problem was.
Thanks a lot for your help and time, tomoac!
tomoac replied on at Permalink Reply
tomoac
You're welcome.

concrete5 Environment Information

# concrete5 Version
5.4.1.1

# concrete5 Packages
Calendar (1.4.3), Extended Form (2.6), Galleria image gallery (2.0), Real Estate (2.01), SimpleBlog (2.0.8), Superfish (1.1.4), Tomoac Form 5 (0.9.4.6).

# concrete5 Overrides
blocks/autonav, blocks/asmiller_gallery, js/jquery.js, themes/primerentals_orig.zip, themes/primerentals.zip, themes/default2, themes/primerentals, themes/primerentals_orig

# Server Software
Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.3.29

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, filter, ftp, gd, hash, iconv, imagick, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, openssl, pcre, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 600
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - /usr/local/php/bin
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 16M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.