Forum

Thread tagged as: Addons, Runway, Blog

Runway Blog App Not Showing Post List

I have set up a blank install of Runway all fine. Following the webinar to set the blog up and the blog index page is not listing any posts the page seems to stop after the h1 blog title. I have added debug but this only works if I add it to the top of the page. it shows

Debug Message
SELECT p.pagePath, pr.routePattern, pr.routeRegExp, p.pageTemplate FROM perch2_pages p LEFT JOIN perch2_page_routes pr ON p.pageID=pr.pageID ORDER BY pr.routeOrder ASC
Using master page: /templates/pages/blog/index.php
Page arguments:
Array
(
    [type] => 2
    [message] => include(): Failed opening '/Users/greg/Sites/gregriley/perch/addons/apps/blog/runtime.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.6.2/lib/php')
    [file] => /Users/greg/Sites/gregriley/perch/core/inc/apps.php
    [line] => 22
)

Running :

Perch Runway: 2.8.2, PHP: 5.6.2, MySQL: 5.5.38, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.2), assets (2.8.2), categories (2.8.2), perch_blog (4.6)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/greg/Sites/gregriley/perch
PERCH_CORE: /Users/greg/Sites/gregriley/perch/core
PERCH_RESFILEPATH: /Users/greg/Sites/gregriley/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
Resource folder writeable: Yes
HTTP_HOST: gregriley
DOCUMENT_ROOT: /Users/greg/Sites/gregriley
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Any ideas much appreciated thanks.

Greg Riley

Greg Riley 1 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like you have some missing files - try re uploading.

I have re downloaded runway and blog app from Perch site and copied over core and perch_blog folders. They are on my local mac. Still the same. The debug is showing on my home and about pages the same thing, which Is confusing me as I have not added the debug line to them and they use different master pages.

Both

/Users/greg/Sites/gregriley/perch/addons/apps/blog/runtime.php

and

/Users/greg/Sites/gregriley/perch/core/inc/apps.php

Are present.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If the files are there and PHP can't include them, the next place to look is permissions.

I have set permissions on perch core and perch_blog to read and write to all and still no change. Are they the permissions you meant or is it a MAMP issue maybe?

(include_path='.:/Applications/MAMP/bin/php/php5.6.2/lib/php')

It is that same MAMP setup that I use for all my other Perch sites though.

Drew McLellan

Drew McLellan 2638 points
Perch Support

In apps.php change:

 $apps_list = array( 'content', 'categories', 'blog', );

to

 $apps_list = array( 'content', 'categories', 'perch_blog', );

Yes that fixed it thanks. I have no idea why though :(

UPDATE: It is because I did not follow the video correctly! Sorry, must try harder.