Thread Starter
Millvi
(@millvi)
Thread Starter
Millvi
(@millvi)
I just noticed that the lightbox effect is not working on the old site either, and all this happened when I updated this plugin yesterday.
if you check your javascript error log you’ll notice that colorbox isn’t included. There is a similiar issue in a previous post that you can find here http://ww.wp.xz.cn/support/topic/forms-with-conditional-logic-not-working-with-directory-on-same-page?replies=3 the solution can be found on the last post.
The cause turned out to be an error in the file called gravity-forms-addons.php
Around line 309 in that file I found the following:
wp_enqueue_script(‘colorbox’, plugins_url( “/colorbox/jquery.colorbox-min.js”, __FILE__), array(‘jquery’));
But that is wrong. The file is actually in the js directory, so it should be:
wp_enqueue_script(‘colorbox’, plugins_url( “/colorbox/js/jquery.colorbox-min.js”, __FILE__), array(‘jquery’));
After making that change everything started working properly again.
This is NOT RESOLVED.
Plugin Authors, I beg you to use @ibreezer’s post to permanently fix this. It breaks with each new release. I’ve had to go fix it manually for the last 3 updates.
It’s line 307 for the current version (3.5.2):
wp_enqueue_script('colorbox', plugins_url( "/colorbox/js/jquery.colorbox-min.js", __FILE__), array('jquery'));
This is fixed in version 3.5.3.