Forum

Thread tagged as: Question, Addons, Shop

Clicking Shop takes me to the site rather than the app

Hi

I'm adding shop to an existing perch website, so I'm working locally and updated to Perch 3 and adding the Shop app and on the instructions, it says to go to the Shop app and select currencies and tax, but when I click Shop in the sidebar its taking me to the live site instead of the app in admin.

Summary information

Perch: 3.0.4, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4), perch_blog (5.5.1), perch_shop_orders (1.2), perch_shop_products (1.2), perch_shop (1.2), perch_members (1.6.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_members', 'perch_shop', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/hoops78/Documents/the beauty room/perch
PERCH_CORE: /Users/hoops78/Documents/the beauty room/perch/core
PERCH_RESFILEPATH: /Users/hoops78/Documents/the beauty room/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
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Users/hoops78/Documents/the beauty room
HTTP_HOST: beautyroom
Wayne Hooper

Wayne Hooper 6 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me your full diagnostics?

sure, here you go;

Perch information

Perch: 3.0.4
Production mode: Production (100)
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4), perch_blog (5.5.1), perch_shop_orders (1.2), perch_shop_products (1.2), perch_shop (1.2), perch_members (1.6.1)
DB driver: PDO
DB tables: perch2_blog_authors (3), perch2_blog_comments (0), perch2_blog_index (1186), perch2_blog_posts (43), perch2_blog_posts_to_tags (98), perch2_blog_sections (1), perch2_blog_tags (72), perch2_blogs (1), perch2_categories (3), perch2_category_counts (0), perch2_category_sets (2), perch2_content_index (4418), perch2_content_items (682), perch2_content_regions (56), perch2_members (0), perch2_members_forms (0), perch2_members_member_tags (0), perch2_members_sessions (0), perch2_members_tags (0), perch2_menu_items (13), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (2), perch2_pages (10), perch2_resource_log (673), perch2_resource_tags (2), perch2_resources (276), perch2_resources_to_tags (2), perch2_settings (27), perch2_shop_addresses (0), perch2_shop_admin_index (0), perch2_shop_brands (0), perch2_shop_cart (1), perch2_shop_cart_data (0), perch2_shop_cart_items (0), perch2_shop_countries (250), perch2_shop_currencies (152), perch2_shop_customers (0), perch2_shop_emails (1), perch2_shop_index (0), perch2_shop_option_values (0), perch2_shop_options (0), perch2_shop_order_items (0), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (0), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (0), perch2_shop_product_options (0), perch2_shop_product_tags (0), perch2_shop_products (0), perch2_shop_promotions (0), perch2_shop_sales (0), perch2_shop_search (0), perch2_shop_shipping_zone_countries (0), perch2_shop_shipping_zones (0), perch2_shop_shippings (0), perch2_shop_tax_exhibits (0), perch2_shop_tax_group_rates (0), perch2_shop_tax_groups (0), perch2_shop_tax_locations (0), perch2_shop_tax_rates (0), perch2_shop_variants (0), perch2_user_passwords (0), perch2_user_privileges (78), perch2_user_role_privileges (26), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_blog',
        'perch_members',
        'perch_shop',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins:
H1: 9c2c6882201d731a086c2b9efbda93e0
L1: c67d06334b9084c642775c9c7a433506
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.7.6: done
latest_version: 2.8.15
on_sale_version:
perch_blog_update: 5.0.1
perch_blog_post_url: /news/{postSlug}
headerScheme: light
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
logoPath: /perch/resources/tbr-header-logo.png
update_2.8.8: done
update_2.8.34: done
update_3.0.4: done
perch_shop_update: 1.2
perch_members_update: 1.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: thebeautyroom
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_DB_CHARSET: utf8
PERCH_EMAIL_FROM: wayne@fullfatdesigns.co.uk
PERCH_EMAIL_FROM_NAME: Wayne Hooper
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/hoops78/Documents/the beauty room/perch
PERCH_CORE: /Users/hoops78/Documents/the beauty room/perch/core
PERCH_RESFILEPATH: /Users/hoops78/Documents/the beauty room/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: ed79f7a54b300ef2b1e6
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/hoops78/Documents/the beauty room/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_AUTH_PLUGIN:
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SHOP_VERSION: 1.2
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 5.4.42
Zend: 2.4.0
OS: Darwin
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.5.42
Free disk space: 126.80 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysql, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, cgi-fcgi, imap, gettext, mcrypt, yaz, pgsql, pdo_pgsql
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PHP_FCGI_CHILDREN: 4
PWD: /Applications/MAMP/fcgi-bin
PHP_FCGI_MAX_REQUESTS: 200
__CF_USER_TEXT_ENCODING: 0x1F6:0x0:0x2
ORIG_SCRIPT_NAME: /fcgi-bin/php5.4.42.fcgi
ORIG_PATH_TRANSLATED: /Users/hoops78/Documents/the beauty room/perch/core/settings/diagnostics/index.php
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /Applications/MAMP/fcgi-bin/php5.4.42.fcgi
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
REDIRECT_QUERY_STRING: extended
REMOTE_PORT: 52404
SCRIPT_FILENAME: /Users/hoops78/Documents/the beauty room/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: you@example.com
DOCUMENT_ROOT: /Users/hoops78/Documents/the beauty room
REMOTE_ADDR: ::1
SERVER_PORT: 80
SERVER_ADDR: ::1
SERVER_NAME: beautyroom
SERVER_SOFTWARE: Apache
PATH: /usr/bin:/bin:/usr/sbin:/sbin
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-gb
HTTP_REFERER: https://beautyroom/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=133983a28a7b62559eef905f0dff8463; _ga=GA1.1.2136515705.1494833210; _gid=GA1.1.830164284.1494833729; cmsa=1
HTTP_HOST: beautyroom
REDIRECT_STATUS: 200
REDIRECT_HANDLER: php-fastcgi
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1494837021.54
REQUEST_TIME: 1494837021
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like Shop has installed - how did that happen if the item in the menu doesn't work?

This isn't something I've ever seen, so I'm struggling a bit to understand what you're describing.

I've upgraded from Perch 2 to 3 then added newest Shop. Products, Members and Orders all work, its just the Shop one that doesn't. Shall I try copying everything across again?

Edit: When I hover over Shop in safari, the path is the add-ons folder, but clicking takes me to the site

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you try removing the app, then rebuilding the menu and reinstalling it?

I removed the app folders and removed it from the apps config file but it remained in the menu (how do I rebuild it) and re-added the folders and same issue

Drew McLellan

Drew McLellan 2638 points
Perch Support

You rebuild the menu using the button in Settings.

I can't find it in settings... whereabouts is it?

Edit: Nevermind, found it (googled it)

Done that and re-added... same problem.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you logged in as the primary admin?

yes I am

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is everything else working ok on this site?

seems to be. I've just edited a few text blocks and blogs OK.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. I'm not sure what the deal is there, but I'll see if there's any way I can reproduce it.

As its a local build I've downloaded, I could start again. Are these steps OK;

  • Update Perch v2 to last version
  • Log in
  • Update to Perch v3 (follow instructions)
  • Log in
  • Add Shop v1.2
  • Log in

If so, I'll try again tomorrow.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that should work fine.

Just re-gone through those steps on a re-downloaded local build and same result.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's bizarre. We've not seen anyone else with that issue.

What value does the menu have in the menu items table in the database?

here is the data for the menu_items. It says that Shop is an app.

database

Drew McLellan

Drew McLellan 2638 points
Perch Support

That looks absolutely fine. Are you able to go to the app directly - without using the menu?