risu89
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: No categories in the portfolioOk, I already know where is the problem. The default porfolio does not have a category when I have active:
So… in order to use it, I have to disable these plugins and see if I really need them. I didn’t think that it could have an impact ??
Thank you!
Hi,
thank you very much for your quick reply. I used “Health Check Plugin” and the error occurs because of the theme I’m using (with Twenty Twenty-Three everything is ok).
Log file (I only removed the username (X) and domain name (Y)):[16-Aug-2023 18:33:55 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_placeholder_img_src() in /home/X/domains/Y/public_html/wp-content/themes/goya/inc/woocommerce/category-image.php:18 Stack trace: #0 /home/X/domains/Y/public_html/wp-includes/class-wp-hook.php(308): goya_edit_category_header_img(Object(WP_Term), 'category') #1 /home/X/domains/Y/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /home/X/domains/Y/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/X/domains/Y/public_html/wp-admin/edit-tag-form.php(256): do_action('category_edit_f...', Object(WP_Term), 'category') #4 /home/X/domains/Y/public_html/wp-admin/term.php(74): require('/home/X/dom...') #5 {main} thrown in /home/X/domains/Y/public_html/wp-content/themes/goya/inc/woocommerce/category-image.php on line 18 [16-Aug-2023 18:34:19 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_placeholder_img_src() in /home/X/domains/Y/public_html/wp-content/themes/goya/inc/woocommerce/category-image.php:18 Stack trace: #0 /home/X/domains/Y/public_html/wp-includes/class-wp-hook.php(308): goya_edit_category_header_img(Object(WP_Term), 'category') #1 /home/X/domains/Y/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /home/X/domains/Y/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/X/domains/Y/public_html/wp-admin/edit-tag-form.php(256): do_action('category_edit_f...', Object(WP_Term), 'category') #4 /home/X/domains/Y/public_html/wp-admin/term.php(74): require('/home/X/dom...') #5 {main} thrown in /home/X/domains/Y/public_html/wp-content/themes/goya/inc/woocommerce/category-image.php on line 18 [16-Aug-2023 18:34:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_placeholder_img_src() in /home/X/domains/Y/public_html/wp-content/themes/goya/inc/woocommerce/category-image.php:18 Stack trace: #0 /home/X/domains/Y/public_html/wp-includes/class-wp-hook.php(308): goya_edit_category_header_img(Object(WP_Term), 'category') #1 /home/X/domains/Y/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /home/X/domains/Y/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/X/domains/Y/public_html/wp-admin/edit-tag-form.php(256): do_action('category_edit_f...', Object(WP_Term), 'category') #4 /home/X/domains/Y/public_html/wp-admin/term.php(74): require('/home/X/dom...') #5 {main} thrown in /home/X/domains/Y/public_html/wp-content/themes/goya/inc/woocommerce/category-image.php on line 18
Forum: Developing with WordPress
In reply to: Self-referencing canonicalHey, thanks for the reply!
I’m not convinced that this is the problem. I previously had WordPress 5.4, I just upgraded to a newer version a while ago. I also updated all plugins and nothing helped.I think I found the solution. It’s not perfect, but it works ??
<?php if ( is_front_page() ) { $canonical_url = get_home_url(); } else { $canonical_url = get_permalink(); } /*if(is_category()) { $categories = get_the_category(); $category_id = $categories[0]->term_id; echo '<link rel="canonical" href="' . get_category_link($category_id) . '" />'; }*/ if ( is_singular() ) { ?> <link rel="canonical" href="<?php the_permalink(); ?>" /> <?php } if ( is_archive() || is_home() || is_category() ) { ?> <link rel="canonical" href="domain-URL<?php echo $_SERVER['REQUEST_URI'];?>"> <?php } ?>
Forum: Everything else WordPress
In reply to: Scroll to the bottom doesn’t work on mobileThank you for a reply. After another few hours I found a solution – I had to change desing of the menu because only 4 of 5 offered designs works on mobile devices Of course, I had to choose one that doesn’t work ??
- This reply was modified 4 years, 2 months ago by risu89. Reason: misspelling
Forum: Everything else WordPress
In reply to: Looking for a widget/pluginThank you for your reply. I will check them out ??
Forum: Plugins
In reply to: [LiteSpeed Cache] Google Analytics & LiteSpeed CacheThe good old “turn off and on again” worked ??
Thank you again!Forum: Plugins
In reply to: [LiteSpeed Cache] Google Analytics & LiteSpeed CacheHi,
Well, I think that it is more complicated ?? When I noticed that problem with GA, I added tracking code to header.php (previously, it was implemented by plugin Header and Footer Scripts). It worked and I could see real-time data in GA. I checked GA next day (around 9 AM) and it wasn’t working at all. 24 hours have passed and I still don’t see data from that day in GA. Website changes a bit – small window with Facebook wasn’t visible and that strap at the bottom of the page (cookies policy) changes colors to basic version.
I used Google Analytics Debugger to check if there was something wrong with GA script and everything was ok. I switched off two options in LSCWP (I found some recommendations on forum):
– JS Combine ([5] – OPTIMIZE),
– Instant Click ([A] – ADVANCED).
But it didn’t worked. I couldn’t find any better solution so I asked here for help and switched off LSCWP. Currently, I see data in real-time and website looks normal. Do you think that “turning it off and on again” helped?I hope that it stays that way. But I’m not sure after my previous experiences :/
With default settings everything was fine for very long time. If tommorow I won’t see data in GA, I will switch to default settings. Before that, should I let you know that there is a problem again?I really appreciate your help on this! Thank you!
Forum: Plugins
In reply to: [LiteSpeed Cache] Google Analytics & LiteSpeed CacheHi,
I turned it on.
Forum: Plugins
In reply to: [LiteSpeed Cache] Google Analytics & LiteSpeed CacheHi,
Report number – DXZLQYIP.
Thank you for reply and help.
You have right, there is a problem with one plugin – SiteOrigin Widgets Bundle and I can’t deactivate it :/
—
Btw. awsome plugin!- This reply was modified 8 years, 4 months ago by risu89.