View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004298 | OXID eShop (all versions) | 1.04. Content, static (register, contact etc.) pages | public | 2012-08-03 08:52 | 2014-02-18 16:46 |
Reporter | arvydas_vapsva | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | 4.6.1 revision 45706 | ||||
Target Version | 4.7.0_5.0.0_RC1 | Fixed in Version | 4.7.0_5.0.0_beta1 | ||
Summary | 0004298: Sometimes wrong content loaded on CMS page | ||||
Description | Click on different CMS page ling and u may get wrong content data (when content::getParsedContent() is used in template). And my fix was following (added content id parameter oxUtilsView::parseThroughSmarty() and for multilanguage solutions language id woucl also be recommended, or, even better - getViewId()..): <?php /** * Fixes content view issue */ class fixcontent extends fixcontent_parent { /** * Returns content parsed through smarty * * @return string */ public function getParsedContent() { return oxUtilsView::getInstance()->parseThroughSmarty( $this->getContent()->oxcontents__oxcontent->value, $this->getContent()->getId() ); } } | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
has duplicate | 0004082 | resolved | saulius.stasiukaitis | CMS - content not changed when containig picture path with Smarty |
has duplicate | 0004581 | closed | dainius.bigelis | content::getParsedContent() missing oxid argument |
related to | 0004996 | resolved | mantas.vaitkunas | CMS cache fails if Smarty conditions are available. |
|
Why is this still not fixed? We've just launched a Shop version 4.6.4 and after changing settings for live mode, some cms pages show same content. This could cause that an imprint (german Impressum) will never show. A serious legal issue, not to mention the user experience.. The fix works! |
|
related to this one maybe? https://bugs.oxid-esales.com/view.php?id=4082 |
|
In our setup there are no images in contents of the cms page. As far as I can see the bug occurs regardless of images. |
|
The bug occurs if any smarty tag is present in CMS content. I think the fix provided is sufficient, multilanguage is already handled in parseThroughSmarty. The Bug is also in 4.7.0 beta 2. |