Forum

Thread tagged as: Question, Problem, Configuration

View Page button in Admin repearting path directory

I have all my pages and subpages created in a "web_root/en/" folder, for example https://sitedomain.com/en/random-page.php.

In the Perch Admin I've set subpages to be created in the same directory, rather than ending up in a sub-directory. This all works fine, except when I click "View Page" in the Perch Admin, I get directed to https://sitedomain.com/en/en/random-page.php -- its repeating the "/en" directory for some reason.

I have custom menus set up in the nav on the main site, and those work fine as well, it just seems to be the "View Page" button in the Admin. How do I fix this.

Also as a sidenote, I just finished creating a sister site in the same way, and that seems to work fine, so I did something different along the way in building the second site, just can't figure out what it was or how to fix it.

Chad Tiffin

Chad Tiffin 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me your diagnostics?

Diagnostics report HEALTH CHECK

Perch is up to date PHP 5.4.26 version is okay, but a little out of date. Consider updating soon. MySQL 5.0.45-community-nt is up to date Image processing available SUMMARY INFORMATION

Perch: 2.8.6, PHP: 5.4.26, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO Server OS: WINNT, cgi-fcgi Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6) App runtimes: <?php $apps_list = array( 'content', 'categories', ); PERCH_LOGINPATH: /perch PERCH_PATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch PERCH_CORE: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\core PERCH_RESFILEPATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\resources Image manipulation: GD PHP limits: Max upload 256M, Max POST 256M, Memory: 256M, Total max file upload: 256M Resource folder writeable: Yes HTTP_HOST: www.sherwoodinn.ca.wsd10.korax.net DOCUMENT_ROOT: D:\Users\S\sherwoodinn\www.sherwoodinn.ca REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Drew McLellan

Drew McLellan 2638 points
Perch Support

That looks ok. Do you have a detail path set of search results in the region options?

I'm not completely sure what that means, but in Region Options -> Search, there is no URL set, no. I haven't messed with anything in Region Options.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. Can you post your extended diagnostics - there's a couple of settings I'd like to check.

PERCH INFORMATION

Perch: 2.8.6
Production mode: Production (100)
Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup, tinymce
H1: 2b7ed6d9d30458597d8f719ea257db99
L1: 0373e2683e531703fcc049ade53bb00f
headerColour: #4e5b26
content_singlePageEdit: 1
helpURL:
siteURL: /en/
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.6: done
latest_version: 2.8
on_sale_version: 2.8.6
headerScheme: dark
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /perch/resources/logo.png
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db386036
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: db386036
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: chad@chadtiffin.com
PERCH_EMAIL_FROM_NAME: Chad Tiffin
PERCH_LOGINPATH: /perch
PERCH_PATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch
PERCH_CORE: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\core
PERCH_RESFILEPATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\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:
HOSTING SETTINGS

PHP: 5.4.26
Zend: 2.4.0
OS: WINNT
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.0.45-community-nt
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, cgi-fcgi, openssl, com_dotnet, curl, gd, gettext, imap, mbstring, exif, mysql, mysqli, Phar, pdo_mysql, PDO_ODBC, pdo_sqlite, soap, sockets, sqlite3, tidy, xmlrpc, xsl, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 256M
PHP max form post size: 256M
PHP memory limit: 256M
Total max uploadable file size: 256M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
_FCGI_X_PIPE_: \\.\pipe\IISFCGI-59091a8a-1cdc-449b-887b-4d4faf0990d4
PHP_FCGI_MAX_REQUESTS: 10000
ALLUSERSPROFILE: C:\Documents and Settings\All Users
APP_POOL_ID: sherwoodinn
CommonProgramFiles: C:\Program Files\Common Files
COMPUTERNAME: WSD10
ComSpec: C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK: NO
NUMBER_OF_PROCESSORS: 2
OS: Windows_NT
Path: C:\Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 15 Stepping 11, GenuineIntel
PROCESSOR_LEVEL: 6
PROCESSOR_REVISION: 0f0b
ProgramFiles: C:\Program Files
SystemDrive: C:
SystemRoot: C:\WINDOWS
TEMP: C:\WINDOWS\TEMP
TMP: C:\WINDOWS\TEMP
USERPROFILE: C:\Documents and Settings\Default User
windir: C:\WINDOWS
__COMPAT_LAYER: EnableNXShowUI
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
HTTP_X_REWRITE_URL: /perch/core/settings/diagnostics/?extended
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
HTTP_REFERER: https://www.sherwoodinn.ca.wsd10.korax.net/perch/core/settings/diagnostics/
HTTP_HOST: www.sherwoodinn.ca.wsd10.korax.net
HTTP_COOKIE: PHPSESSID=iqgftfj0pqnvees47fm4v9oq86; cmsa=1
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_CONNECTION: keep-alive
SCRIPT_FILENAME: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\core\settings\diagnostics\index.php
DOCUMENT_ROOT: D:\Users\S\sherwoodinn\www.sherwoodinn.ca
REQUEST_URI: /perch/core/settings/diagnostics/?extended
URL: /perch/core/settings/diagnostics/index.php
REMOTE_PORT: 59061
SERVER_SOFTWARE: Microsoft-IIS/6.0
SERVER_PROTOCOL: HTTP/1.1
SERVER_PORT: 80
SERVER_NAME: www.sherwoodinn.ca.wsd10.korax.net
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_METHOD: GET
REMOTE_HOST: 24.246.18.131
REMOTE_ADDR: 24.246.18.131
QUERY_STRING: extended
PATH_TRANSLATED: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\core\settings\diagnostics\index.php
LOCAL_ADDR: 216.201.96.114
INSTANCE_META_PATH: /LM/W3SVC/143
INSTANCE_ID: 143
HTTPS: off
GATEWAY_INTERFACE: CGI/1.1
APPL_PHYSICAL_PATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\
APPL_MD_PATH: /LM/W3SVC/143/ROOT
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1431617672.6562
REQUEST_TIME: 1431617672
Drew McLellan

Drew McLellan 2638 points
Perch Support

I can't see any reason why that should be happening. Is it the same in your dev environment? Is that also Windows?

I haven't tried it in my personal linux dev environment, but I just finished setting up a sister site, which is essentially the exact same setup as this one and on the same server, and it works fine. So I'm inclined to believe I did something differently the second time around this time when I created the pages, but I can't figure out what that is.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ah - you have the site URL set to /en on the Settings page.

That was it! Thanks for the help!