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

X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #31  
Old 06-29-2017, 06:31 AM
 
aim aim is offline
Advanced Staff Users
 

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

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Quote:
Originally Posted by herber@wirehub.nl
I've just upgraded 4.7.8 and I cannot acces the /admin/general.php page anymore, the following error occurs which blanks out the page in our case:

Code:
[29-Jun-2017 13:13:29 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /public_html/admin/general.php:178 Stack trace: #0 /public_html/admin/general.php(528): test_dirs_rights() #1 {main} thrown in /public_html/admin/general.php on line 178

It is related to this line, $rc[] is line 178

Code:
$rc[] = array ( 'directory' => $testdir, 'exists' => is_dir($dir), 'writable' => is_writable($dir), ); }
The PHP version is 7.1.6.
My /admin/general.php file is 100% identical to a clean 4.7.8.

If I declare $rc = array(); INSIDE the foreach, the error disappears and /admin/general.php can be accessed again.

It doesn't fix it completely, the list of directories that it checks for write permission is only 1 folder long, only the /var/upgrade folder.

Hi,

It is very strange.

Do you have
$rc = array();
in the line 164?

Thank you.
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #32  
Old 06-29-2017, 06:48 AM
 
aim aim is offline
Advanced Staff Users
 

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

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Quote:
Originally Posted by Dougrun
I can no longer add an advertising campaign in the
Advertising campaigns management

page. it just cycles the page. nothing added in the table either. using http referrer. not a big deal since i can use google but thought i'd point it out in case anyone else has this issue.

Hi,

You have to fill the
'Pay per campaign' or 'Pay per visit' fields.

Try it here
http://demo.x-cart.com/demo_goldplus/demo_switcher.php?activate_modules[XAffiliate]=Y

Thank you.
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote

The following user thanks aim for this useful post:
Dougrun (06-29-2017)
  #33  
Old 06-29-2017, 06:59 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Quote:
Originally Posted by aim
Hi,

It is very strange.

Do you have
$rc = array();
in the line 164?

Thank you.
I tested 4.7.8 on php7.1 and got similar results. 7.0x works ok though so look for some difference there.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #34  
Old 06-29-2017, 07:09 AM
 
aim aim is offline
Advanced Staff Users
 

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

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Quote:
Originally Posted by Dougrun
I tested 4.7.8 on php7.1 and got similar results. 7.0x works ok though so look for some difference there.

May be admin/general.php was not patched properly.
I will check upgrade packs.

Could you compare the attached file with your admin/general.php ?

Thank you.
Attached Files
File Type: php general.php (17.1 KB, 1 views)
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #35  
Old 06-29-2017, 11:00 PM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Quote:
Originally Posted by aim
May be admin/general.php was not patched properly.
I will check upgrade packs.

Could you compare the attached file with your admin/general.php ?

Thank you.
This file is identical, this is the file giving problems. (I use an admin/general.php from a clean 4.7.8 download)
So it seems $rc = array(); on line 164 is not enough: my current fix is to also place $rc = array(); on line 178.

This means admin/general.php can be accessed again, but not all folders are checked for write permissions anymore.
__________________
X-Cart 4.7.12
Reply With Quote
  #36  
Old 06-30-2017, 12:24 AM
 
aim aim is offline
Advanced Staff Users
 

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

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Hi,

Unfortunately, I was unable to reproduce this issue on the default installation of X-Cart 4 on PHP Version 7.1.6.

Could you please provide me with the valid SSH/FTP or Control Panel access info to your server so I can see whats causing the issue directly.

Please post it in X-Business access list section here:
https://secure.x-cart.com/customer.php?target=create_access_info

Thank You.
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #37  
Old 06-30-2017, 01:38 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Hi!

I just redownloaded a fresh 4.7.8 and replaced the /admin/general.php again, and now it doesn't error out
__________________
X-Cart 4.7.12
Reply With Quote

The following user thanks herber@wirehub.nl for this useful post:
aim (06-30-2017)
  #38  
Old 06-30-2017, 03:17 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Next in my error log:

Code:
[30-Jun-2017 07:09:21] Warning: Illegal string offset 'avail' in /public_html/modules/Special_Offers/offers.php on line 213 [30-Jun-2017 07:09:21] Warning: Illegal string offset 'skip' in /public_html/modules/Special_Offers/offers.php on line 216

this file is also identical to a clean 4.7.8 that I downloaded.
Any other files I should check?
__________________
X-Cart 4.7.12
Reply With Quote
  #39  
Old 06-30-2017, 04:08 AM
 
aim aim is offline
Advanced Staff Users
 

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

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

Quote:
Originally Posted by herber@wirehub.nl
Next in my error log:

Code:
[30-Jun-2017 07:09:21] Warning: Illegal string offset 'avail' in /public_html/modules/Special_Offers/offers.php on line 213 [30-Jun-2017 07:09:21] Warning: Illegal string offset 'skip' in /public_html/modules/Special_Offers/offers.php on line 216

this file is also identical to a clean 4.7.8 that I downloaded.
Any other files I should check?

You can ignore these non-critical warnings.

I will fix them in X-Cart 4.7.9.

Thank you.
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote

The following user thanks aim for this useful post:
herber@wirehub.nl (06-30-2017)
  #40  
Old 07-11-2017, 10:28 AM
 
voodoo1967 voodoo1967 is offline
 

X-Adept
  
Join Date: Sep 2009
Posts: 431
 

Default Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy

So what is the minimum version of PHP that the 4.7.8 requires ?
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 12:23 PM.

   

 
X-Cart forums © 2001-2020