Login Form

#511 – BF Survey Issue

Posted in ‘BF Survey’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 13 January 2015 01:13 AEDT
NetImpact
Joomla! version: 2.5
Hello,

I am having an issue with the survey on the website. http://family1st.ca/

the survey can be accessed from the Respiratory drop down menu, or the CPAP link under the slideshow. http://family1st.ca/respiratory-products/cpap-survey.html

The initial viewing seems to work fine, but if leave the page and come back to it, or refresh, the survey becomes inactive and the buttons disappear and it cannot be filled out.

Is this as issue with the version, or the survey? or would be it a code issue?

Thanks,

Jared
Wednesday, 14 January 2015 23:04 AEDT 10'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Jared,
The link http://family1st.ca/respiratory-products/cpap-survey.html is giving me a 404 error, however I can access the survey via http://family1st.ca/index.php?option=com_bfsurvey&view=1result
As you say, it's fine initially, but refresh breaks it. Looking at Browser console in firefox, I see an error "RokBoxSettings is not defined" and refers to the file /plugins/system/rokbox/assets/js/rokbox.js
Are you able to disable the Rokbox system plugin, and see if there is still a problem?

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Thursday, 15 January 2015 00:26 AEDT
NetImpact
Hey Tim,

Apologies, I had to unpublish the survey, a few people had noticed the error and were complaining. I have unpublished the Rokbox system plugin. The problem still exists.

I have the survey published again so it is easier to access.

Any other ideas what the issue might be?
Thursday, 15 January 2015 16:33 AEDT 10'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
I'm now seeing "jQuery is not defined" errors after refreshing the page. Comparing the source code of the two, I see that the initial load includes Akeeba Strapper, which is loading bootstrap (and jQuery), whereas after the refresh Akeeba Strapper just isn't loading.

You can see the code that loads Akeeba Strapper in /components/com_bfsurvey/dispatcher.php
//around line 36
// Load Akeeba Strapper
include_once JPATH_ROOT.'/media/akeeba_strapper/strapper.php';
AkeebaStrapper::bootstrap();
AkeebaStrapper::jQueryUI();

Now for some weird reason, this code is not executing when you refresh the page. As to why this is happening on your site, I have no idea.
As a dodgy workaround, perhaps you could try adding those three lines of code to /components/com_bfsurvey/bfsurvey.php, anywhere before the last line
F0FDispatcher::getTmpInstance('com_bfsurvey')->dispatch();

Let me know if this solves or not.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Friday, 16 January 2015 00:58 AEDT
NetImpact
In order to solve the issue, I had to disable the plugin -system cache.

With this disabled the survey works, but the site loads very slow. hopefully you are able to fix the component in an upcoming update so I can enable the plug in.

Thanks,

Jared
Friday, 16 January 2015 15:01 AEDT 5'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
Interesting, that's odd that the system cache was the problem, but it's great that you've pin pointed it. The code I'm using is standard F0F (Framework On Framework), so I'm not sure what I could do differently to avoid this scenario. Did you try with that code in the component entry point (bfsurvey.php file) rather than in the dispatcher (dispatcher.php file)?
Follow us on twitter http://twitter.com/tamlynsoftware
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top