-
AuthorPosts
-
February 23, 2018 at 12:12 pm #916599
Dear support,
i just updated the theme to the last version, the website is a simple without any code modification both main theme and child.
I have just one page showing masonry -> source category post.The page loads everything but the masonry’s elements. inspecting the page i get this error:
TypeError: $(‘.grid-links-ajax’).avia_portfolio_preview is not a function. (In ‘$(‘.grid-links-ajax’).avia_portfolio_preview()’, ‘$(‘.grid-links-ajax’).avia_portfolio_preview’ is undefined)
what should i do? i tried to do another page, but same result, looks like Avia functions in this element are not working, i tried also to overwrite the theme again, but nothing works.
Thank you
February 23, 2018 at 1:24 pm #916650Hey marco3253,
Here is a thread for you to consider
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 23, 2018 at 2:06 pm #916690thank you for your answer.
i disabled the word fence who is the only plugin who can prevent the execution of some file, but nothings change.
Also, i checked into the wp-content/uploads/dynamic_avia
for some .js file, but i have only three files calledenfold.css
enfold_child.css
index.phpso this looks pretty strange comparing to the post you suggest to take a look at.
Marco
February 23, 2018 at 8:48 pm #916858Hi,
Cna you please make sure that this folder has CHMOD 775 for us please?
Thank you
Best regards,
BasilisFebruary 27, 2018 at 5:30 pm #918554I had this same issue (my dynamic_avia folder is writable). As far as I can tell the problem is that the Masonry Grid shortcode depends on the javascript function avia_portfolio_preview, which is located in the file portfolio.js. That file is only enqueued when using the Portfolio shortcode, not the Masonry Grid shortcode. The thread Victoria linked earlier is not related since the compiled file is not generated because the .js file is not enqueued.
I worked around this by add this to my functions.php to manually enqueue the file:
wp_enqueue_script( ‘avia-module-portfolio’ , AviaBuilder::$path[‘pluginUrlRoot’].’avia-shortcodes/portfolio/portfolio.js’ , array(‘avia-shortcodes’), false , TRUE);That feels a bit hacky though.
- This reply was modified 6 years, 8 months ago by Webbmekanikern.
February 28, 2018 at 10:34 am #918914Thank you for your post Webbmekanikern, i tried to add your code to functions.php into the child theme but when i save i got this error:
Uncaught Error: Class ‘AviaBuilder’ not found in D:\xampp\htdocs\infrweb\wp-content\themes\enfold-child\functions.php:8
Stack trace:
#0 D:\xampp\htdocs\infrweb\wp-settings.php(424): include()
#1 D:\xampp\htdocs\infrweb\wp-config.php(91): require_once(‘D:\\xampp\\htdocs…’)
#2 D:\xampp\htdocs\infrweb\wp-load.php(37): require_once(‘D:\\xampp\\htdocs…’)
#3 D:\xampp\htdocs\infrweb\wp-admin\admin.php(31): require_once(‘D:\\xampp\\htdocs…’)
#4 D:\xampp\htdocs\infrweb\wp-admin\theme-editor.php(10): require_once(‘D:\\xampp\\htdocs…’)
#5 {main}
thrownFebruary 28, 2018 at 9:08 pm #919278Hi,
I am afraid we cant understand a lot from that issue as it is on localhost.
It would be the best we help you solve the issue when you have it live.Best regards,
BasilisMarch 1, 2018 at 10:10 am #919504it was working until i updated the theme to the last version :(
something is changed, i will revert to a backup as i don’t know how to solve this.March 1, 2018 at 2:25 pm #919655Hi,
Thanks for the feedback, if you should need an earlier version of the theme then let us know.
Best regards,
RikardMarch 1, 2018 at 3:47 pm #919697I just uploaded a old backup (november) of the enfold folder, version 4.2, everything is working.
March 2, 2018 at 5:43 am #920080Hi,
Great, glad you got it working. We released a new version (4.2.5) yesterday which you could try out as well.
Best regards,
RikardMarch 6, 2018 at 1:08 pm #922223Overwriting the new enfold theme on the current theme i get this error just visiting the home page (the home page contain the masonry -> source category post item)
Fatal error: Cannot redeclare av_countdown_events_fallback() (previously declared in D:\xampp\htdocs\infrweb\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\events_countdown.php:10) in D:\xampp\htdocs\infrweb\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\events_countdown\events_countdown.php on line 12
March 6, 2018 at 2:26 pm #922304 -
AuthorPosts
- You must be logged in to reply to this topic.