Forum

Thread tagged as: Question, Members

Must Log Out for Tags to Become Effective?

I'm using the <?php perch_member_add_tag(' '); ?> to unlock content within the Members App, but the user has to logout then log back in for the tag to become active. Any way to automatically let tags give immediate access without logging out? Thanks!

Greg Stone

Greg Stone 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That shouldn't be the case, but I'll check what it's doing.

Can you post your diagnostics?

Thanks Drew

Perch: 2.8.23
Production mode: Production (100)
Installed apps: content (2.8.23), assets (2.8.23), categories (2.8.23), perch_members (1.4.2)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (269), perch2_content_items (47), perch2_content_regions (3), perch2_members (1), perch2_members_forms (0), perch2_members_member_tags (1), perch2_members_sessions (3), perch2_members_tags (1), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (2), perch2_resource_log (0), perch2_resource_tags (0), perch2_resources (0), perch2_resources_to_tags (0), perch2_settings (11), perch2_user_passwords (0), perch2_user_privileges (27), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_members',
    );
Editor plug-ins: ckeditor, markitup, redactor
H1: aa5afe5f5985a7ce05acf04614936425
L1: fb0b3dd9991b1901f7793fdab1dd1219
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.23: done
latest_version: 2.8.15
on_sale_version: 2.8.23
perch_members_update: 1.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: gregston_champki
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: gregston_voetbergma
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: greg@champkiddesign.com
PERCH_EMAIL_FROM_NAME: Greg Stone
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/gregston/public_html/vma/perch
PERCH_CORE: /home/gregston/public_html/vma/perch/core
PERCH_RESFILEPATH: /home/gregston/public_html/vma/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/gregston/public_html/vma/perch/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.6.15
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $
MySQL server: 5.6.28
Free disk space: 972.76 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, PDO, pdo_sqlite, timezonedb, uploadprogress, pdo_mysql, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 128M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
CONTEXT_DOCUMENT_ROOT: /home/gregston/public_html/vma
DOCUMENT_ROOT: /home/gregston/public_html/vma
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=ed1f9c4ff71e04bd06ae3f6b7df558b4; cmsa=1; _ga=GA1.2.1305508761.1447795045
HTTP_HOST: vma.champkiddesign.com
HTTP_REFERER: https://vma.champkiddesign.com/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
PATH: /bin:/usr/bin
PHPRC: /home/gregston/public_html
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 72.35.141.108
REMOTE_PORT: 37927
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/gregston/public_html/vma/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 67.212.235.130
SERVER_ADMIN: webmaster@vma.champkiddesign.com
SERVER_NAME: vma.champkiddesign.com
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: VqEk0zJzeO4ABu@msgwAAAAM
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1453401299.67
REQUEST_TIME: 1453401299
argc: 1
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Hi Jeremy

could you start a new thread with your own diagnostics report please? It may or may not be the same root issue but either way it is easier to help people in their own threads without us all getting confused.

Thanks!

Hi, I was wondering what the current status of this forum post is? Thanks!

Drew McLellan

Drew McLellan 2638 points
Perch Support

Hi Greg - I missed your follow up because of Jeremy's update to the thread. I'll get this back on my list this week.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you confirm that perch_member_add_tag() is being called before any headers are sent?

That was my problem, thanks Drew.