Forum

Thread tagged as: Problem, Error, Configuration

Not able to create subpages in folder named "en" - very odd bug

I've come across a very strange bug, for some reason I'm not able to create a subpage in a folder named "en". It works for every other folder, not named "en". And If I change the setting on the parent page to let's say "en2" it wokrs.

For the pages I try to create in the "en" folder i get this error:

Warning: include(el/templates/pages/page-template.php): failed to open stream: No such file or directory in /nfs/66663/domains/dev.domain.com/html/en/test6.php on line 1

Warning: include(): Failed opening 'el/templates/pages/page-template.php' for inclusion (include_path='.:/usr/local/php-5.5.35/share/pear') in /nfs/66663/domains/dev.domain.com/html/en/test6.php on line 1

Any idea how to fix that?

Dan Andersen

Dan Andersen 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics?

PERCH INFORMATION
        Perch: 2.8.30
        Production mode: Production (100)
        Installed apps: content (2.8.30), assets (2.8.30), categories (2.8.30), perch_backup (1.2)
        DB driver: PDO
        DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (1653), perch2_content_items (264), perch2_content_regions (61), perch2_navigation (2), perch2_navigation_pages (15), perch2_page_templates (4), perch2_pages (41), perch2_resource_log (586), perch2_resource_tags (0), perch2_resources (142), perch2_resources_to_tags (0), perch2_settings (17), perch2_user_passwords (0), perch2_user_privileges (27), perch2_user_role_privileges (20), perch2_user_roles (2), perch2_users (4)
        Users: 4
        App runtimes: <?php
            $apps_list = array(
                'content', 
                'categories',
            );
        Editor plug-ins: redactor, markitup
        H1: 965d0be38208398e25524970d19992b8
        L1: a8082cea61e3932d72aa49dc01a3088f
        F1: 2edba60ed1f613d6dd804feb202456a2
        headerColour: #ffffff
        content_singlePageEdit: 1
        helpURL: https://www.madeinbergen.no/kontakt.php
        siteURL: /
        hideBranding: 1
        content_collapseList: 1
        lang: en-gb
        update_2.8.30: done
        latest_version: 2.8.15
        on_sale_version: 2.8.30
        headerScheme: light
        content_hideNonEditableRegions: 1
        content_frontend_edit: 1
        perch_backup_mysqldump_path:
        dashboard: 0
        hide_pwd_reset: 0
        logoPath: /enkel/resources/-logo.png
        PERCH_DEVELOPMENT: 10
        PERCH_STAGING: 50
        PERCH_PRODUCTION: 100
        PERCH_DB_USERNAME: db98789_admin
        PERCH_DB_SERVER: internal-db.s98789.gridserver.com
        PERCH_DB_DATABASE: db98789_domain.com
        PERCH_DB_PREFIX: perch2_
        PERCH_TZ: Europe/Oslo
        PERCH_EMAIL_FROM: email@domain.com
        PERCH_EMAIL_FROM_NAME: Admin
        PERCH_LOGINPATH: /enkel
        PERCH_PATH: /nfs/c77/hh/mnt/98789/domains/domain.com/html/enkel
        PERCH_CORE: /nfs/c77/hh/mnt/98789/domains/domain.com/html/enkel/core
        PERCH_RESFILEPATH: /nfs/c77/hh/mnt/98789/domains/domain.com/html/enkel/resources
        PERCH_RESPATH: /enkel/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: /nfs/c77/hh/mnt/98789/domains/domain.com/html/enkel/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_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: 5.5.35
        Zend: 2.5.0
        OS: Linux
        SAPI: cgi-fcgi
        Safe mode: not detected
        MySQL client: 5.5.49
        MySQL server: 5.1.55-rel12.6
        Free disk space: 1.92 TB
        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: 40M
        PHP max form post size: 45M
        PHP memory limit: 99M
        Total max uploadable file size: 40M
        Resource folder writeable: Yes
        Session timeout: 24 minutes
        Native JSON: Yes
        Filter functions: Yes
        Transliteration functions: Yes
        PATH: /usr/local/bin:/usr/bin:/bin
        REDIRECT_HANDLER: php-latest
        REDIRECT_STATUS: 200
        UNIQUE_ID: V312Y0gv5BcAADIPlisAAACC
        SCRIPT_URL: /enkel/core/settings/diagnostics/
        SCRIPT_URI: https://domain.com/enkel/core/settings/diagnostics/
        WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
        ACCESS_DOMAIN: s98789.gridserver.com
        DATABASE_SERVER: internal-db.s98789.gridserver.com
        SITE_ROOT: /home/98789
        SITE_CGIROOT: /home/98789/cgi-bin
        SITE_HTMLROOT: /home/98789/domains/domain.com/html
        PHPRC: /home/98789/etc/
        HTTP_HOST: domain.com
        HTTP_ACCEPT_ENCODING: gzip, deflate
        HTTP_COOKIE: PHPSESSID=220f228d8a651f71dcbba832dce2f039; cmsa=1; __utma=124282955.904936899.1456958813.1457694825.1457701795.3; __utmz=124282955.1456958813.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ga=GA1.2.904936899.1456958813
        HTTP_CONNECTION: keep-alive
        HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
        HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17
        HTTP_ACCEPT_LANGUAGE: en-us
        HTTP_REFERER: https://domain.com/enkel/core/settings/diagnostics/
        HTTP_DNT: 1
        SERVER_SIGNATURE: <address>Apache/2.2.22 Server at domain.com Port 80</address>
        SERVER_SOFTWARE: Apache/2.2.22
        SERVER_NAME: domain.com
        SERVER_ADDR: 89.09.331.191
        SERVER_PORT: 80
        REMOTE_ADDR: 13.22.89.204
        DOCUMENT_ROOT: /home/98789/domains/domain.com/html
        SERVER_ADMIN: webmaster@domain.com
        SCRIPT_FILENAME: /home/98789/domains/domain.com/html/enkel/core/settings/diagnostics/index.php
        REMOTE_PORT: 61020
        REDIRECT_QUERY_STRING: extended
        REDIRECT_URL: /enkel/core/settings/diagnostics/index.php
        GATEWAY_INTERFACE: CGI/1.1
        SERVER_PROTOCOL: HTTP/1.1
        REQUEST_METHOD: GET
        QUERY_STRING: extended
        REQUEST_URI: /enkel/core/settings/diagnostics/?extended
        SCRIPT_NAME: /enkel/core/settings/diagnostics/index.php
        ORIG_SCRIPT_FILENAME: /etc/apache2/gs-bin/php-latest
        ORIG_PATH_INFO: /enkel/core/settings/diagnostics/index.php
        ORIG_PATH_TRANSLATED: /home/98789/domains/domain.com/html/enkel/core/settings/diagnostics/index.php
        ORIG_SCRIPT_NAME: /gs-bin/php-latest
        PHP_SELF: /enkel/core/settings/diagnostics/index.php
        REQUEST_TIME_FLOAT: 1467840099.0686
        REQUEST_TIME: 1467840099
        argc: 1

I also did a test with the defafault.php page template just to be sure it wasn't anything in the templates I created that might cause the bug. Same result.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think it's because you've renamed the perch folder to enkel - and then the en is matching both.

I was afraid that might had something to do with it. But no way of knowing...

Are there any way around this, other then renaming one of the folders?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Right now that's the only solution.