Skip to content

[Bug]: Comments without ajax issue #5111

@Jimmi08

Description

@Jimmi08

What e107 version are you using?

Latest Github version (just updated)

Bug description

This is just a note for anybody who can test it.

When you use comments without ajax (from any reason, in my case temp test in WordPress environment), comments are not saved in PHP 8 and the reason is this:

image

It failed in PHP 8 because this variable wasn't set.

How to reproduce

Use comments without Ajax.

I am aware that this is hard to reproduce and I will extend this issue if I have time for this.

The problem is deeper and I just wanted to save what I found. Adding this line
$comment_share = 0; //BC Fix.
fixed issue and comment was saved.

Expected behavior

Working comment system without AJAX. Ajax is fine but as soon as your site produces any error, it is not working.

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA problem that should not be happening

    Type

    No type

    Priority

    None yet

    Triage Status

    None yet

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions