Forum

Thread tagged as: Problem, Add-on-development, FoxyCart

FoxyCart App not the latest

Hi Drew/Rachel

I've just downloaded 2.1 for the FoxyCart app, but the update didn't run when copying it over. I had a look in the update.php file and it says:

if ($Settings->get('perch_shop_foxycart_update')->val()!='2.0') {

Should that be 2.1 and not 2.0?

Also, the last statement says:

$Settings->set('perch_shop_foxycart_update', '2.0');

I believe that should say 2.1 as well. I don't want to manually change it in case this really is the wrong code for this version. I have shop errors after upgrading Perch to the latest version so want to update the shop app too in the hope that's all it needs.

Thanks, Michael

Michael Wilkinson

Michael Wilkinson 6 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It's more likely the case that there weren't database changes between 2.0 and 2.1.

What errors are you getting?

Michael Wilkinson

Michael Wilkinson 6 points
Registered Developer

Hi Drew

Thanks for the reply. Shouldn't it still update the version to 2.1 though? The change log info says 2.1 is for Perch 2.8 so as this site has the shop version of 2.0, I thought that might be the problem.

The end site still works, and purchases can be added to the cart and purchased. The error is when adding new items or updating existing ones through Perch. The user gets the blank white screen but the error log says:

PHP Fatal error: Call to a member function return_instance() on a non-object in /home/sites/<NameOfSite>.co.uk/public_html/site-login/core/lib/api/PerchAPI_Form.class.php on line 419

Regards.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me your diagnostics report?

Michael Wilkinson

Michael Wilkinson 6 points
Registered Developer

Hi Drew

Diagnostics report is below. For your info, after a re-install of the Foxy cart shop app, it did update the version to 2.1 but things are still not working with the same problem unfortunately.

Perch: 2.8.13
Production mode: Production (100)
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_forms (1.8.3), perch_gallery (2.8.6), perch_shop_foxycart (2.1)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_option_values, perch2_shop_product_options, perch2_shop_products, perch2_shop_products_to_categories, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 4
App runtimes:
<?php
    include(PERCH_PATH.'/core/apps/content/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_shop_foxycart/runtime.php');
    include(PERCH_PATH.'/core/apps/categories/runtime.php');
?>
Editor plug-ins: ckeditor, markitup, redactor
H1: 4bd6576c0d97de780ca0630a45961a62
L1: cc9b3aae4020c48fd50ca4f45eff313d
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.4.5: done
latest_version: 2.8.8
on_sale_version: 2.8.13
headerScheme: light
content_hideNonEditableRegions: 1
dashboard: 0
content_frontend_edit: 0
logoPath: /site-login/resources/logo_new.jpg
perch_gallery_update: 2.8.5
perch_shop_foxy_api: VSRDRZgl1qc135AEhzlE6FMFLeeSmvE8hqB3gMe73h21gwznVKXSkEsWIwJZ
perch_shop_foxy_url: https://<name-of-site>.foxycart.com/cart
perch_gallery_basicUpload: 0
hide_pwd_reset: 0
perch_gallery_bucket: default
update_2.7.3: done
perch_shop_foxy_security: 1
perch_gallery_bucket_mode: single
perch_shop_foxycart_update: 2.0
perch_shop_product_url: /shop/product.php?s={productSlug}
perch_shop_display_oos: 0
update_2.8.6: done
update_2.8.7: done
update_2.8.13: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db-user
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: db-name
PERCH_LOGINPATH: /site-login
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_DEBUG:
PERCH_EMAIL_FROM: designteam@<name-of-site>.co.uk
PERCH_EMAIL_FROM_NAME: Design Team
PERCH_PATH: C:\xampp\htdocs\<name-of-site>\site-login
PERCH_CORE: C:\xampp\htdocs\<name-of-site>\site-login\core
PERCH_RESFILEPATH: C:\xampp\htdocs\<name-of-site>\site-login\resources
PERCH_RESPATH: /site-login/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_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: C:\xampp\htdocs\<name-of-site>\site-login\templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.5.15
Zend: 2.5.0
OS: WINNT
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $
MySQL server: 5.6.20
Extensions: Core, bcmath, calendar, ctype, date, ereg, filter, ftp, hash, iconv, json, mcrypt, SPL, odbc, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, wddx, xml, xmlreader, xmlwriter, apache2handler, openssl, curl, mbstring, exif, gd, gettext, mysql, mysqli, Phar, pdo_mysql, pdo_sqlite, soap, sockets, sqlite3, xmlrpc, xsl, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 15M
PHP memory limit: 128M
Total max uploadable file size: 15M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
MIBDIRS: /xampp/php/extras/mibs
MYSQL_HOME: \xampp\mysql\bin
OPENSSL_CONF: /xampp/apache/bin/openssl.cnf
PHP_PEAR_SYSCONF_DIR: \xampp\php
PHPRC: \xampp\php
TMP: \xampp\tmp
HTTP_HOST: <name-of-site>.local
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
HTTP_REFERER: https://<name-of-site>.local/site-login/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE: cmsa=1; PHPSESSID=euh3oapvn97lokrjh7qia6e8u2
PATH: C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Users\Dell\AppData\Local\Android\sdk\platform-tools\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\TortoiseSVN\bin
SystemRoot: C:\WINDOWS
COMSPEC: C:\WINDOWS\system32\cmd.exe
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR: C:\WINDOWS
SERVER_SIGNATURE: <address>Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 Server at <name-of-site>.local Port 80</address>
SERVER_SOFTWARE: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15
SERVER_NAME: <name-of-site>.local
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: C:/xampp/htdocs/<name-of-site>
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: C:/xampp/htdocs/<name-of-site>
SERVER_ADMIN: postmaster@localhost
SCRIPT_FILENAME: C:/xampp/htdocs/<name-of-site>/site-login/core/settings/diagnostics/index.php
REMOTE_PORT: 50955
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /site-login/core/settings/diagnostics/?extended
SCRIPT_NAME: /site-login/core/settings/diagnostics/index.php
PHP_SELF: /site-login/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1444726994.934
REQUEST_TIME: 1444726994
Drew McLellan

Drew McLellan 2638 points
Perch Support

That is showing as 2.1, so you should be ok.

Michael Wilkinson

Michael Wilkinson 6 points
Registered Developer

Hi Drew

Yes, but it's still giving me the white screen of death when adding or updating projects.

I have had a thought about this though. The current store is being closed and a new store is being created. I think this might be the ideal time to put the new Perch Chop app in place. Foxycart had done the job but keeping it all in the family just sounds better.

So, could I request the Perch Shop App please? Do I still just email you for it?

Regards.