Sliders not showing up: setREVStartSize is not defined - php

After I upgrade my Revolution slider plugin (5.4.5.1) for Wordpress (4.8) I start to get this error: setREVStartSize is not defined
I'm trying differents approaches to fix this but without success. Is this a specific js file to be loaded in order to fix this? I don't if my theme is loading all assets.
Thanks!

This happened to me after updating to the latest version 6.0.6.
I was able to fix it by clicking "Globals" link in the top of the Slider Revolution main dashboard page, and then selecting "Include Libraries Globally".

Another possible cause is your setting in RevSlider Global settings. Turning off 'Include RevSlider libraries globally' and then trying to include a slider on a page that is not explicitly defined by ID in the field 'Pages to include RevSlider libraries' will trigger this error. The latter field does not take page slugs, so it should be a comma separated list of IDs and/or homepage.

Same problem, spent two weeks on this and have not figured it out....
This "setREVstartsize" is a newly added API function?
Please review; http://www.madcoilbuilt.com
Im losing my mind, if someone is able to offer any insight that would be amazing! I had slider working previously and I migrated the WP installation to another host and ever since then, garbage....

This usually happens when the revslider shortcode is placed before the wp_head(); function call. Make sure that all the base scripts are loaded properly first.

In my case was a JavaScript code that I had inserted in the header without close properly the script tag. I had not updated neither wordpress, nor plugins, nor themes.
I had just installed "Insert Headers and Footers" plugin and put the code with issues there

Solved in LiteSpeed Cache
Navigate to:
Page Optimisation > Js Setting [Tab]
Under Load Inline JS (last option) select Deferred
[Save Changes]

If anyone is still struggling with this error.
For me removing the line below from my script enque file fixed it:
//remove_action('wp_head', 'wp_enqueue_scripts', 1);

Related

Add id to each joomla module if logged in frontend

i have been searching around the internet for a while and cant get any idea of how i will be able to show the module database id as html attribute id without dealing with the template files.
My first idea was to make a plugin that adds this function to each module loaded but i dont think that is the solution anymore.
I hope some of you can give me some ideas of what methods i should use and if it is possible to do this in some way.
Thank you for your awnsers.
I'd look into creating what's called a Custom Module Chrome. To do this does involve creating a file within your template, however.
Is there a reason to not work on the template? The only valid one I can think of is if it is a third party one that gets patched.

OpenCart Theme 'MarketShop' slider issue

I'm using an opencart theme called MarketShop and as part of the theme it comes with a featured slider on the top of the website. It was all functioning correctly this morning, I went to edit the pictures by removing the original module and recreating it with a different banner. Now the module has been created but its not showing up on the website.
What have I done wrong?
I believe the two modules have identical information but I could be incorrect.
I've tried reupoloading all files from the theme and just skipping any that were identical in order to try and find the missing file with no luck.
Any suggestions besides doing a factory reset are much appreciated!
UPDATE:
Doesn't seem like anyone is able to determine the fault... Going to do a fresh install unless someone wants to first login themeselves and see if they can find the problem?
I managed to resolve this issue myself finallly after a LOT of playing around!
Steps I took to fix this issue were as follows..
First I uninstalled the module and reinstalled (It deleted all tests I made + the original demo items).
Then I clicked the install button again and went to edit.
I added one slideshow item and choose my banner that I'd setup earlier via the banners link in the admin panel.
I then went to LAYOUTS which is found next to the banners link or after you click save in modules at the top a hyperlink to layouts is offered.
Upon going to the layouts section and playing around here for even more time I worked out I needed to go into the Homepage file and click edit (NOT THE ONE NAME DEFAULT)!
I tried this numerous times with the DEFAULT page (Note that my store is even set so that the default theme is default which led me to believe that was the right page, which it is not.
So go into homepage and click edit.
Then add one module with the blue plus. Select the module you've just created earlier. Position it where you want it on the page (to get it to work for me I selected "Content Top" and Sort Order I set to 1 (The other two modules had sort orders of 2 and 3)
And that was that, problem solved!
Hopefully this will help anyone else with similar issues.

Ticking a checkbox with PHP to put in Wordpress function.php

I recently discovered a method of changing Wordpress preferences if you do something silly that makes the wp-admin not load. I found that inserting things into the function.php file found in the theme and using the update_option command allowed me to change the settings i needed to get be working again.
This got me thinking, i have the need to install the same theme with the same settings. This is a pain as i have to define all the settings each time. Instead i am trying to make a functions.php file that will set all the settings to how i like them.
I am able to update settings that require you to type a string into a field
//this will change the siteurl setting to www.mysite.com
update_option ('siteurl','www.mysite.com');
My issue is that i need to be able to do the same thing for checkboxes, drop down menus and for radio buttons. After a long night or searching the internet for examples i had given up until i found this site.
Any help would be appreciated, i have minimal programming experience but i do understand the concepts
in theory update_option('checkboxname',true); or update_option('checkboxname','on');
http://codex.wordpress.org/Function_Reference/update_option

WordPress Mobile Pack Custom Page Template

Hoping someone can help.
I've inherited a WP based website which has WPMP already installed & activated & working on it (I can see it work on many pages).
I've had to create a custom template & a few pages that use this template. Unfortunately, when I switch to mobile mode (or check out the new pages on my iPhone), no posts show.
The custom template has to query for posts multiple times to display different groupings of posts in different places. I have a feeling these dynamic queries are removing the ability for WPMP to see any posts at all.
So the only thing I can think of doing is somehow "providing" WPMP the list of posts to see.
How do I do this?
Please help...
O8
I think that in your situation you best way will be to:
1. Upgrade wordpress to the lastest version.
2. Install http://wordpress.org/extend/plugins/wptouch/ - that will do all the work for you on mobile.
if you are having trouble fetch posts in mobile pack, then in custom temple, please run wp_query or SQL command to select all posts and declared a
Global $posts
and once $posts is populated then the regular commands which are used in the loop can be executed to show posts.
Are you using wp_reset_query after each loop?
http://codex.wordpress.org/Function_Reference/wp_reset_query
Use Firebug with Firefox, or Chrome's or Safari's or IE8's developer tools to see what's loading on your site and check for javascript errors and css conflicts.

Zen Cart Custom Template Problem

I have been asked to upload a Zen Cart site to my servers and have done so fine.
I am getting a problem now with the fact that the client has uploaded his custom template into the includes/templates folder and selected it in the admin - but it still wont load it. instead it just loads the template_default style.
I am been through every document I can find and have performed the 'reset' of the Layout Boxes Controller, but nothing seems to resolve it.
Can anyone tell me if there's a file I need to tweak or something to make sure it loads my custom style?
Cheers,
C.
One solution would be to overwrite the default theme with yours. I know this is not what you are asking, however, it would solve your issue.
Zen Cart templates can be really simple or really complex. So installing them can be easy or complicated. The files are probably in the wrong place, or not completely installed. It's easy to make a mistake. Just in case, here's the outline:
1a. Simple - Copy the cart template files to includes/templates/your_template_name/.
or
1b. complex - Copy the cart template folders to includes/.
2 Go to Admin > Tools > Template Selection and click Edit.
Select your_template_name. (If you don't see your_template_name something has gone wrong.)
3 Many templates install with the sideboxes turned off. Go to Admin > Tools > Layout Boxes Controller and edit the sideboxes to turn them on.
One idea for trouble-shooting ...
Look at the database template_select table. What template_dir is set?
If this is happening, double check the file includes/templates/YOUR_TEMPLATE/template_info.php. This file is used by the system to determine if a folder under includes/templates is actually a template, and things won't work without this file. Once you've set this file up, go back to admin->tools->template selection and try re-selecting your custom template.

Categories