-
AuthorPosts
-
December 19, 2013 at 7:57 pm #202209
Hi, We’re using wordpress 3.8 and Enfold 2.4.4 and we’re currently having a problem with the rewrite rules for portfolio-items. All plug-ins have been deactivated and rules flushed many times to no avail. Rewrite Rules plug-in show the following:
Here’s an example page: http://percolab.com/blog3/portfolio-item/test-de-permalien/
categories/([^/]+)/?$ index.php?portfolio_entries=$matches[1] missing categories/([^/]+)/page/?([0-9]{1,})/?$ index.php?portfolio_entries=$matches[1]&paged=$matches[2] missing categories/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?portfolio_entries=$matches[1]&feed=$matches[2] missing categories/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?portfolio_entries=$matches[1]&feed=$matches[2] missing portfolio-item/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?attachment=$matches[1]&cpage=$matches[2] missing portfolio-item/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] missing portfolio-item/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] missing portfolio-item/[^/]+/([^/]+)/trackback/?$ index.php?attachment=$matches[1]&tb=1 missing portfolio-item/[^/]+/([^/]+)/?$ index.php?attachment=$matches[1] missing portfolio-item/([^/]+)(/[0-9]+)?/?$ index.php?portfolio=$matches[1]&page=$matches[2] missing portfolio-item/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?portfolio=$matches[1]&cpage=$matches[2] missing portfolio-item/([^/]+)/page/?([0-9]{1,})/?$ index.php?portfolio=$matches[1]&paged=$matches[2] missing portfolio-item/([^/]+)/trackback/?$ index.php?portfolio=$matches[1]&tb=1 missing portfolio-item/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$ index.php?attachment=$matches[1]&cpage=$matches[2] missing portfolio-item/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] missing portfolio-item/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ index.php?attachment=$matches[1]&feed=$matches[2] missing portfolio-item/[^/]+/attachment/([^/]+)/trackback/?$ index.php?attachment=$matches[1]&tb=1 missing portfolio-item/[^/]+/attachment/([^/]+)/?$ index.php?attachment=$matches[1] missing
December 20, 2013 at 2:11 am #202354Hey percolab!
You can try to flush the permalink settings a few times. Change it to something else, save changes. Revert it back to your default settings then save changes again. Add this on .htaccess file:
# 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
Best regards,
IsmaelDecember 20, 2013 at 2:31 am #202366Thanks Ismael for your response,
Tried that, but no joy, been trying multiple things all day.Any other ideas? P
December 20, 2013 at 8:25 am #202486Hi!
Are you using WPML? If yes this thread: https://kriesi.at/support/topic/wp-3-8-with-wpml-3-0-1-creates-404-errors/ may help you.
Best regards,
PeterDecember 24, 2013 at 12:40 pm #203567December 24, 2013 at 1:23 pm #203576Hi!
I just noticed you already updated Enfold to verion 2.4.4. Since Enfold 2.4.4 you should be able to change the portfolio permalinks settings on the Settings > Permalink page. You don’t need to use the code I posted here ( https://kriesi.at/support/topic/wp-3-8-with-wpml-3-0-1-creates-404-errors/ ). If you want to translate the slugs with WPML you can use the “String Translation Management” extension for the slug translation.
If the permalink rules don’t work try to delete the theme folder, then re-upload all themes files (v2.4.4), go to Theme Options and save the theme settings, then go to Settings > Permalinks and save the permalink options.
Best regards,
PeterJanuary 3, 2014 at 5:22 pm #205034Hi Peter,
I added a new theme and the portfolio items worked (nearly all, one or two gave 404 errors), but all the pages ended up as 404 errors.
If I add the following to functions.php: flush_rewrite_rules( false ); the pages work, but the portfolio items don’t. Do you want to have a poke around the admin?
Really need to get this cracked as the site should be live and this is holding us back. Thanks for any support.
Best wishes, Paul
January 4, 2014 at 9:45 am #205285Hi!
Yes, if you can respond here with a private reply (the set as private reply check box) and giving the needed credentials to look at it live that would be great.
Regards,
DevinJanuary 6, 2014 at 5:20 pm #205888This reply has been marked as private.January 8, 2014 at 12:03 pm #206769Hey!
Please update your WPML version to 3.0.1. 2.4.2 is outdated and it may not work with WP3.8 or Enfold.
Cheers!
PeterMarch 13, 2014 at 12:02 pm #236831Same issue here, all portfolio feeds end up with error 404.
Only changed the permalink item base to “referenz”.Enfold v2.6.1, not using WPML
http://www.chris-kettner.de/referenzenMarch 14, 2014 at 11:07 am #237522Hey!
I checked all portfolio entries and the links work for me – did you solve the problem?
Best regards,
PeterMarch 14, 2014 at 12:19 pm #237555Sorry, forgot to mention that the Feeds are not working, entries are just fine.
For example: http://www.chris-kettner.de/referenz/lamar-lowery-functional-training/feed
Discovered the problem in the broken links section of Google Webmaster Tools.Thanks for your help!
March 14, 2014 at 4:20 pm #237708March 14, 2014 at 4:26 pm #237714WPML isn’t running, tried to change the theme and save permalinks though.
Unfortunately, nothing has changed.March 16, 2014 at 12:18 pm #238265Hey!
You can’t great a feed of a single portfolio entry – i.e. http://www.chris-kettner.de/referenz/lamar-lowery-functional-training/feed is not a valid feed url. If you need a category feed use the archive url (i.e. http://www.chris-kettner.de/category/allgemein/ ) and add /feed/ to it:
http://www.chris-kettner.de/category/allgemein/feed/
If you need a feed of all portfolio entries use this url: http://www.chris-kettner.de/feed/?post_type=portfolio
Best regards,
PeterMarch 16, 2014 at 12:25 pm #238268Hi,
it’s not that i need the feed, but it seems to be automatically generated in the source code (line 32).
How to avoid that behaviour?Thanks for your effort
March 18, 2014 at 8:29 am #239201Hi!
You can remove the feed links. Just insert this code:
remove_action( 'wp_head', 'feed_links', 2 );
at the very bottom of your child theme functions.php or enfold/functions.php
Regards,
PeterMarch 18, 2014 at 11:00 am #239286Hi Peter,
your Code Snippet removed the Page and the Comment Feed, but the portfolio item feed remained in the code.I found some similar snippet that did the trick:
remove_action( 'wp_head', 'feed_links_extra', 3 );
I only wonder if that snippets affects other than the portfolio feeds.
March 19, 2014 at 11:42 pm #240395Hey!
Yes, it will disable category as well as comment feeds as believe.
Regards,
DevinMarch 19, 2014 at 11:44 pm #240398Unsubscribing
Good luck :)March 21, 2014 at 10:34 am #241079Hi!
Yes, it will affect all feeds. If you don’t want to remove the feed of pages/posts replace:
remove_action( 'wp_head', 'feed_links_extra', 3 );
with
add_action('wp_head','avia_remove_feed', 1); function avia_remove_feed(){ if(is_single() && get_post_type() == 'portfolio') remove_action( 'wp_head', 'feed_links_extra', 3 ); }
Best regards,
PeterMarch 21, 2014 at 10:37 am #241080Perfect, thank you Peter!
That’s exactly what I was looking for. -
AuthorPosts
- The topic ‘Portfolio items all 404's Rewrite rules missing?’ is closed to new replies.