January 3, 2013 at 12:19 pm #19058January 3, 2013 at 1:34 pm #102000
Hi, think I found the solution but I need some help.
– With WPML, permalins activated porfolio items, post and products works but pages doesn’t works (error 404)
– If I ad this code at the end of functions.php:
flush_rewrite_rules( false );
With this rule the pages work ok but products and porfolio items doesn’t work.
So probably the solution is put this rule only affecting to pages. But I don’t know how to do it.January 3, 2013 at 6:39 pm #102001
You can try to use conditional tags: http://codex.wordpress.org/Conditional_Tags – i.e. the code would look like:
flush_rewrite_rules( false );
PeterJanuary 4, 2013 at 10:37 am #102002
Hi Dude. I add this code at the end of functions.php but this create a error. The pages don’t load.
I check with dreamweaver and in the first line:
dreamweaver says there is a syntax error
So, I delete the code and the pages work again
¿Do you know with syntax error can I have in this first line of the code?January 4, 2013 at 10:51 am #102003
I think the editor stripped out a part of what dude pasted. please try dude’s code again.
NickJanuary 4, 2013 at 12:19 pm #102004
Hi Nick. I pasted the code again. And now the code is ok. no syntaxis errors but don’t work to solve my problem.
1- When I put Dude’s code and activate permalinks. Porfolio and products work but pages doesn’t work. Is the same that happens without any code aded.
2- If I I put only the code without the conditional:
flush_rewrite_rules( false );
The pages work but It doesn’t work porfolio and products. Just the opposite
I think dude’s code is not working because the page has the same response as leave it original. I read the link that dude’s give in their message and provably don’t work because this reason:
Warning: You can only use conditional query tags after the posts_selection action hook in WordPress (the wp action hook is the first one through which you can use these conditionals). For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.January 6, 2013 at 1:15 am #102005
Please set up a temp account for me so that I can get you back on track. My email is (Email address hidden if logged out)
NickMarch 27, 2013 at 12:44 pm #102006
Have the same problem when pretty permalinks enabled then woocommerce cart and products pages do not show up. also using all the latest WPML, woocommerce and added woocommerce multilingual plugin.
What is the right solution?March 28, 2013 at 12:18 am #102007March 28, 2013 at 8:39 pm #102008March 29, 2013 at 4:29 am #102009
I remember you from before but you had a site up live. Would you put this one as well live, so that we can help you.
NickMarch 29, 2013 at 6:54 am #102010March 29, 2013 at 8:30 am #102011
Try this. When WPML installs, dont touch any settings and go to add new page. fill out all the fields and upload the image/slideshow, then click the two check boxes for duplicate, then save the page. at this point you should get right above save button another checkbox which asks if you want to duplicate (this time its alone) and when you check it a button appears bellow it.
When you click it nothing seems to happen. Click Update button and then switch to the ‘second language” (don’t click the checkboxes on bottom that ask if you wish to copy, ignore, or translate) Now on translate page, you should have a complete duplicate of the original page including all the images etc and settings. On the translation page just click update when you enter it. On the very top right corner of translation page you will see WPML asking if you want to stop synchronizing the translation to the original and you click that button. Now go and test if pages are found.
If they are not, please install this plugin http://wordpress.org/extend/plugins/rewrite-rules-inspector/ .. It will create a link in the Tools menu > Rewrite Rules. Now the first time you enter that page (rewrite rule plugin), keep your eye on the total number , if any are red, location : other.
Now copy the url to a page on the site that is not loading (showing 404) and paste the url of that page into the text box on top of the rewrite rule page and see if there is a rule that matches. Flush the rules and compare how the new regeneration list looks with the original one the first time it loaded .. same number of rules, etc…
NickMay 8, 2013 at 8:36 am #102012May 8, 2013 at 2:30 pm #102013
Please try to flush the permalink settings a few times. Sometimes it takes a few tries before they work.
IsmaelMay 10, 2013 at 8:58 am #102014
404 error comes back, every time I save wp or propulsion theme settings.
then I have to to the foolwing:
deactivate WPML multilingual CMS plugin
go to wp permalink settings and save couple of times:
then the page starts to work again.
and then i activate the WPML multilingual cms again.
It works until the next time i save some setting in wp options or in theme propulsion options.May 12, 2013 at 6:01 am #102015
You can try to set the file permissions of the htaccess to 0444 – then wordpress can’t rewrite the rules. I’m not sure if this will fix the issue though because the slug rules rewrite rules are stored in the database.May 16, 2013 at 5:17 am #102016May 16, 2013 at 5:49 am #102017
You can also remove the “permalink flush” function from the theme settings file. Then wp won’t flush the permalinks every time you save the settings. Open up (Purchase code hidden if logged out) .php and remove following line:
add_action('wp_loaded', 'avia_flush_rewrites');May 18, 2013 at 7:45 am #102018
Warning: Cannot modify header information – headers already sent by (output started at /www/apache/domains/www.maxolen.ee/htdocs/wp-content/themes/propulsion/framework/php/function-set-avia-backend.php:1) in /www/apache/domains/www.maxolen.ee/htdocs/wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63
then the page wont work.May 18, 2013 at 8:09 am #102019
Very strange – try this file: http://www.mediafire.com/view/?n88x0q7xbshiseq
PeterMay 23, 2013 at 5:39 am #102020
thank you-thank you, Peter
Just changed the file and now it seems to work!! what did you change?May 23, 2013 at 7:16 am #102021
now it seems the same problem is with saving woocomerce settings. If I make some changes in woo commerce settings I get the 404 page not found error in all pages besides shop catalogue. Then I have to to the trick again with with WPML off and save permalinks and WPML on again then its cool. There is no problem with other setting saving beside the woocommerce.
It seems there is some kind a conflict between the WPML _ wp _ and woocommerce.
the errorMay 25, 2013 at 7:06 am #102022
The topic ‘Pretty URL at products not working with wpml activated. Propulsion’ is closed to new replies.