Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter MoniqueR

    (@moniquer)

    Update, I have disabled every plugin, switched theme to Twenty Fourteen but it makes no difference.
    I also enabled debug=true and no errors appear anywhere except in backend on relevanssi page (/wp-admin/options-general.php?page=relevanssi/relevanssi.php) and in front-end on search result page

    Backend on top of page:
    WordPress database error: [Out of memory (Needed 1048548 bytes)]
    SELECT COUNT(DISTINCT doc) FROM jaba_relevanssi
    On bottom of page:
    WordPress database error: [Out of memory (Needed 1048548 bytes)]
    SELECT COUNT(DISTINCT(doc)) as cnt, term FROM jaba_relevanssi GROUP BY term ORDER BY cnt DESC LIMIT 25

    Thread Starter MoniqueR

    (@moniquer)

    That is not the problem. I just tested it by disbaling them and used a ‘fresh’ functions.php….

    Thread Starter MoniqueR

    (@moniquer)

    I do have a few filter functions in my funtions.php.
    If it is relevant to post or email them, please let me know

    Thread Starter MoniqueR

    (@moniquer)

    Hello Mikko,

    I I enable debug in my wp-config this is indeed the message that gets displayed in screen. What can be wrong? I did not change any code of changed anything in the database and it worked before.

    Managing folders would be a great improvement!

    Did you get this solved? I am looking for this solution also

    Regards!
    Monique

    Thread Starter MoniqueR

    (@moniquer)

    You have to put the code in your functions.php

    Did you manage to get this working? I am going to need it too in front-end publishing..

    Thread Starter MoniqueR

    (@moniquer)

    Hello David,

    Sorry for bothering you again ?? I got an error when I wanted to add a page to my menu. The error that accoured was:

    Warning: Invalid argument supplied for foreach() in \wp-content\plugins\Custom RFI Media Librabry\CustomRFI.php on line 92
    (This error message is repeatedly displayed on the screen. )

    Line 92 is the following code block you supplied above:

    if ( 'category' == self::TAXONOMY ) {
    		$default_category_id= get_option('default_category');
    
    		foreach( $the_terms as $index => $term ) {
    			if ( $term->term_id == $default_category_id ) {
    				unset( $the_terms[ $index ] );
    				break;
    			}
    		}
    	}

    Despite of the error, the page gets added.

    (I got this error message one time before, the exact same error message, but I have forgotten what I did to trigger the error)

    Regards, Monique

    Thread Starter MoniqueR

    (@moniquer)

    Hello David,

    Thank you so much for taking the time and effort to help out. It is really amazing.

    Also thank you for writing so much code. (I think this can be a very usefull add-on for the plugin)

    But, there is a tiny problem ??

    When posting a new post, the taxonomy for the category is ‘no category’. So it will pick a random image which has not been assigned for the specific category. On saving (even though I set the corect category, the image will still be a random image from the no-category)

    (If I update the post, I have to delete the wrongly assigned (the no-category) featured image. If I save the post then the correct category image from selected the category is assigned.

    So, the plugin does its job almost perfectly …
    Sorry for the inconvenience!

    Thread Starter MoniqueR

    (@moniquer)

    Hello David,

    Thank you very much for your answer. As I have seen on the plugin support page, you take a lot of time helping people out, wonderfull (rated 5 stars)

    I have read your answer and I think the best solution would be to update the database once when the post/page is created.
    If I choose for the first option, then it will not display the post_thumbnail on my listing pages (Don’t know how to say it, but I mean the page
    which shows all the post-excerpts of the specific category), so I have to alter code on different places.

    I have allready looked up where the post_thumbnail is loaded, and it happends in the core file of my theme (valenti)

    Here is the code of my single.php

    <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" <?php if ( $cb_review_checkbox != '1' ) { echo 'itemscope itemtype="https://schema.org/BlogPosting"'; } ?>>
    <?php
    	if ( ( $cb_featured_image_style == 'off' ) &&  ( $cb_breadcrumbs != 'off' ) ) { echo cb_breadcrumbs( 'padding-off' ); }
    	if ( ( $cb_featured_image_style == 'standard' ) && ( $cb_post_format != 'gallery' ) ) { echo cb_featured_image( $post, 'standard' ); }
            if ( ( $cb_featured_image_style == 'off' ) || ( $cb_post_format == 'gallery' ) ) { echo cb_featured_image( $post, 'off' ); }
    ?>
    <section class="entry-content clearfix" <?php if ( $cb_review_checkbox == '1' ) { echo 'itemprop="reviewBody"'; } else { echo 'itemprop="articleBody"'; } ?>>
    <?php  the_content(); ?>
    </section> <!-- end article section -->

    The code from core file of my theme:

    /*********************
    FEATURED IMAGE THUMBNAILS
    *********************/
    if ( ! function_exists( 'cb_thumbnail' ) ) {
        function cb_thumbnail($width, $height) {
    
          echo '<a href="'.get_permalink() .'">';
    
                if  (has_post_thumbnail()) {
                              $cb_featured_image = the_post_thumbnail('cb-'.$width.'-'.$height);
                                  echo $cb_featured_image[0];
                      } else {
                               $cb_thumbnail = get_template_directory_uri().'/library/images/thumbnail-'.$width.'x'.$height.'.png';
                               $cb_retina_thumbnail = get_template_directory_uri().'/library/images/thumbnail-'.$width.'x'.$height.'@2x.png';
                               echo '<img src="'. $cb_thumbnail .'" alt="article placeholder" data-src-retina="'. $cb_retina_thumbnail .'" data-src="'. $cb_thumbnail .'">';
                      }
          echo '</a>';
        }
    }

    and:

    /*********************
    FEATURED IMAGE THUMBNAILS RETURN
    *********************/
    if ( ! function_exists( 'cb_get_thumbnail' ) ) {
        function cb_get_thumbnail($width, $height, $cb_post_id) {
    
          $cb_output = '<a href="'. get_permalink($cb_post_id) .'">';
    
                if  ( has_post_thumbnail( $cb_post_id ) ) {
                              $cb_featured_image = get_the_post_thumbnail( $cb_post_id, 'cb-'. $width. '-' . $height );
    
                                   $cb_output .= $cb_featured_image;
                      } else {
                                $cb_thumbnail = get_template_directory_uri() .'/library/images/thumbnail-'. $width .'x'. $height .'.png';
                                $cb_retina_thumbnail = get_template_directory_uri() .'/library/images/thumbnail-'. $width .'x'. $height .'@2x.png';
                                $cb_output.= '<img src="'. $cb_thumbnail .'" alt="article placeholder" data-src-retina="'. $cb_retina_thumbnail .'" data-src="'. $cb_thumbnail .'">';
                      }
           $cb_output .= '</a>';
    
           return  $cb_output;
        }
    }

    Thanks in advance for your answer.

    +1 This would be a big improvement!

    Would love this too!

    It would be very great if shortcodes will be supported! Than I can create neat lists in my emails with bbpress most viewed topics and best rated topics.

    Hai there,

    I am having exact the same problem, it is not showing in my lead topic
    (add_filter( ‘bbp_show_lead_topic’, ‘__return_true’); )

    Regards,
    Monique

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