Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter nenosw

    (@nenosw)

    We still encounter this problem once a week and need to clear the WordPress cache to recover. What happens is that the feed is broken and not displayed correctly. Although we added an exemption to the caching plugin for the news page, it still happens. Do you know how we can fix this for good?

    Thread Starter nenosw

    (@nenosw)

    It was the adblocker…

    Thread Starter nenosw

    (@nenosw)

    Thanks for your answer. I will try that.
    Just out of curiosity, what if I want to use them just on a single site, how would i proceed then? Because at the moment its not being loaded anywehere.

    Thread Starter nenosw

    (@nenosw)

    Now the menu also disappeared on home. I have no idea why this is happening. What could cause such a problem?

    Thread Starter nenosw

    (@nenosw)

    Hi

    We have cleared the cache and also didnt use any filters.

    Yes, please check the follwing URL:
    https://stage.reaplus.ch/

    Thread Starter nenosw

    (@nenosw)

    Sasa, thanks a lot. that was it. I somehow missed the rewrite tag in the taxonomy settings, I overlooked it although I went trough the settings a hundred times. Thanks!

    Thread Starter nenosw

    (@nenosw)

    Yeah I usually wouldnt mind, but our SEO guy wants that fixed. I will try with in the yoast forum. Thanks

    Thread Starter nenosw

    (@nenosw)

    I noticed that in this way, the empty car makes are still shown. Any ideas on how to avoid that?

    Thread Starter nenosw

    (@nenosw)

    OK. I just found a solution by myself. Its not a great solution, but it works. In the function ‘function conditional_terms_ajax_new( el )’ in ‘beatiful-taxonomy-filters-public.js’, I added following condition on line 213:

    if ( taxonomy === ‘make’ ) {return;}

    Thanks and cheers

    Thread Starter nenosw

    (@nenosw)

    Thanks of the input, but i still cant get it working. I managed to add the pagination, but it doesnt work right. On each page it shows the same posts, always the newest 2 (or whatever number i put as posts per page). Also the navigation is buggy, I cant click on page 1, next leads always to page 2, etc.
    What am I doing wrong?

    
    <?php
    	$paged = get_query_var('paged') ? get_query_var('paged') : 1;
    	$args = array(
    		'post_type' => 'post',
    		'post_status' => 'publish',
    		'category_name' => 'news',
    		'posts_per_page' => 2,
    		'paged' => $paged,
    	);
    	$arr_posts = new WP_Query( $args );
    	if ($arr_posts->have_posts()) :
    		while ($arr_posts->have_posts()) : $arr_posts->the_post()
    ?>
    		<div class="col-xs-12 no-padding entry">
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    					<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 no-padding">
    						<?php
    							if ( has_post_thumbnail() ) :
    								the_post_thumbnail('medium', array( 'class' => 'img-responsive news-img' ));
    							endif;
    						?>
    					</div>
    					<div class="col-xs-12 col-sm-8 col-md-8 col-lg-8">
    						<header class="entry-header">
    							<p class="entry-date">
    							<?php echo get_the_date( 'd.m.Y' ); ?>
    							</p>
    							<h1 class="entry-title">
    								<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    							</h1>
    						</header>
    						<div class="entry-content">
    							<?php the_excerpt(); ?>
    						</div>
    					</div>
    			</article>
    		</div>
    		<?php endwhile ?>
    		
    		<?php
    		$total_pages = $arr_posts->max_num_pages;
    		if ($total_pages > 1){
    
    			$current_page = max(1, get_query_var('paged'));
    
    			echo paginate_links(array(
    				'base' => get_pagenum_link(1) . '%_%',
    				'format' => '/page/%#%',
    				'current' => $current_page,
    				'total' => $total_pages,
    				'prev_text'    => __('« prev'),
    				'next_text'    => __('next »'),
    				'add_args'  => array()
    			));
    		}
    			?>    
    		<?php else :?>
    		<h3><?php _e('404 Error: Not Found', ''); ?></h3>
    		
    		
    		
    	<?php endif; wp_reset_postdata();?>
    
    Thread Starter nenosw

    (@nenosw)

    Well I managed to do a successful import with the WP All Import plugin, but I am still curious about why the ‘woocommerce way’ doesnt work.

    Thread Starter nenosw

    (@nenosw)

    here is my htaccess file

    
    ###########################
    # WP htaccess Boilerplate #
    ###########################
    
    ### https://github.com/Creare/WP-htaccess/
    
    ############
    # Security #
    ############
    
    ### Recognise SSL when set at a load balancer/proxy level (for CloudFlare)
    SetEnvIf X-Forwarded-Proto https HTTPS=on
    
    ### Prevent wp-config.php from being loaded:
    <files wp-config.php>
        order allow,deny
        deny from all
    </files>
    
    ### Prevent sftp-config.json from being loaded:
    <files sftp-config.json>
        order allow,deny
        deny from all
    </files>
    
    ### Protect .htaccess
    <Files ~ "^.*\.([Hh][Tt][Aa])">
        order allow,deny
        deny from all
        satisfy all
    </Files>
    
    ### Secure wp-includes
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^wp-admin/includes/ - [F,L]
      RewriteRule !^wp-includes/ - [S=3]
      RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
      RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
      RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>
    
    ### Prevent directory browsing
    <IfModule mod_autoindex.c>
      Options -Indexes
    </IfModule>
    
    ### Prevent this .htaccess from being accessed:
    <files .htaccess>
        order allow,deny
        deny from all
    </files>
    
    ### Prevent WordPress' readme.html from being accessed (as it contains the version number)
    <files readme.html>
    Deny from all
    </files>
    
    ### Disable HTTP Trace
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^TRACE
    RewriteRule .* - [F]
    
    ### Block access to hidden files & directories
    <IfModule mod_rewrite.c>
        RewriteCond %{SCRIPT_FILENAME} -d [OR]
        RewriteCond %{SCRIPT_FILENAME} -f
        RewriteRule "(^|/)\." - [F]
    </IfModule>
    
    ### Block access to source files
    <FilesMatch "(^#.*#|\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|sw[op])|~)$">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>
    
    ###############################
    # Additional Rewrite Settings #
    ###############################
    
    # Option 1
    # http://domain > http://www.domain
    
    <IfModule mod_rewrite.c>
        # Options +FollowSymlinks #Not supported by some hosting
        ### If you wish to redirect to a https:// simply substitute http: with https:
        RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
        RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
        ### Redirect away from /index.php to clear path
        RewriteCond %{THE_REQUEST} ^.*/index.php  
        RewriteRule ^(.*)index.php$ http://www.%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L] 
    </IfModule>
    
    # Option 2
    # http://www.domain > http://domain
    
    #<IfModule mod_rewrite.c>
        # Options +FollowSymlinks #Not supported by some hosting
        ### If you wish to redirect to a https:// simply substitute http: with https:
        #RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
        #RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
        ### Redirect away from /index.php to clear path
        #RewriteCond %{THE_REQUEST} ^.*/index.php  
        #RewriteRule ^(.*)index.php$ http://%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L] 
    #</IfModule>
    
    ##############################
    # Default WordPress Settings #
    ##############################
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    #######################
    # Speed & Compression #
    #######################
    
    # BEGIN Expire headers  
    <ifModule mod_expires.c>  
        ExpiresActive On  
        ExpiresDefault "access plus 5 seconds"  
        ExpiresByType image/x-icon "access plus 2592000 seconds"  
        ExpiresByType image/jpeg "access plus 2592000 seconds"  
        ExpiresByType image/png "access plus 2592000 seconds"  
        ExpiresByType image/gif "access plus 2592000 seconds"  
        ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"  
        ExpiresByType text/css "access plus 604800 seconds"  
        ExpiresByType text/javascript "access plus 216000 seconds"  
        ExpiresByType application/javascript "access plus 216000 seconds"  
        ExpiresByType application/x-javascript "access plus 216000 seconds"  
        ExpiresByType text/html "access plus 600 seconds"  
        ExpiresByType application/xhtml+xml "access plus 600 seconds"  
    </ifModule>  
    # END Expire headers 
    
    <ifModule mod_headers.c>  
        # BEGIN Cache-Control Headers  
        <filesMatch "\.(ico|jpe?g|png|gif|swf)$">  
            Header set Cache-Control "public"  
        </filesMatch>  
        <filesMatch "\.(css)$">  
            Header set Cache-Control "public"  
        </filesMatch>  
        <filesMatch "\.(js)$">  
            Header set Cache-Control "private"  
        </filesMatch>  
        <filesMatch "\.(x?html?|php)$">  
            Header set Cache-Control "private, must-revalidate"  
        </filesMatch>
        # END Cache-Control Headers  
    </ifModule>  
    
    <IfModule mod_deflate.c> 
        AddOutputFilterByType DEFLATE text/xhtml text/html text/plain text/xml text/javascript application/x-javascript text/css 
        BrowserMatch ^Mozilla/4 gzip-only-text/html 
        BrowserMatch ^Mozilla/4\.0[678] no-gzip 
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
        SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary 
        Header append Vary User-Agent env=!dont-vary 
    </IfModule>  
    
    AddOutputFilterByType DEFLATE text/html  
    AddOutputFilterByType DEFLATE text/plain  
    AddOutputFilterByType DEFLATE text/xml  
    AddOutputFilterByType DEFLATE text/css  
    AddOutputFilterByType DEFLATE text/javascript  
    AddOutputFilterByType DEFLATE application/x-javascript  
    
    #Remove the ETag header
    Header unset ETag 
    FileETag None  
    
    #######################
    # File Format Support #
    #######################
    
    ### Add support for SVG and HTC
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
    AddType text/x-component .htc
    
    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/user/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/user/public_html/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF
    
Viewing 12 replies - 1 through 12 (of 12 total)