Forum

Thread tagged as: Problem, Gallery

Images missing in Gallery app, but alt tags still showing on front end

Hey

The images have been deleted by my client via the gallery app admin, but the alt tags are still showing on the front end.

How do I remove the alt tags? Do I need to do this in the DB or can I do it through the Perch admin? Or possibly a script to re-index?

Thanks!

J

James Holmes

James Holmes 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you explain the steps taken to delete the images?

Hey Drew, I believe they were deleted from within gallery, alt tags are required in the admin.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics?

PERCH INFORMATION

Perch: 2.8.11
Production mode: Production (100)
Installed apps: content (2.8.11), assets (2.8.11), categories (2.8.11), perch_blog (4.6), perch_events (1.9.2), perch_forms (1.8.3), perch_gallery (2.8.6)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_events, perch2_events_categories, perch2_events_to_categories, 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_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 3
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_forms',
        'perch_gallery',
        'perch_blog',
        'perch_events',

    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_events: update_category_counts (60 mins)
Editor plug-ins: markitup
H1: bc2c4acf894a475cc0d81cbd367a8c41
L1: 716ca3ecba265ef04ec7925eff62df98
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.11: done
latest_version: 2.8.15
on_sale_version:
perch_gallery_update: 2.8.5
perch_blog_update: 5.0
perch_blog_post_url: /news/post.php?s={postSlug}
perch_events_update: 1.8
headerScheme: light
dashboard: 1
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_events_detail_url: /events/event.php?s={eventSlug}
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_gallery_basicUpload: 0
logoPath: /cms/resources/logo-transparent.png
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db198028_berkyun
PERCH_DB_SERVER: internal-db.s198028.gridserver.com
PERCH_DB_DATABASE: db198028_berky
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: Jameswilliamholmes@gmail.com
PERCH_EMAIL_FROM_NAME: James Holmes
PERCH_LOGINPATH: /cms
PERCH_PATH: /nfs/c11/h04/mnt/198028/domains/berkhampsteadschool.co.uk/html/cms
PERCH_CORE: /nfs/c11/h04/mnt/198028/domains/berkhampsteadschool.co.uk/html/cms/core
PERCH_RESFILEPATH: /nfs/c11/h04/mnt/198028/domains/berkhampsteadschool.co.uk/html/cms/resources
PERCH_RESPATH: /cms/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /nfs/c11/h04/mnt/198028/domains/berkhampsteadschool.co.uk/html/cms/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:
HOSTING SETTINGS

PHP: 5.6.21
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.53
MySQL server: 5.6.33-79.0
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 99M
PHP max form post size: 99M
PHP memory limit: 99M
Total max uploadable file size: 99M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PWD: /etc/apache2/gs-bin
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
REQUEST_URI: /cms/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 59597
SCRIPT_FILENAME: /home/198028/domains/berkhampsteadschool.co.uk/html/cms/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@berkhampsteadschool.co.uk
DOCUMENT_ROOT: /home/198028/domains/berkhampsteadschool.co.uk/html
REMOTE_ADDR: 82.35.54.156
SERVER_PORT: 80
SERVER_ADDR: 72.47.244.102
SERVER_NAME: www.berkhampsteadschool.co.uk
SERVER_SOFTWARE: Apache/2.2.22
SERVER_SIGNATURE: <address>Apache/2.2.22 Server at www.berkhampsteadschool.co.uk Port 80</address>
PATH: /usr/local/bin:/usr/bin:/bin
HTTP_COOKIE: _ga=GA1.3.695879877.1505828826; _gid=GA1.3.311551831.1505828826; PHPSESSID=ae2ed9ce15a90665e1e1bb646006acb3; cmsa=1
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,la;q=0.6
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_REFERER: https://www.berkhampsteadschool.co.uk/cms/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: close
HTTP_HOST: www.berkhampsteadschool.co.uk
PHPRC: /home/198028/etc/
SITE_HTMLROOT: /home/198028/domains/berkhampsteadschool.co.uk/html
SITE_CGIROOT: /home/198028/cgi-bin
SITE_ROOT: /home/198028
DATABASE_SERVER: internal-db.s198028.gridserver.com
ACCESS_DOMAIN: s198028.gridserver.com
WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
proxy_nokeepalive: 1
force_proxy_request_1_0: 1
SCRIPT_URI: https://www.berkhampsteadschool.co.uk/cms/core/settings/diagnostics/
SCRIPT_URL: /cms/core/settings/diagnostics/
UNIQUE_ID: WcJgTEgv9A4AAFOwxNkAAAAo
FCGI_ROLE: RESPONDER
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1505910860.3314
REQUEST_TIME: 1505910860
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like you're very out of date.

Without the steps it's hard to say what's happened, and I'm not even sure if it's not something that's already been fixed in newer versions.

In your template you could test for the path before outputting the result, or as you say, remove the items in the database. Alternatively, roll back to the backup before the problem occurred, upgrade to the current version and then document the steps to see if it happens again.