Forum

Thread tagged as: Shop

new Perch Shop

I seem to have an install issue. I ported a original site to a development url online. it works fine. I then upgraded perch/core to v2.8.29, and it worked ok and the login worked too. I them copied the new shop app, and updated apps.php as per instructions. the website works fine. but after I login into perch. I get:

Parse error: syntax error, unexpected '[' in /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch/addons/apps/perch_shop/admin.php on line 7

if I delete the shop app. login works?

any ideas to solve this?

regards

Tony

Tony Monckton

Tony Monckton 0 points

  • 5 years ago

diagnostics

Perch: 2.8.29, PHP: 5.3.29, MySQL: 5.5.49, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), app_manager (2), perch_gallery (2.8.5), perch_mailchimp (2.0.1), perch_blog (4.0.3), perch_podcasts (1.0), perch_twitter (3.2) App runtimes: <?php $apps_list = array( 'content', ); PERCH_LOGINPATH: /perch PERCH_PATH: /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch PERCH_CORE: /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch/core PERCH_RESFILEPATH: /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch/resources Image manipulation: GD PHP limits: Max upload 20M, Max POST 20M, Memory: 2048M, Total max file upload: 20M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes HTTP_HOST: newshop.stylishlittleme.com DOCUMENT_ROOT: /home/78335/domains/newshop.stylishlittleme.com/html REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Drew McLellan

Drew McLellan 2638 points
Perch Support

Shop requires PHP 5.4 (as will Perch 2.9) so it's time to upgrade!

I upgrades php, this fixed the error. but then adding a currency I get this error: Fatal error: Call to a member function index() on a non-object in /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch/addons/apps/perch_shop/modes/currency.edit.pre.php on line 45

help please

tony

Perch: 2.8.29, PHP: 5.5.35, MySQL: 5.5.49, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), app_manager (2), perch_gallery (2.8.5), perch_mailchimp (2.0.1), perch_shop_orders (1.0.4), perch_shop_products (1.0.4), perch_shop (1.0.4), perch_blog (4.0.3), perch_members (1.5), perch_podcasts (1.0), perch_twitter (3.2) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_members', 'perch_shop', ); PERCH_LOGINPATH: /perch PERCH_PATH: /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch PERCH_CORE: /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch/core PERCH_RESFILEPATH: /nfs/c05/h06/mnt/78335/domains/newshop.stylishlittleme.com/html/perch/resources Image manipulation: GD PHP limits: Max upload 20M, Max POST 20M, Memory: 2048M, Total max file upload: 20M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes HTTP_HOST: newshop.stylishlittleme.com DOCUMENT_ROOT: /home/78335/domains/newshop.stylishlittleme.com/html REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Drew McLellan

Drew McLellan 2638 points
Perch Support

Which currency are you adding?

GBP, I still have old shop tables in mySQL. would this break it?

tony

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that will break it. You should have 150 world currencies preinstalled if the installation has gone successfully.

ok, I will do a clean install of perch.

many thanks

tony