Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • After changing PHP version form 7.4 to 8.3 I also get this error when attempting to flush WP Rocket cache:

    Fatal error: Uncaught Error: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class Wp_Menu_Caching_Admin does not have a method "dc_purge_all_menu_html_transients"
    in /var/www/royallook/public_html/wp-includes/class-wp-hook.php on line 326

    Call stack:

    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/wp-rocket/inc/functions/files.php:883
    rocket_clean_domain()
    wp-content/plugins/wp-rocket/inc/common/purge.php:470
    do_admin_post_rocket_purge_cache()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-admin/admin-post.php:85


    Any idea how to fix? ??

    Kind regards

    Sadly the solution doesn’t work. There is only WooPayments active for me on the ‘Payments‘ tab. iDeal is activated inside there but cannot be moved.

    Thread Starter Cealin

    (@cealin)

    Hello Damian,

    Thanks for the fast reply! There were indeed such optimizations. I copied the site to a testing environment, removed all other plugins, activated WordPress default 2020 theme. Still got the error.

    I reverted back to 1.9.x.x version, which still works properly.

    Kind regards

    Thread Starter Cealin

    (@cealin)

    Forgot to mention, in another topic I saw it the other way around. I would like to do the opposite, using the invoice number as order number:

    /**
     * Format order number with invoice number settings
     */
    add_filter( 'wpo_wcpdf_invoice_number', 'wpo_wcpdf_format_invoice_number', 20, 4 );
    function wpo_wcpdf_format_invoice_number( $invoice_number, $order_number, $order_id, $order_date ) {
    	// We want to use the order number as invoice number!
    	$invoice_number = ltrim($order_number, '#');
    
    	// get format settings
    	$template_settings = get_option('wpo_wcpdf_template_settings');
    
    	$formats['prefix'] = isset($template_settings['invoice_number_formatting_prefix'])?$template_settings['invoice_number_formatting_prefix']:'';
    	$formats['suffix'] = isset($template_settings['invoice_number_formatting_suffix'])?$template_settings['invoice_number_formatting_suffix']:'';
    	$formats['padding'] = isset($template_settings['invoice_number_formatting_padding'])?$template_settings['invoice_number_formatting_padding']:'';
    
    	// Replacements
    	$order_year = date_i18n( 'Y', strtotime( $order_date ) );
    	$order_month = date_i18n( 'm', strtotime( $order_date ) );
    
    	foreach ($formats as $key => $value) {
    		$value = str_replace('[order_year]', $order_year, $value);
    		$value = str_replace('[order_month]', $order_month, $value);
    		$formats[$key] = $value;
    	}
    
    	// Padding - minimum of 3 for safety
    	if ( ctype_digit( (string)$formats['padding'] ) && $formats['padding'] > 3 ) {
    		$invoice_number = sprintf('%0'.$formats['padding'].'d', $invoice_number);
    	}
    
    	$formatted_invoice_number = $formats['prefix'] . $invoice_number . $formats['suffix'] ;
    
    	return $formatted_invoice_number;
    }
    Thread Starter Cealin

    (@cealin)

    Found the problem! Jquery got enqueued in functions.php. Removing this enqueue fixed my problem. Hope this can help somebody else ??

    Thread Starter Cealin

    (@cealin)

    I found out that the problem is the theme. But I cannot update or replace this theme. How to make it work for a theme? ??

    Also, the following error appeared: Uncaught TypeError: $(…).tabSlideOut is not a function

    Thread Starter Cealin

    (@cealin)

    Hello Ewout,
    Thanks for your reply. There was no email at all. I fixed the problem, however! Something was wrong with WordPress sending emails. I installed WP-Mail-SMTP and changed admin mails to be sent from my Gmail account instead of through WordPress. Now the emails arrive perfectly!

    Thread Starter Cealin

    (@cealin)

    Woops, you are right, I mentioned the wrong plugin. Thanks for your answer :).

    Thread Starter Cealin

    (@cealin)

    Thanks for the reply, will try your suggestion!

    I wonder why if that page is not set as the Static Home Page, all images do load correctly as https?

    Thread Starter Cealin

    (@cealin)

    Thanks for the quick and useful responses! Now I understand why i ended up with a blank page ??

    I will look into using CSS to control the amount of products showed per row.

    The website is https://www.hildegardwinkel.nl by th way :).

    Forum: Fixing WordPress
    In reply to: Fonts messed up
    Thread Starter Cealin

    (@cealin)

    Fixed it. The theme was referring to OpenSans/OpenSansRegular etc fonts. Changing those to Open Sans in multiple CSS files fixed it.

    Thread Starter Cealin

    (@cealin)

    I fixed it by placing

    Changing:

    ” title=”<?php the_title(); ?>” class=”otw-portfolio-item-link”>

    To:

    ” title=”<?php the_title(); ?>” class=”otw-portfolio-item-link”>

    So you have to 1) enable iframe and inline at the Easy FancyBox plugin settings in your dashboard. See which OTW team you use, go to the template php of that team, back it up, and then change the line as can be seen above in this post.

    Thread Starter Cealin

    (@cealin)

    This is the php page of the OTW template I use:

    <?php
    
    /* Template Name: Portfolio Filterable */
    
    get_header();
    
    otw_pfl_scripts_styles(); /* include the necessary srctips and styles */
    
    otw_pfl_filter_scripts_styles();
    
    ?>
    
    <?php $style_width = '';
    
      if( get_option( 'otw_pfl_content_width' ) ) {
    
          $style_width = 'style="width:'.get_option('otw_pfl_content_width').'px;"';
    
      }
    
    ?>
    
            <div class="otw-row otw-sc-portfolio" <?php echo $style_width; ?>>
    
                  <div class="otw-twentyfour otw-columns">
    
                      <?php $taxo = get_object_taxonomies( 'otw-portfolio' );
    
                        foreach ( $taxo as $tax_name ) {
    
                            $categories = get_categories('taxonomy='.$tax_name);
    
                            $i = 0; $len = count( $categories );
    
                            foreach ($categories as $category) {
    
                                if ($i == 0) { ?><ul class="otw-portfolio-filter"> <li class="all"><a href="#"><?php _e( 'All', 'otw_pfl' ); ?></a></li> <?php }
    
                        	        echo '<li class="'.$category->category_nicename.'"><span class="separator">/</span><a href="#">'.$category->cat_name.'</a></li>';
    
                                if ($i == $len - 1) { echo '</ul>'; }
    
                                $i++;
    
                            }
    
                        }
    
                      ?>
    
                      <ul class="otw-portfolio block-grid four-up mobile">
    
                      <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;  ?>
    
                      <?php query_posts('post_type=otw-portfolio&posts_per_page=-1&paged='.$paged); ?>
    
                      <?php if (have_posts()): while (have_posts()) : the_post(); ?>
    
                          <li data-type="<?php foreach(get_the_terms($post->ID, 'otw-portfolio-category') as $term) echo $term->slug.' ' ?>" data-id="id-<?php echo($post->post_name) ?>">
    
                              <article id="post-<?php the_ID(); ?>" <?php post_class('otw-portfolio-item'); ?>>
    
                                	<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="otw-portfolio-item-link">
    
                                		<div class="image">
    
                                    		<?php if ( has_post_thumbnail()) { ?>
    
                                    		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>
    
                                    		<?php } else { ?>
    
                                                <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>
    
                                            <?php } ?>
    
                                		</div>
    
                                		<div class="title">
    
                                			<h3><?php the_title(); ?></h3>
    
                                		</div>
    
                                		<div class="text entry-content">
    
                                			<?php the_excerpt(); ?>
    
                                		</div>
    
                                	<span class="shadow-overlay hide-for-small"></span></a>
    
                              </article>
    
                          </li>
    
                      <?php endwhile; ?>
    
                      </ul>
    
                </div>
    
              </div>
    
    <?php else: ?>
    
        <article id="post-0" class="post no-results not-found">
    
    		<header class="entry-header">
    
    			<h1 class="entry-title"><?php _e( 'Nothing Found', 'otw_pfl' ); ?></h1>
    
    		</header>
    
    		<div class="entry-content">
    
    			<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'otw_pfl' ); ?></p>
    
    			<?php get_search_form(); ?>
    
    		</div><!-- .entry-content -->
    
    	</article><!-- #post-0 -->
    
    <?php endif; ?>
    
        <?php otw_pagination_pfl(); ?>
    
    <?php get_footer(); ?>
    Thread Starter Cealin

    (@cealin)

    I used the Expand + Collapse Funk plugin, which solved my issues.

Viewing 15 replies - 1 through 15 (of 16 total)