Comments Stack and Poster 2

I’m testing the demo CommentsStack with Poster 2, but when I place the CommentsStack inside a Poster 2 Item and test the output page I only see this in the browser:

Parse error: syntax error, unexpected ‘’ (T_ENCAPSED_AND_WHITESPACE), expecting ‘-’ or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /xxxxxx/xxxxxxx/club/index.php on line 601

If the Comments stack is outside the Item then both stacks work as expected, but obviously the comments are no longer related to an item. What am I doing wrong?

That will not work. And is also not supposed to work.

You can try to enable it like I did it in Poster 1. Not tested with Poster 2, though. CommentsStack Integration

I see, got it now. I was trying to follow this Poster Stack with Comments Stack

Making progress with this. The instructions to use CommentsStack with Poster 1 work just fine.

However, when using Poster 2 all seems fine until the comment is entered - then nothing is written to the database file. Is this a permanent fail, or something that requires more PHP expertise to fix?

If it’s client-side Javascript, look in the browser developer tools. Click on the Console tab. See what error is being thrown. If the problem relates to validation or something like that, then the form might not be submitting.

For PHP errors, look at your server error log. Or ask your web hosting company to show you where it is.
Take a look at what error is thrown when a comment submission fails.

Hi, thanks for those pointers, although this is moving beyond my comfort zone :sweat:

Unfortunately, no progress so far. The Safari console shows no errors or warnings, just a latency report. Having enabled PHP error logging the webserver shows no errors either.

Is there any possibility that CommentsStack will be updated to work with Poster 2?

Only if someone tells me what needs to be updated.

Never tested with Poster 2, so I don’t know if works.

Also won’t have time the next days to jump on that.

Thank you both for your responses, this isn’t urgent, I’d like to move over from the RW Blog page to a solution using Poster 2 and Comments by the end of the year.

Unfortunately I don’t have the skills to find out why the combination isn’t working. Poster 1 and Comments work just fine.

Using Poster 2 and Comments it all seems OK at first, a comment can be written, but when it’s entered the screen switches back to the main Poster 2 blog page instead of staying on the item detail view. Nothing is recorded in the database .txt file. No errors show up in the Safari console or in the php error log.

I will check as soon as possible and will get back to @willwood if we can collaborate on this.

2 Likes

Very grateful, thank you.

I was able to fix this issue and will release a new version of Poster 2 next week.

1 Like

Same thing happens by inserting Minicookie in Poster2 (example to enable youtube).
The error is:
Parse error: syntax error, unexpected ‘"’, expecting ‘-’ or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /private/var/folders/5h/gl_tz7jd72bbplrzzxgm5zrw0000gn/T/com.realmacsoftware.rapidweaver8/RapidWeaver/53551/document-0x7fbc78685360/RWDocumentPagePreview/index.php on line 552

Hopefully, the Poster2 update solves this problem as well.

As documented Mini Cookie won’t work with Poster 2, currently. I have some ideas for a workaround, though.

Thank you so much

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.