Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Attention users of X-Cart vv.4.0.x - 4.7.1

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #101  
Old 06-23-2015, 02:38 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

The 4.7.2 Smarty upgrade generates an error when trying to acces the settings page of the Popup Anywhere module (blank page), this is the error:

Quote:
[23-Jun-2015 11:10:59 Europe/Berlin] PHP Fatal error: Uncaught --> Smarty: unable to write file /Users/theborder/shop/var/cache/smarty_cache/smarty_/47829/95ca1f6e47c6b2421d746df8b1dc72f6/29f59b5eae0feb2bc72e870da44ebb8d/0b/c7/4d/wrt558922a36eb2a1_01912516
Backtrace:Array
(
[0] => Array
(
[function] => __toString
[class] => SmartyException
[type] => ->
[args] => Array
(
)

)

)
<--
thrown in /include/lib/smarty3/sysplugins/smarty_internal_write_file.php on line 46
[23-Jun-2015 13:00:39] Warning: fread(): Length parameter must be greater than 0 in /include/templater/plugins/function.fancycat_get_cache.php on line 72

[23-Jun-2015 13:41:19 Europe/Berlin] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/skin/common_files/modules/Popup_Anywhere/admin/popup_settings.tpl" on line 7 "{assign var="title" value=`$lng.lbl_popup_settings_modify`}" - Unexpected "`" <--
thrown in /include/lib/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 7
[23-Jun-2015 13:41:23 Europe/Berlin] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/skin/common_files/modules/Popup_Anywhere/admin/popup_settings.tpl" on line 7 "{assign var="title" value=`$lng.lbl_popup_settings_modify`}" - Unexpected "`" <--
thrown in /include/lib/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 7

This means it is not possible to edit Popups or set conditions for popups.

Redownloading the module & replacing the popup_settings.tpl file with the newly downloaded fixes it, since line 7 & 8 no longer contain the ' ' comma's, but the strange thing is that the file version is the same & apparently it was not automatically upgraded when upgrading the website to 4.7.2.
It is fixed now, but perhaps the correct file was not included in the X-Cart upgrade.


---- Edit
It also seems that since 4.7.2, popups will no longer follow the Location configured in the settings of the popup, the will always be located in the upper left corner of the screen, even if the Location is set to "fixed to bottom" or "fixed to right corner". I have no clue on how to fix that.
(even after removing the cache, issue still remains)
__________________
X-Cart 4.7.12
Reply With Quote
  #102  
Old 06-23-2015, 04:12 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

https://forum.x-cart.com/showthread.php?t=71550 - see post 39 and after
This is a bug either in XC or Smarty 3. There is no fix yet provided.

Quote:
It also seems that since 4.7.2, popups will no longer follow the Location configured in the settings of the popup, the will always be located in the upper left corner of the screen, even if the Location is set to "fixed to bottom" or "fixed to right corner". I have no clue on how to fix that.
(even after removing the cache, issue still remains)

I saw same on multiple 4.7.x installations I did. Must be a bug in the module.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #103  
Old 06-23-2015, 05:51 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Please, install the last popup-anywhere-4.7.2.tgz module
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #104  
Old 06-23-2015, 05:52 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

The stock X-Cart upgrade does not include the popup-anywhere module
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #105  
Old 06-23-2015, 06:06 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by cflsystems
https://forum.x-cart.com/showthread.php?t=71550 - see post 39 and after
This is a bug either in XC or Smarty 3. There is no fix yet provided.


As you can see the provided patch works correctly on our updated demo.

https://forum.x-cart.com/attachment.php?attachmentid=4212&stc=1&d=143507164 7

http://demo.x-cart.com/demo_goldplus/About-our-site.html
http://demo.x-cart.com/demo_goldplus/admin/pages.php?pageid=2

Could you help me to localize the problem ?
Attached Images
File Type: png adm.png (69.0 KB, 5 views)
File Type: png cpag.png (61.9 KB, 4 views)
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #106  
Old 06-23-2015, 06:15 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

This is the patch

PHP Code:
Indexmodules/XAuth/ext.core.php
--- modules/XAuth/ext.core.php
+++ modules/XAuth/ext.core.php
@@ -147,+147,@@ function x_tpl_remove_listener($tpl$event$callback)
 
 function 
x_tpl_prefilter($source, &$smarty)
 {
+    if (
strpos($smarty->template_resource'eval:') === 0) {
+        return 
$source;
+    }
     return 
'{if $x_core_started}{xevent name="before" tpl="' $smarty->template_resource '"}{/if}'
         
$source
         
'{if $x_core_started}{xevent name="after" tpl="' $smarty->template_resource '"}{/if}'

It modifies a file from XAuth module. This module is not active, it is not present in cart.
How can this change have an effect on the static pages. The XAuth module has nothing to do with static pages. And if not active and not present in cart how can this work?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
aim (06-23-2015)
  #107  
Old 06-23-2015, 09:39 PM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by cflsystems
This is the patch

It modifies a file from XAuth module. This module is not active, it is not present in cart.
How can this change have an effect on the static pages. The XAuth module has nothing to do with static pages. And if not active and not present in cart how can this work?

You are right. In this case the reason is another module/smarty_filter/template.

Which modules do you use ?
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #108  
Old 06-24-2015, 03:37 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I don't know which one can cause it. Just stock XC install.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #109  
Old 06-24-2015, 04:08 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by cflsystems
I don't know which one can cause it. Just stock XC install.

I have activated all the modules for X-Cart 4.7.2 goldplus
[aim_xcart_4_7_2_goldplus]>update xcart_modules set active='Y';

The problem is disappeared after the patch is applied.

Could you attach your DB to the ticket
https://bt.x-cart.com/view.php?id=44843
?

By the way have you tried this solution ?
Code:
aim-server[~/public_html/xcart/4_7_2_goldplus]$ rm -rf var/cache/ var/templates_c/

Thank you.
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #110  
Old 06-24-2015, 06:45 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

What do you mean "upload database"?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:58 PM.

   

 
X-Cart forums © 2001-2020