vemman
Forum Replies Created
-
Thanks that worked.
Since my problem is the same. I edit the homepage but it is not showing on the frontend. I myself kind of found that editing works via Themes>Editor.
The question is should we stop using default page/post editor?
Suggestion: Please put a tutorial on making a site using FSE
- This reply was modified 1 year, 8 months ago by vemman.
Forum: Plugins
In reply to: [Advanced Accordion Gutenberg Block] Fatal ErrorUpdate:
I also have ACF installed. I believe this issue with insert-pages plugin is similar to this plugin. A fix for “insert pages” (from author of that plugin) is here.
ACF makes multiple calls from the git commitsome plugins, like Advanced Custom Fields, create a scenario where this init hook gets called multiple times
https://github.com/uhm-coe/insert-pages/commit/621a76ecd203492556754292b2eaa2d953cb3f96
Forum: Plugins
In reply to: [Advanced Accordion Gutenberg Block] Fatal ErrorI got same error fixed by editing function
aab_wp_block_patterns
the file
wp-content/plugins/advanced-accordion-block/block-patterns/block-patterns.php
line 16 add an empty check for $slug. Sometimes this gets called with a null $slug
function aab_wp_block_patterns( $slug = null, $title = null, $description = null, $content = null ) { if(empty($slug)) return false; // check if $slug is empty register_block_pattern( 'block-pattern/' . $slug, [ 'categories' => [ 'accordion-block' ], 'title' => __( $title, 'advanced-accordion-block' ), 'description' => __( $description, 'advanced-accordion-block' ), 'content' => $content, ] ); } add_action( 'init', 'aab_wp_block_patterns',4,10 );
In simple words enabling SG Optimizer is the only method required to replicate this on my site. It slows import immensely and throws memory exhausted & mysql server gone away errors in the logs.
In detail, how I found it.
We have a multilingual woocommerce store with WPML, Elementor, Elementor Pro, Kirki framework, yoast etc. around 40 plugins
We use WP All Import by Soflyy, for updating stock. On our April 3 stock update instead of usual under 10 mins time it took 1hr 30mins + (and more in subsequent runs). The csv is simple with SKU & stock quantity only.
After not finding any issue on local machine. I contacted SG support and got usual reply of blaming plugins.
Then I went on with disabling all plugins (except WC, WPML & WP All Import). Then I ran import enabling one plugin at a time and running the same import. And it all gave same sub 10 mins import time. Finally I enabled SG Optimizer and it shot back to 1hr 30mins. I rechecked without SG Optimizer and fell back to usual time.
SG Support also confirmed this and told me they will escalate it to the developers.
Forum: Plugins
In reply to: [WP Search with Algolia] WPML integration@nemovich Which plugin are you using? I am on a small LTR, RTL ecom site development. Would be great if you could share
Thank you
Forum: Fixing WordPress
In reply to: REST API ProblemHad similar issue noticed when gutenberg threw error.
Solution:
rewrite was off in my docker container (php:7.3-apache-buster)
a2enmod rewrite
&service reload apache2
resolved it for me. Should work on normal systems tooForum: Fixing WordPress
In reply to: admin_notices hook doesn’t work correctly.Just adding my two bits on this. Been trying to get to display some info messages for during save_post (after validating some custom meta fields) for a woocommerce admin side order.
After searching through length and breadth of various sites & forums, I could only get a custom message displayed with this
https://onextrapixel.com/10-tips-for-a-deeply-customised-wordpress-admin-area/
function frl_on_save_post($post_id, $post) {/* add warning filter when saving post */ if($post->post_type == 'post') //test for something real here add_filter('redirect_post_location', 'frl_custom_warning_filter'); } add_action('save_post', 'frl_on_save_post', 2, 2); function frl_custom_warning_filter($location) { /* filter redirect location to add warning parameter*/ $location = add_query_arg(array('warning'=>'my_warning'), $location); return $location; } function frl_warning_in_notice() { /* print warning message */ if(!isset($_REQUEST['warning']) || empty($_REQUEST['warning'])) return; $warnum = trim($_REQUEST['warning']); /* possible warnings codes and messages */ $warnings = array( 'my_warning' => __('This is my truly custom warning!', 'frl') ); if(!isset($warnings[$warnum])) return; echo '<div class="error message"><p><strong>'; echo $warnings[$warnum]; echo '</strong></p></div>'; } add_action('admin_notices', 'frl_warning_in_notice');
Forum: Fixing WordPress
In reply to: Dashboard crashing after plugin installationSame issue here.. any ideas??
Forum: Plugins
In reply to: [Job Manager] Is this Plugin working ?Thats a great news Thomas.
Looking forward to the latest version..Hi @photocrati,
thanks for the great plugin. but does the answer you have happen to have a typo? shouldn’t b beadmin/settings.php, remove line #201: include_once (dirname (__FILE__) . '/upgrade.php');
I could only find upgrade.php there