Hi,
My portfolio details pages are giving a 404 error, please help. I have .htaccess setup with default wordpress settings.
http://rentalbookingsoftware.com/portfolio/snowlab-ski-snowboard-shop-rentals/ as example main page works ok: http://rentalbookingsoftware.com/portfolio/
I have updated to your latest version 2.6.5 and it didn't fix it, also tried disabling most of my plugins. Please help ASAP. I needed I can make ticket private and give my logins and FTP.
I have found that if I disable Doc It plugin portfolio works. Doc-it is here: http://wordpress.org/plugins/slick-doc-it/
I contacted the module developer and they said:
"portfolio issue probably has to do with a flush rewrite that the developers did not put in there we have seen this conflict before it just so happens ours is loading after and is doing it properly."
So I'd prefer not to have to pay them to fix it, of course they say it's not their fault. Can you fix this somehow?
I think one simple step might get you to where you're looking to be.
Simply create a new page. >> Make sure the prettyURL is /porfolio >> look over on the right for Page Template and select "Portfolio" from the pop-up menu
From what you're describing, I think I was trying for the same thing… thinking a portfolio would automatically be generated once I started adding portfolio entries. Then it hit me to check the page templates…
So I had to pay a developer to fix the issue. It's actually a coding bug in the Themenectar Salient theme, but is very easy to fix. In the functions.php file (in main Salient folder) here is this line of code:
and do a settings > permalink save to reload your permalinks and it will work. Solves the portfolio 404 issue. This fix should be put into Salient 2.7 or even the current 2.6.5
<it's the portfolio detail pages that are not working>
So what was it that wasn't working?
Are you talking about when the user, say, hovers over a portfolio item in the grad layout > and then clicks "Learn More" > then gets taken to that particular portfolio post? Is that the portfolio "details" page you're talking about?
Wanna know 'cause I'm digging into making this portfolio thing happen now… and wanna know any quirks.
Yes that is the page I refer to - the portfolio item details page. That was giving a 404. The Doc It module creator said that the flush rewrite needs to be there or other modules that use "Custom Post Type" will not work correctly.
Hey Kevin, i'm very sorry for the long delay you experienced on here - unfortunately every time a new comment is posted on a ticket it pushes it to the end of my queue because my tickets are sorted in order from oldest to newest from last comment posted.
--
Reading through the fix the developer gave, from my understanding of that function according to the WordPress codex, flush_rewrite_rules should not be used like that because it's too costly performance wise. https://codex.wordpress.org/Function_Reference/flush_rewrite_rules It's recommended to only be used when activating or deactivating a theme/plugin or when dynamically adding a new post type (the portfolio post type is static). Becuase of this, I'm not comfroatble adding that into the core of the theme to remedy this one plugin - further inevtigation might be required though for a better solution.
I've never heard of the plugin you're using before but I also find it odd you had to pay to receive the one line quickfix.
thanks for the solution, I also had the same 404 issue and solved with that extra line of code in functions.php.
BUT: after making that change, uploaded functions.php, re-saved permalinks settings... I tried to comment out the line from functions.php, restoring the original file, re-upload... and everything now works fine also in new projects posted. Take a look if this might help...
btw I have already re-saved settings > permalinks and it had no effect
I have updated to your latest version 2.6.5 and it didn't fix it, also tried disabling most of my plugins. Please help ASAP. I needed I can make ticket private and give my logins and FTP.
I have found that if I disable Doc It plugin portfolio works. Doc-it is here: http://wordpress.org/plugins/slick-doc-it/
I contacted the module developer and they said:
"portfolio issue probably has to do with a flush rewrite that the developers did not put in there we have seen this conflict before it just so happens ours is loading after and is doing it properly."
So I'd prefer not to have to pay them to fix it, of course they say it's not their fault. Can you fix this somehow?
Hey Kevin,
I think one simple step might get you to where you're looking to be.
Simply create a new page. >> Make sure the prettyURL is /porfolio >> look over on the right for Page Template and select "Portfolio" from the pop-up menu
From what you're describing, I think I was trying for the same thing… thinking a portfolio would automatically be generated once I started adding portfolio entries. Then it hit me to check the page templates…
See if that helps…
Hi,
Thanks Drew for replying. The portfolio page itself works fine, it's the portfolio detail pages that are not working.
Hi,
So I had to pay a developer to fix the issue. It's actually a coding bug in the Themenectar Salient theme, but is very easy to fix. In the functions.php file (in main Salient folder) here is this line of code:
register_post_type( 'portfolio' , $args );
}
change it to:
register_post_type( 'portfolio' , $args );
flush_rewrite_rules();
}
and do a settings > permalink save to reload your permalinks and it will work. Solves the portfolio 404 issue. This fix should be put into Salient 2.7 or even the current 2.6.5
Hey Kevin.
<it's the portfolio detail pages that are not working>
So what was it that wasn't working?
Are you talking about when the user, say, hovers over a portfolio item in the grad layout > and then clicks "Learn More" > then gets taken to that particular portfolio post? Is that the portfolio "details" page you're talking about?
Wanna know 'cause I'm digging into making this portfolio thing happen now… and wanna know any quirks.
Thanks!
Hi,
Yes that is the page I refer to - the portfolio item details page. That was giving a 404. The Doc It module creator said that the flush rewrite needs to be there or other modules that use "Custom Post Type" will not work correctly.
Hey Kevin, i'm very sorry for the long delay you experienced on here - unfortunately every time a new comment is posted on a ticket it pushes it to the end of my queue because my tickets are sorted in order from oldest to newest from last comment posted.
--
Reading through the fix the developer gave, from my understanding of that function according to the WordPress codex, flush_rewrite_rules should not be used like that because it's too costly performance wise. https://codex.wordpress.org/Function_Reference/flush_rewrite_rules It's recommended to only be used when activating or deactivating a theme/plugin or when dynamically adding a new post type (the portfolio post type is static). Becuase of this, I'm not comfroatble adding that into the core of the theme to remedy this one plugin - further inevtigation might be required though for a better solution.
I've never heard of the plugin you're using before but I also find it odd you had to pay to receive the one line quickfix.
Cheers guys
Hi Kevin,
thanks for the solution, I also had the same 404 issue and solved with that extra line of code in functions.php.
BUT: after making that change, uploaded functions.php, re-saved permalinks settings... I tried to comment out the line from functions.php, restoring the original file, re-upload... and everything now works fine also in new projects posted.
Take a look if this might help...
Cheers
Hey Kevin!
Thanks for sharing your solution for others who may come across this.
Cheers
ThemeNectar Support Team
After reading the above comments, a permalinks re-save fixed things for me.
@Jason Yes this is required in extreme cases only when resaving doesnt work.
Thanks
ThemeNectar Support Team