Forum

Thread tagged as: Problem, Error, Discussion

Can't create pages

My client has seemingly lost the ability to create pages - they appear in the list of pages, but when I try to access the URL defined in the page settings, I get a 404.

Pages I created further back in time are fine, and the main web site seems to work just fine.

I've had them check the database to see whether it's full, but they just doubled the capacity and checked to see if there is sufficient space left, and there is apparently.

What else should I check?

PERCH INFORMATION
Perch: 2.3.2
Production mode: Production (100)
Installed apps: content (2.3.2), perch_forms (1.7), perch_blog (3.8.1)
DB driver: PDO
DB tables: access, accesslog, accesslog_bak, accesslog_bak1, aggregator_category, aggregator_category_feed, aggregator_category_item, aggregator_feed, aggregator_item, authmap, banner, banner_term, blocks, book, boxes, cache, comments, directory, files, filter_formats, filters, flexinode_data, flexinode_field, flexinode_type, flood, forum, history, img_assist_map, locales_meta, locales_source, locales_target, menu, moderation_filters, moderation_roles, moderation_votes, node, node_access, node_comment_statistics, node_counter, perch2_blog_authors, perch2_blog_categories, perch2_blog_comments, perch2_blog_posts, perch2_blog_posts_to_categories, perch2_blog_posts_to_tags, perch2_blog_tags, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_content_resources, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resources, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users, permission, poll, poll_choices, profile_fields, profile_values, queue, role, search_index, search_total, sequences, sessions, system, term_data, term_hierarchy, term_node, term_relation, term_synonym, url_alias, users, users_roles, variable, view_argument, view_breadcrumb, view_filter, view_sort, view_tablefield, view_view, vocabulary, vocabulary_node_types, watchdog, webform, webform_component, webform_role_node, webform_submitted_data
Users: 7
App runtimes:
<?php
    include(PERCH_PATH.'/core/apps/content/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php');
    include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php');
?>
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup, ckeditor
H1: 457f70e8a0c621ffc3a71027d2855370
L1: 890c1f513cb5b497bda4b7f61eae7715
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: en-gb
update_2.3: done
latest_version: 2.8.15
update_2.3.2: done
perch_blog_post_url: /news/post.php?s={postSlug}
perch_blog_update: 3.7.5
headerScheme: light
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 0
content_hideNonEditableRegions: 1
perch_blog_comment_notify: 0
logoPath: /perch/resources/tt.png
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: jtarbuck
PERCH_DB_SERVER: 213.171.218.245
PERCH_DB_DATABASE: ttgames
PERCH_DB_PREFIX: perch2_
PERCH_TZ: GMT
PERCH_EMAIL_FROM: jon.tarbuck@mac.com
PERCH_EMAIL_FROM_NAME: Jon Tarbuck
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/linnas02/t/ttgames.com-1090034144/user/htdocs/perch
PERCH_CORE: /home/linnas02/t/ttgames.com-1090034144/user/htdocs/perch/core
PERCH_RESFILEPATH: /home/linnas02/t/ttgames.com-1090034144/user/htdocs/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_ERROR_MODE: DIE
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/linnas02/t/ttgames.com-1090034144/user/htdocs/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS
PHP: 5.2.17
Zend: 2.2.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.60-MariaDB
MySQL server: 5.6.41-log
Extensions: date, libxml, openssl, pcre, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, session, iconv, pcntl, posix, readline, Reflection, standard, shmop, sockets, SPL, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, cgi-fcgi, bcmath, dba, gd, imap, json, ldap, mbstring, mcrypt, mhash, mssql, mysql, mysqli, ncurses, odbc, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, pspell, snmp, soap, tidy, xmlreader, xmlrpc, xmlwriter, zip, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 20M
PHP max form post size: 20M
PHP memory limit: 64M
Total max uploadable file size: 20M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD: /var/www/fcgi
PHP_FCGI_MAX_REQUESTS: 100
FCGI_ROLE: RESPONDER
REDIRECT_on: 127.0.0.1
REDIRECT_UNIQUE_ID: W74GCuF0sXJbPKBaKmkyQQAAAAA
REDIRECT_HANDLER: application/x-httpd-php
REDIRECT_STATUS: 200
on: 127.0.0.1
UNIQUE_ID: W74GCuF0sXJbPKBaKmkyQQAAAAA
HTTP_HOST: ttgames.com
HTTP_X_REAL_IP: 81.138.153.30
HTTP_X_FORWARDED_FOR: 81.138.153.30
HTTP_CONNECTION: close
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://ttgames.com/perch/core/settings/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.9,en;q=0.8
HTTP_COOKIE: PHPSESSID=2p6uoe4rgb81mkt807su87q3e5
SERVER_SOFTWARE: Apache
SERVER_NAME: ttgames.com
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 81.138.153.30
DOCUMENT_ROOT: /home/linnas02/t/ttgames.com-1090034144/user/htdocs
REQUEST_SCHEME: http
CONTEXT_PREFIX: /fcgi-bin/
CONTEXT_DOCUMENT_ROOT: /var/www/fcgi/
SERVER_ADMIN: support@fasthosts.com
SCRIPT_FILENAME: /home/linnas02/t/ttgames.com-1090034144/user/htdocs/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 55418
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.0
REQUEST_METHOD: GET
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /var/www/fcgi/php-cgi
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /home/linnas02/t/ttgames.com-1090034144/user/htdocs/perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /fcgi-bin/php-cgi
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME: 1539180042
Jon Tarbuck

Jon Tarbuck 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If the pages appear in the Pages list then they're being added to the database. The part that sounds like it's failing is the creation of the file on the file system. Have permissions changed? Can PHP still write to your file system?

The files are not being created on the server. No permissions have changed that I am aware of.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you getting any error messages relating to that?

The log file shows this:

[Wed Oct 10 18:33:40.328061 2018] [fcgid:warn] [pid 43134] [client 158.46.149.145:35868] mod_fcgid: stderr: PHP Notice:  Undefined variable: template in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 68
[Wed Oct 10 18:33:40.328406 2018] [fcgid:warn] [pid 43134] [client 158.46.149.145:35868] mod_fcgid: stderr: PHP Notice:  Undefined variable: posts_per_page in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 69
[Wed Oct 10 18:33:40.328436 2018] [fcgid:warn] [pid 43134] [client 158.46.149.145:35868] mod_fcgid: stderr: PHP Notice:  Undefined variable: sort_by in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 70
[Wed Oct 10 18:33:40.328444 2018] [fcgid:warn] [pid 43134] [client 158.46.149.145:35868] mod_fcgid: stderr: PHP Notice:  Undefined variable: sort_orde_r in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 71
[Wed Oct 10 18:33:40.334880 2018] [fcgid:warn] [pid 10767] [client 158.46.149.145:35866] mod_fcgid: stderr: PHP Notice:  Undefined variable: template in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 68
[Wed Oct 10 18:33:40.334902 2018] [fcgid:warn] [pid 10767] [client 158.46.149.145:35866] mod_fcgid: stderr: PHP Notice:  Undefined variable: posts_per_page in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 69
[Wed Oct 10 18:33:40.334909 2018] [fcgid:warn] [pid 10767] [client 158.46.149.145:35866] mod_fcgid: stderr: PHP Notice:  Undefined variable: sort_by in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 70
[Wed Oct 10 18:33:40.334923 2018] [fcgid:warn] [pid 10767] [client 158.46.149.145:35866] mod_fcgid: stderr: PHP Notice:  Undefined variable: sort_orde_r in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 71
[Wed Oct 10 19:00:07.490522 2018] [fcgid:warn] [pid 43418] [client 178.255.215.80:51752] mod_fcgid: stderr: PHP Notice:  Undefined variable: template in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 68
[Wed Oct 10 19:00:07.490917 2018] [fcgid:warn] [pid 43418] [client 178.255.215.80:51752] mod_fcgid: stderr: PHP Notice:  Undefined variable: posts_per_page in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 69
[Wed Oct 10 19:00:07.490928 2018] [fcgid:warn] [pid 43418] [client 178.255.215.80:51752] mod_fcgid: stderr: PHP Notice:  Undefined variable: sort_by in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 70
[Wed Oct 10 19:00:07.490935 2018] [fcgid:warn] [pid 43418] [client 178.255.215.80:51752] mod_fcgid: stderr: PHP Notice:  Undefined variable: sort_orde_r in /home/linnas02/t/ttgames.com-1090034144/user/htdocs/news/archive.php on line 71

Any thoughts on this Drew?

Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like you have a load of errors in news/archive.php. Is that a page you've created? You should check those errors.

But unless that's the page you're trying to create when you add a new page, then I don't think it's related. All I can suggest is that you update to at least the final version of Perch 2.

OK. The log says the problem is where the the sort order is specified in the following:

                                perch_blog_custom(array(
                                        'filter'     => 'postDateTime',
                                        'match'      => 'eqbetween',
                                        'value'      => $date_from.','.$date_to,
                                        'template'   => $template,
                                        'count'      => $posts_per_page,
                                        'sort'       => $sort_by,
                                        'sort-order' => $sort_orde_r,
                                        'template'   => 'blog/post_in_list.html'
                                        ));

Does that look right to you? Can't find where to download the latest 2.x release of Perch.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is $sort_orde_r a variable you've defined somewhere? It looks like perhaps it's a typo and you mean $sort_order - could that be it?

You can download the last Perch 2 release from the license detail page in your account on https://account.perchcms.com/

Have changed archive.php but it doesn't seem to have made any difference to the ability of Perch to create pages on the server. The permissions on the htdocs folder are 755, not much else I can think of.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, but it should clear up the logs to give you a chance to see any real errors.

Did you update Perch?

Nope, as the client currently has 5.2 installed and the latest 2.x release requires 5.3. Am getting them to update to the latest version the hosting provider will allow - presumably no issues with that?

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, that should be fine. Let us know what problems persist once you've updated.

To watch the movies in the lesiure time is the best part of the life. Movies are the reflection of our life, what we see and observe are reflected through the movies. Watching movies in the theatre show are sometime not possible. To save that bucks and time, we open a free movie streaming app. Basically, these movie streaming apps are available on the web easily/. Showbox app is a free movie streaming app, where you can watch the movies for free. Even the latest movies are available for free and that too in HD quality. This app can be installed and downloaded into Mac, Kindle, Windows and Android devices. There are certain movies that can't be even watched on the Netflix or Amazon Prime. In that case, Showbox is a software to watch the movies for free. Download the movies into any format whether it is MP4 or MP3. Do watch the movies and save your bucks showbox movies

I had sames issues with my site https://www.manage-wordpress.com