Forums

Setup tab blank

AlexRees 18 Jun, 2015
Hi,

I just created a new form using 5.0.9 and the setup page is completely blank (see screenshot below). I'm using simple setup mode.

The strange thing is, I have an existing simple setup mode form made using an earler version of 5.x and the setup tab is displaying correctly for that one.

Here is the screen shot

[attachment=0]chrono.jpg[/attachment]

Here is the tab HTML:

<div class="tab-content">
<div id="general" class="tab-pane" style="display: none;">
<div id="form-code" class="tab-pane" style="display: none;">
<div id="layout-wizard" class="tab-pane" style="display: none;">
<div id="events-list" class="tab-pane active" style="display: block;">
<div id="boxes-container" class="container" style="width:100%;">
<div class="row">
<div class="panel panel-success">
<div class="panel-heading">
<div class="panel-body">
<div class="tab-content"> </div>
</div>
</div>
</div>
<div class="row" style="display:none;">
</div>
</div>
GreyHead 19 Jun, 2015
Hi AlexRees,

It looks like there may be a JavaScript error on the page. Do you see anything in your browser web develop tools Console?

If not then possibly there is a PHP error, if so there is usually an error message buried deep in the page source.

Bob
AlexRees 19 Jun, 2015
These are the javascript messages I get on page load:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ jquery.min.js:4:0
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.[Learn More] <unknown>
Password fields present in a form with an insecure (http://) form action. This is a security risk that allows user login credentials to be stolen.[Learn More] <unknown>
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] jsonrpc
Error: Syntax error, unrecognized expression: #general-{N} jquery.min.js:2:12716
Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName] <unknown>:21:0


I also get the following when I click anywhere on the page:

Empty string passed to getElementById().


There aren't any errors generated specifically by clicking on the setup tab.

In terms of errors within the HTML, the only difference I could find is that the form with a blank setup tab has the following warning 35 times:

<b>Warning</b>:  strlen() expects parameter 1 to be string, array given in <b>/home/cboi/public_html/administrator/components/com_chronoforms5/chronoforms/events/event.php</b> on line <b>25</b><br />


The form where the setup tab displays correctly does not have these warnings.
GreyHead 19 Jun, 2015
Hi AlexRees,

Please try setting site Error Reporting to System Default or None in the Site Global Configuration. That should hide the PHP Warnings and - fingers crossed - let the page re-display. If not we’ll look at the JS Error

Bob
AlexRees 19 Jun, 2015
Hi Greyhead,

Unfortunately I only set error reporting to be on to try and debug the problem, so it isn't the cause. Just to make sure, I switched it off and am still getting a blank setup page.

I just noticed there is a "new simple" button. If I create a form using that, the setup tab displays correctly. However, if I create a form using the "new" button and then switch the setup mode to "Simple" and save, then the Setup tab is blank.

I think I should be able to work around my problem by creating a brand new simple form, then switching the wizard off and copy and pasting my form code across.
GreyHead 19 Jun, 2015
Hi AlexRees,

Oh well - worth asking. By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
AlexRees 19 Jun, 2015
I suspect the problem might be easily replicatable. Creating a form using the "new" button and then switching to simple mode seems to cause the problem every time.
GreyHead 19 Jun, 2015
Answer
Hi AlexRees,

Ahha! and the fix for that is simple - don't do it. Or rather, make sure that you have added the actions you need first. Or switch back to Advanced mode to add them.

What is happening is that when you create a form in Simple New mode ChronoForms adds a set of commonly used actions and shows them in the tabbed layout,

When you create a from in New mode there are no actions added - it's up to you to pick the ones that you need.

Hence when you switch mode from New (aka Advanced) to New Simple there is nothing to display.

You can switch back to Advanced, add some actions, then switch back to Simple if you prefer. Personally I rarely use Simple as it add actions I don't need.

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}