Surveys content plugin probably missed Joomla JS structure changes

brandnew
brandnew
  • brandnew
  • 6 months ago

Hello maverick

I just tried to lunch survey from article (content) plugin.

Unfortunately, "Please wait" gray box no disappeared after clicking on "Start survey" button.

Firefox Firebug reports:
"NetworkError: 404 Not Found - //cdn.shondalai.com/media/system/core.js"


In fact, there is no such file in that directory, but in //cdn.shondalai.com/media/system/js/core.js is :)

Second error:
TypeError: form.find(...).sortable is not a function cj.surveys.min.js (line 86, row 3)

After while of reverse engineering, I found modifications needed in
/plugins/content/surveys/surveys.php

Line 66 of this file was:
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/system/core.js');

Now, this line is different and another two lines also appears
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/system/js/core.js');
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/jui/js/jquery.ui.core.min.js');   
$document->addScript(JUri::base(true).'//cdn.shondalai.com/media/jui/js/jquery.ui.sortable.min.js');  

And survey from article plugin now works fine :)

Joomla 3.8.2
CS 4.5.5
PHP 5.6.30

Best regards,
Brand New


Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai