Forum

Thread tagged as: Error, Shop

Cannot disable country in shop

Hello

I've spotted a potential bug in the Listing all countries edit page in Shop. It's not possible to disable a country at the moment. The enable checkbox remains selected after saving any changes to a country. I've tried it in latest Safari / Firefox on MacOS 10.12.5. It's possible to delete the country, so I've done this instead.

Kind regards

Jon

Perch Runway: 3.0.8, PHP: 7.0.15, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_forms (1.9.1), perch_shop_orders (1.2.2), perch_shop_products (1.2.2), perch_shop (1.2.2), perch_members (1.6.2), perch_mailchimp (3.1)
App runtimes: <?php $apps_list = [ 'perch_mailchimp', 'perch_members', 'perch_shop', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch
PERCH_CORE: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/core
PERCH_RESFILEPATH: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: dev.ellipress.co.uk
DOCUMENT_ROOT: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Jonathan Elliman

Jonathan Elliman 27 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That's unusual. We'll take a look at it.

Thanks Drew.

For what it's worth, I changed countryActive to 0 in the database and tried to enable it the other way in the control panel but it didn't work either.

Have a lovely weekend,

Jon

Same problem for me too, Drew if you don't find out why from above I'll open another thread with my diagnostics. But I'm on the latest runway/shop like above.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Presumably no edits for a country work unless the country is in the EU?

Hi Drew

Edits work for countries both in and out of EU. I just cannot change the state of the Enabled checkbox. Even if I create a new country.

In fact if I now create a country, I get this as an error:

Fatal error: Uncaught Error: Call to a member function index() on null in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/modes/country.edit.pre.php:45 Stack trace: #0 /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/_default_index.php(24): include() #1 /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/countries/edit/index.php(4): include('/Users/ellimond...') #2 {main} thrown in /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/addons/apps/perch_shop/modes/country.edit.pre.php on line 45

This may be a distraction since I was able to add a country before I manually changed the countryActive for all countries to 0.

Kind regards

Jon

Drew McLellan

Drew McLellan 2638 points
Perch Support

In the meantime I believe this is fixed.