Forum

Thread tagged as: Problem, Error, Blog

Blog PostId not found

Hi,

I have a problem. The Blog app show empty post with post.php and give a error. I don't now when the problem arose. The item_slider work. See bottom of the page.

https://joepkolijn.nl/marokko

But if you go to

https://joepkolijn.nl/blog/post.php?s/reportages/vijf-tips-voor-reizen-met-avontuurlijke-kinderen

You get a empty page with

I hope someone can help me?

Error

Debug Message - Perch Runway 3.0.10
[40] SELECT DISTINCT settingID, settingValue FROM perch3_settings WHERE userID=0
[nil] SELECT SQL_CALC_FOUND_ROWS DISTINCT tbl.* FROM ( SELECT idx.itemID, main.*, idx2.indexValue as sortval FROM perch3_blog_index idx JOIN perch3_blog_posts main ON idx.itemID=main.postID AND idx.itemKey='postID' JOIN perch3_blog_index idx2 ON idx.itemID=idx2.itemID AND idx.itemKey='postID' AND idx2.indexKey='_id' WHERE 1=1 AND ((idx.indexKey='postSlug' AND idx.indexValue='')) AND idx.itemID=idx2.itemID AND idx.itemKey=idx2.itemKey GROUP BY idx.itemID, idx2.indexValue, postID ) as tbl WHERE (postStatus='Published' AND postDateTime<='2017-11-12 12:13:00' ) GROUP BY itemID, sortval ORDER BY sortval ASC LIMIT 0, 10
[1] SELECT FOUND_ROWS() AS `count`
Using template: /templates/blog/meta_head.html
[1] SELECT * FROM perch3_blog_posts WHERE postStatus='Published' AND postDateTime<='2017-11-12 12:13:00' AND postSlug=''

Array
(
    [type] => 8
    [message] => Undefined variable: postID
    [file] => /home/joepkoli/public_html/perch/addons/apps/perch_blog/runtime.php
    [line] => 114
)

Diagnostic

    Perch Runway: 3.0.10, PHP: 7.0.25, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
    Server OS: Linux, fpm-fcgi
    Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1), perch_kraken (1.1), my_sample (2.1), chirp_seo (1.1)
    App runtimes: <?php $apps_list = ['perch_blog','chirp_seo' ];
    PERCH_LOGINPATH: /perch
    PERCH_PATH: /home/joepkoli/public_html/perch
    PERCH_CORE: /home/joepkoli/public_html/perch/core
    PERCH_RESFILEPATH: /home/joepkoli/public_html/perch/resources
    Image manipulation: GD
    PHP limits: Max upload 10M, Max POST 8M, Memory: 512M, Total max file upload: 8M
    F1: 3b606135b33e6a102526838f4152a807
    Resource folder writeable: Yes
    SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
    REQUEST_URI: /perch/core/settings/diagnostics/
    DOCUMENT_ROOT: /home/joepkoli/public_html
    HTTP_HOST: joepkolijn.nl
Fleur Besters

Fleur Besters 0 points

  • 3 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

That link looks incorrect, you don't have a querystring name and value there.

If you are using querystrings you should have something like:

https://joepkolijn.nl/blog/post.php?s=vijf-tips-voor-reizen-met-avontuurlijke-kinderen

If you are rewriting URLs then you need to ensure that your value is correctly received by the page.

Thx Rachel,

I see it is a problem with the rewriting.

https://joepkolijn.nl/blog/post.php?s=vijf-tips-voor-reizen-met-avontuurlijke-kinderen

Work.

Now i have to found out how i fix that. Next step ;-)