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

Errors with custom skin
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-06-2015, 04:52 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Huge xlite log 3 common warnings

My xlite log is growing into a huge file. In one day this log file grew to almost 1million lines. It seems to be the same 3 warnings repeated. They are the following:

Aug 06 21:41:56 XLite [warning] Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'XLite\Module\Pmall\PmallSkin\Main' does not have a method 'getLayoutTypes' in /home/plumbing/public_html/var/run/classes/XLite/Model/ModuleAbstract.php on line 410
Runtime id: c6f1c9905bf908d413a1481b1274611c;
Server API: cgi-fcgi; IP: 72.46.130.42;
Request method: GET;
URI: /;

Aug 06 21:41:56 XLite [warning] Warning: array_intersect(): Argument #1 is not an array in /home/plumbing/public_html/var/run/classes/XLite/Core/LayoutAbstract.php on line 539
Runtime id: c6f1c9905bf908d413a1481b1274611c;
Server API: cgi-fcgi; IP: 72.46.130.42;
Request method: GET;
URI: /;

Aug 06 21:41:56 XLite [warning] Warning: in_array() expects parameter 2 to be array, null given in /home/plumbing/public_html/var/run/classes/XLite/Core/LayoutAbstract.php on line 552
Runtime id: c6f1c9905bf908d413a1481b1274611c;
Server API: cgi-fcgi; IP: 72.46.130.42;
Request method: GET;
URI: /;


Any ideas of how to fix these?
__________________
Ver 5.2.6
Reply With Quote
  #2  
Old 08-06-2015, 04:53 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Errors with custom skin

My xlite log is growing into a huge file. In one day this log file grew to almost 1million lines. It seems to be the same 3 warnings repeated. They are the following:

Aug 06 21:41:56 XLite [warning] Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'XLite\Module\Pmall\PmallSkin\Main' does not have a method 'getLayoutTypes' in /home/plumbing/public_html/var/run/classes/XLite/Model/ModuleAbstract.php on line 410
Runtime id: c6f1c9905bf908d413a1481b1274611c;
Server API: cgi-fcgi; IP: 72.46.130.42;
Request method: GET;
URI: /;

Aug 06 21:41:56 XLite [warning] Warning: array_intersect(): Argument #1 is not an array in /home/plumbing/public_html/var/run/classes/XLite/Core/LayoutAbstract.php on line 539
Runtime id: c6f1c9905bf908d413a1481b1274611c;
Server API: cgi-fcgi; IP: 72.46.130.42;
Request method: GET;
URI: /;

Aug 06 21:41:56 XLite [warning] Warning: in_array() expects parameter 2 to be array, null given in /home/plumbing/public_html/var/run/classes/XLite/Core/LayoutAbstract.php on line 552
Runtime id: c6f1c9905bf908d413a1481b1274611c;
Server API: cgi-fcgi; IP: 72.46.130.42;
Request method: GET;
URI: /;


Any ideas of how to fix these?
__________________
Ver 5.2.6
Reply With Quote
  #3  
Old 08-06-2015, 10:17 PM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Errors with custom skin

I guess the issue is related to a third-party skin "Pmall skin", and your X-Cart store has been upgraded from 5.1.11 to 5.2.6. recently?
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote
  #4  
Old 08-06-2015, 11:14 PM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Errors with custom skin

Check etc/config.php file in your X-Cart installation, [log_details] section.

For default X-Cart installation, the settings look like below:

[log_details]
type = file
name = "var/log/xlite.log.php"
level = LOG_WARNING
ident = "XLite"
suppress_errors = On
suppress_log_errors = Off

Please let me know what you see in [log_details] section in your etc/config.php file.
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote
  #5  
Old 08-07-2015, 02:08 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Errors with custom skin

[log_details]
type = file
name = "var/log/xlite.log.php"
level = PEAR_LOG_WARNING
ident = "XLite"
suppress_errors = On
suppress_log_errors = Off
__________________
Ver 5.2.6
Reply With Quote
  #6  
Old 08-07-2015, 02:09 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Errors with custom skin

I did just recently upgrade from 5.1.11 to 5.2.6. Just out of curiosity what indicated that to you?
__________________
Ver 5.2.6
Reply With Quote
  #7  
Old 08-07-2015, 02:40 AM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Errors with custom skin

I believe the issue is related to your custom skin that is not compatible with the new X-Cart version 5.2.6. Try to disable the skin module in your X-Cart admin back-end to verify my guess.

If that is the case, you will need your custom skin adopted to be compatible with the new X-Cart version 5.2.6. Specifically, for your customer skin, you will need to develop getLayoutTypes() method for class 'XLite\Module\Pmall\PmallSkin\Main', in order to fix the errors, for example:

Code:
public static function getLayoutTypes() { return \XLite\Core\Layout::getInstance()->getLayoutTypes(); }

See also:
* X-Cart 5 Developer docs
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart

Last edited by seyfin : 08-07-2015 at 02:43 AM.
Reply With Quote
  #8  
Old 08-07-2015, 03:51 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Errors with custom skin

That seems to have worked for that error. I'm also getting:

Aug 07 08:34:40 XLite [warning] Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'XLite\Module\Pmall\PmallSkin\Main' does not have a method 'getLayoutColors' in /home/plumbing/public_html/var/run/classes/XLite/Model/ModuleAbstract.php on line 410
Runtime id: 601345cea7052c3abc2d7dbde246d0f1;
Server API: cgi-fcgi; IP: 66.249.65.233;
Request method: GET;
URI: /?target=product&url=liberty-ascent-ii-upflush-toilet-package&last=&rest=&ext

Would this be a similar fix?
__________________
Ver 5.2.6
Reply With Quote
  #9  
Old 08-08-2015, 09:51 PM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Errors with custom skin

Try to implement the following code for class 'XLite\Module\Pmall\PmallSkin\Main':

Code:
const COLOR_SCHEME_STANDARD = 'Standard'; public static function getLayoutColors() { return array( static::COLOR_SCHEME_STANDARD => \XLite\Core\Translation::lbl('Pmall'), ); }
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 12:22 AM.

   

 
X-Cart forums © 2001-2018