Forum
Cannot re-assign images without re-importing sqldump AMPPS
Here is my diagnostic log:
Perch: 2.8.32
Production mode: (PERCH_DEVELOPMENT)
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (2428), perch2_content_items (528), perch2_content_regions (66), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (31), perch2_resource_log (331), perch2_resource_tags (0), perch2_resources (63), perch2_resources_to_tags (0), perch2_settings (11), perch2_user_passwords (0), perch2_user_privileges (28), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (2)
Users: 2
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
);
Editor plug-ins: ace
H1: 421aa90e079fa326b6494f812ad13e79
L1: 8da62c38261037789cd5262544577b63
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.31: done
latest_version: 2.8.15
on_sale_version: 2.8.32
update_2.8.32: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE:
PERCH_DB_USERNAME:
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Australia/Sydney
PERCH_EMAIL_FROM:
PERCH_EMAIL_FROM_NAME:
PERCH_LOGINPATH: /perch
PERCH_PATH: C:\Program Files (x86)\Ampps\www\perch
PERCH_CORE: C:\Program Files (x86)\Ampps\www\perch\core
PERCH_RESFILEPATH: C:/Program Files (x86)/Ampps/www/images/
PERCH_RESPATH: /images
PERCH_HTML5: 1
PERCH_DEBUG:
PERCH_PRODUCTION_MODE: PERCH_DEVELOPMENT
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_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: C:\Program Files (x86)\Ampps\www\perch\templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS
PHP: 7.0.10
Zend: 3.0.0
OS: WINNT
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $
MySQL server: 5.6.31
Free disk space: 791.37 GB
Extensions: Core, bcmath, calendar, ctype, date, filter, hash, iconv, json, mcrypt, SPL, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, bz2, SimpleXML, xml, wddx, xmlreader, xmlwriter, apache2handler, openssl, curl, fileinfo, gd, gettext, gmp, imap, mbstring, exif, mysqli, Phar, pdo_mysql, pdo_sqlite, shmop, soap, sockets, sqlite3, tidy, xmlrpc, xsl, com_dotnet, xdebug
GD: Yes
ImageMagick: No
PHP max upload size: 10M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
TMP: C:/Program Files (x86)/Ampps/tmp
HTTP_HOST: localhost
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_DNT: 1
HTTP_REFERER: https://localhost/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch, br
HTTP_ACCEPT_LANGUAGE: en-GB,en;q=0.8
HTTP_COOKIE: _gat=1; _ga=GA1.1.1928105925.1481262545; cmsa=1; PHPSESSID=0oakqr90012huduhtcka0ui0o3
PATH:
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_SOFTWARE: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.10 mod_wsgi/4.4.21 Python/3.5.2
SERVER_NAME: localhost
SERVER_ADDR: ::1
SERVER_PORT: 80
REMOTE_ADDR: ::1
DOCUMENT_ROOT: C:/Program Files (x86)/Ampps/www
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: C:/Program Files (x86)/Ampps/www
SERVER_ADMIN: admin@localhost
SCRIPT_FILENAME: C:/Program Files (x86)/Ampps/www/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 51189
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1481264581.852
REQUEST_TIME: 1481264581
It would seem that assigning a new .html
template works as expected, i.e. it does not "remove" any images but when you simply re-save a section in order to re-output the page, while the images appear in the output they are gone from Perch.
You'll need to give us some more information about what you are doing, including showing us your code if you'd like us to help. I can't tell what process you are following.
All I can really tell you at this point (besides having this problem with another distribution) is that I had copied all my website files to the www directory of AMPPS, created a database and database user with full privileges, then imported the .sql file that I had exported from my "'source of truth".
The only thing I did after that is change the php upload to 10MB, as well as changing the PHP version to 7.
I have found though, the problem is in the buckets.php file, which as I remember Drew helped me with once before.
Here is some code:
I'm guessing though, that there is no way to provide a configuration based on the installation, and that I must change this every time, i.e. when re-instantiating Perch.
Cheers
Sorry, I've no idea what problem you're seeing. Can you give some context?
Hi Drew,
Nothing that can't be fixed by sheer memory learning.
I've found though, Perch is a bit more robust as of late, when it comes to resource buckets being incorrectly defined as was the case with me, so image assignments; while not appearing in Perch are still actually assigned so you don't lose any data.
Cheers