Forum

Thread tagged as: Question, Configuration, Feathers

Feather Issue

I have set up the feather as described and I can't seem to get it to work.

When I added define('PERCH_FEATHERS', true); to my config file it removed all my perch content below

Here are all my files, I know im a PITA, but thank you in advance.

\addons\feathers\skeleton\runtime.php

<?php
PerchSystem::register_feather('skeleton');

class PerchFeather_MyFeather extends PerchFeather
{
  public function get_css($opts, $index, $count)
    {   
      return $this->_single_tag('link', array(
        'rel'=>'stylesheet',
        'href'=>$this->path.'/css/basic.css',
        'type'=>'text/css'
       ));
      }
}

?>

\config\feathers.php

<?php
    include(PERCH_PATH.'/addons/feathers/skeleton/runtime.php');
?>

global.header

<!doctype html>
<html lang="en">
<head>  
<meta charset="utf-8" />
<title><?php perch_pages_title(); ?></title>
<?php perch_page_attributes(); ?>
<?php perch_get_css(); ?>
</head>
<body>

default.php

<?php include($_SERVER['DOCUMENT_ROOT'].'/login/runtime.php'); ?>
<?php perch_layout('global.header'); ?>


    <h1><?php perch_content('Main heading'); ?></h1>

    <?php perch_pages_navigation([
        'levels'=>1]
        ); ?>

    <?php perch_content('Intro'); ?>

<?php perch_layout('global.footer'); ?>

diagnostics

Perch: 3.0.11, PHP: 7.1.7, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.11), assets (3.0.11), categories (3.0.11)
App runtimes: <?php $apps_list = [ ];
PERCH_LOGINPATH: /login
PERCH_PATH: /home/athtests/public_html/master/login
PERCH_CORE: /home/athtests/public_html/master/login/core
PERCH_RESFILEPATH: /home/athtests/public_html/master/login/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 512M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/athtests/public_html/master
HTTP_HOST: master.athtestsites.com
REQUEST_URI: /login/core/settings/diagnostics/
SCRIPT_NAME: /login/core/settings/diagnostics/index.php

debug

Debug Message - Perch 3.0.11
[1] SELECT u.*, r.* FROM perch3_users u, perch3_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='e3e27c9204d4eae32b8b9704063dd848' LIMIT 1
UPDATE perch3_users SET userHash='11514c16ac6a438e05208de16090afe6' WHERE userID='1'
[20] SELECT settingID, settingValue, userID FROM perch3_settings WHERE userID=1 OR userID=0 ORDER BY userID ASC
[6] SELECT itemValue FROM perch3_menu_items WHERE itemType='app'
[1] SELECT * FROM perch3_content_regions WHERE regionID=5 LIMIT 1
[1] SELECT * FROM perch3_pages WHERE pageID='3' LIMIT 1
Using template: /templates/content/text.html
[1] SELECT * FROM perch3_content_items c WHERE c.regionID=5 AND c.itemRev=2 ORDER BY c.itemOrder ASC
Using template: /templates/content/text.html
[1] SELECT * FROM perch3_content_items c WHERE c.regionID=5 AND c.itemRev=2 ORDER BY c.itemOrder ASC
Using template: /templates/content/text.html
Form not posted or did not validate
[1] SELECT mi.*, p.privKey FROM perch3_menu_items mi LEFT JOIN perch3_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=0 ORDER BY itemOrder ASC LIMIT 0, 1
[1] SELECT mi.*, p.privKey FROM perch3_menu_items mi LEFT JOIN perch3_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=1 ORDER BY mi.itemOrder ASC
[1] SELECT itemTitle FROM perch3_menu_items WHERE itemType='app' AND itemValue='content' LIMIT 1
[1] SELECT mi.*, p.privKey FROM perch3_menu_items mi LEFT JOIN perch3_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=0 ORDER BY itemOrder ASC LIMIT 1, 10
[2] SELECT mi.*, p.privKey FROM perch3_menu_items mi LEFT JOIN perch3_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=2 ORDER BY mi.itemOrder ASC
File: /core/apps/content/modes/edit.form.post.php
Mode: edit.form
Queries: 14
Memory: 3.3507
Brittany Lewis

Brittany Lewis 0 points

  • 3 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

What do you mean by "it removed all my perch content below"?

Did the output terminate?

If so you have a PHP error and should look in your error log.

where would I find my error log.

and I got it to where it did not remove the content, but it is still not working.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you don't know where your error log is, you'll need to ask whoever controls your server.