philsalt
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom css-js-php] Use of undefined constant WCJP_CLASSESUpdate
1. With reference to PHP Notice: Use of undefined constant WCJP_CLASSES
changed line 610 within custom-css-js-php.php from
define( ‘WCJP_VIEWS_PATH’, WCJP_CLASSES.’view’ );to
define( ‘WCJP_VIEWS_PATH’, WCJP_URL.’/modules/code/’.’views’ );
2. With reference to WordPress database error Multiple primary key defined for query ALTER TABLE wp__r5WPu9wce_editor_content ADD PRIMARY KEY (id) I referred to: https://onetarek.com/wordpress/wordpress-dbdelta-database-error-multiple-primary-key-defined/
Changed line 66 within model.code.php (/wp-content/plugins/custom-css-js-php/modules/code) from
PRIMARY KEY (id
)to
UNIQUE KEY (id)
Hoping Flipper Code can confirm above as correct. Cheers,
Phil
Forum: Plugins
In reply to: [Custom css-js-php] Use of undefined constant WCJP_CLASSESdebug log is also showing:
“[13-Feb-2016 19:51:52 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp__r5WPu9wce_editor_content ADD PRIMARY KEY (
id
) made by activate_plugin, do_action(‘activate_custom-css-js-php/custom-css-js-php.php’), call_user_func_array, WP_CustomCode_Pro->plugin_activation, WP_CustomCode_Pro->wcjp_activation, dbDelta”Forum: Plugins
In reply to: [WooCommerce Extended Coupon Features FREE] Undefined variableOops, apologies. Mind homed in on wc-coupon. I’ll pass it on to WooCommerce.
Forum: Plugins
In reply to: [Lazy Load XT] Icon images loaded by img classManaged to sort by replacing img class “featured-block-icon” with “lazy-loaded” & added data- before src within themes codes.
Forum: Plugins
In reply to: [a3 Lazy Load] Does plugin WORK with images loaded via img class?Hi Nguyen,
Have managed to lazy load these feature block images by changing the class from feature-block to lazy-loaded, & adding data to src (data-src) within theme code.
Thanks for all your help, we got there in the end
Be well,
PhilForum: Plugins
In reply to: [a3 Lazy Load] Does plugin WORK with images loaded via img class?Thanks once again Nguyen. Feature-block icon images are now not loading. This theme is not playing ball with your plugin. I think I will have to try another plugin or get a coder to try & integrate OptimizePress & a3 Lazy Load.
Cheers,
PhilForum: Plugins
In reply to: [Smart Image Loader] Lazy Loading images loaded using img_htmlOne of the uneffected feature block icon images is included in view page source as follows:
<span class=”feature-block-2-img-container”><img class=”feature-block-2″ src=”https://suttoncoldfieldhypnotherapyclinic.com/wp-content/themes/optimizePressTheme/lib/assets/images/feature_block/icons/Red-heart-icon.png” /></span>Forum: Plugins
In reply to: [a3 Lazy Load] Does plugin WORK with images loaded via img class?Hi Nguyen,
Thanks for your last reply. OK we got a little further, feature-block images are lazy loading. Have 2 problems:
1. Original feature-block images are still appearing (top image as shown in snag.gy)
2. Text under feature-block images disappearsOriginal line of code:
———————-
$img_html = (($style>=1 && $style<=4) ? ‘<span’.$img_style_attr.’>’ : ”).'<img’.(($style!=’image’ && $style!=’icon’) ? ‘ class=”feature-block-‘.$style_number.'”‘ : ‘ class=”feature-block-‘.$style.'”‘).’ src=”‘.OP_ASSETS_URL.’images/feature_block/icons/’.$icon.'” />’.(($style>=1 && $style<=4) ? ‘</span>’ : ”);with your filter:
—————–
$img_html = (($style>=1 && $style<=4) ? ‘<span’.$img_style_attr.’>’ : ”).$custom_content ='<img’.(($style!=’image’ && $style!=’icon’) ? ‘ class=”feature-block-‘.$style_number.'”‘ : ‘ class=”feature-block-‘.$style.'”‘).’ src=”‘.OP_ASSETS_URL.’images/feature_block/icons/’.$icon.'” />’.(($style>=1 && $style<=4) ? ‘</span>’ : ”);
$content = apply_filters( ‘a3_lazy_load_html’, $custom_content, false );& looking at the outputed code for one feature-block image we get:
<img class=”feature-block-2 lazy-loaded” data-src=”https://suttoncoldfieldhypnotherapyclinic.com/wp-content/themes/optimizePressTheme/lib/assets/images/feature_block/icons/Red-heart-icon.png” data-lazy-type=”image” src=”https://suttoncoldfieldhypnotherapyclinic.com/wp-content/themes/optimizePressTheme/lib/assets/images/feature_block/icons/Red-heart-icon.png”>
Any ideas would be appreciated.
PhilForum: Plugins
In reply to: [a3 Lazy Load] Does plugin WORK with images loaded via img class?Thank you Nguyen for replying with your solution. Have tried applying your filter with no success.
This is one of the feature-block images trying to lazy load:
<img class=”feature-block-2″ src=”https://suttoncoldfieldhypnotherapyclinic.com/wp-content/themes/optimizePressTheme/lib/assets/images/feature_block/icons/Red-heart-icon.png”>Is it correct to add your filter to theme’s functions.php as follows:
$custom_content = ‘<img class=”feature-block-2″ src=”https://suttoncoldfieldhypnotherapyclinic.com/wp-content/themes/optimizePressTheme/lib/assets/images/feature_block/icons/Red-heart-icon.png”>’;
$content = apply_filters( ‘a3_lazy_load_html’, $custom_content, false );Thanks,
PhilHi ilian,
All I did was add text in the Descriptional (optional) https://snag.gy/4aSWi.jpg
Hope this helps
Be well,
PhilForum: Plugins
In reply to: [WP DB Driver] PHP Fatal error: Class 'WP_DB_Driver_Config' not foundThanks Marko for the update
Forum: Plugins
In reply to: [W3 Total Cache] How to Remove Caching After W3 Total Cache is DeletedThere might be some residue from W3TotalCache after deleting plugin that may be causing problems. I recently deactivated & deleted W3TotalCache & followed this article with some tweaks as it is a bit out of date:
https://redstarwebdevelopment.com/2013/05/how-to-remove-w3-total-cacheMake sure you BACKUP wp-content & wp-config
Tweaks:
——-
In the wp-config, remove line 2
/** Enable W3 Total Cache Edge Mode */
define(‘W3TC_EDGE_MODE’, true); // Added by W3 Total CacheWithin wp-content folder go to cache folder :
delete minify folder – contains W3TotalCache .htaccess
delete page_enhanced folder – contains W3TotalCache .htaccess
deleted tmpHope this helps,
Phil
Forum: Plugins
In reply to: [W3 Total Cache] W3 Total Cache and CDN issueHi Kalina, you could try wp-fastest-cache. Set up time is minimal & my site sped up considerably compared to W3TotalCache. I have just signed up with keycdn, they have a free trial where you can judge how much it will cost you depending on your traffic. Hope this helps. Be well Phil
Forum: Plugins
In reply to: [Pop-Up CC Exit] Undefined index & offsetThanks Ewa,
Query Monitor is showing no more notices. Good job. Thanks,
Phil
This error appeared once in the php error logs: “PHP Fatal error: Class QM_Output_Html cannot extend from interface QM_Output…”
By deactivating & reactivating plugin error was not repeated.
Cheers