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?
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
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.
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.
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.