[3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
alsthom
Registered User
Posts: 78
Joined: Fri Oct 05, 2012 5:19 pm

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by alsthom »

Hi
I tried to enable it and I got an error in ACP
Give me your advise please. Latest phpbb , php 8.1

Code: Select all

Γενικό σφάλμα
SQL ERROR [ mysqli ]

Duplicate entry 'steve/postreactions' for key 'ext_name' [1062]

SQL

INSERT INTO alsth_ext (ext_name, ext_active, ext_state) VALUES ('steve/postreactions', 0, 's:12:\"notification\";')

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 345
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 179
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 241
CALL: phpbb\extension\manager->update_state()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 209
CALL: phpbb\extension\manager->enable_step()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: acp_extensions->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
User avatar
warmweer
Jr. Extension Validator
Posts: 11856
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by warmweer »

alsthom wrote: Sun Dec 04, 2022 11:59 am Hi
I tried to enable it and I got an error in ACP
Give me your advise please. Latest phpbb , php 8.1

Code: Select all

Γενικό σφάλμα
SQL ERROR [ mysqli ]

Duplicate entry 'steve/postreactions' for key 'ext_name' [1062]

SQL

INSERT INTO alsth_ext (ext_name, ext_active, ext_state) VALUES ('steve/postreactions', 0, 's:12:\"notification\";')

...
Is it possible that this extension has been installed previously?
f you see see it in the extension list, try to disable it, then Delete data, and then try enabling again.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
alsthom
Registered User
Posts: 78
Joined: Fri Oct 05, 2012 5:19 pm

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by alsthom »

Νο, It was the first time.
BUT look what strange thing happened!!!
I was worried becouse the extension didn't install, so I looked et extensions to find something else. I did find the rxu's extension (thanks for posts)
And Installed that. Without problem.
I returned to ACP , to give another try to extension (reactions). And guess what? It installed! Without problem. And it works! without problem. :!:
I am not sure what happened but the final result is ok! :)
spinecki
Registered User
Posts: 68
Joined: Wed Jan 11, 2017 12:41 pm

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by spinecki »

Is it possible for guests to use it?
User avatar
warmweer
Jr. Extension Validator
Posts: 11856
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by warmweer »

spinecki wrote: Tue Dec 13, 2022 5:29 pm Is it possible for guests to use it?
Steve wrote: Thu Mar 03, 2022 5:05 pm
Admin Control Panel:
  • Group and user permissions.
....

Permissions need to be set for this extension: How to set permissions
Based on the above, I would think yes, but the proof of the pudding is in the eating.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Steve
Registered User
Posts: 1550
Joined: Tue Apr 07, 2009 7:48 pm
Location: Co. Durham, England
Name: Steven Clark

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by Steve »

Sorry I haven’t been around for a while but hey ho…
Life goes on. I will be back in the new year.

And I will answer any questions in due course.
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺
SubJunk
Registered User
Posts: 11
Joined: Tue Apr 03, 2012 12:02 am

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by SubJunk »

I have an error with 0.9.0 and PHPBB 3.3.9 which causes the forum to not load:

Code: Select all

PHP Fatal error:  Uncaught Twig\\Error\\LoaderError: Unable to find template "@steve_postreactions/reactions.css" (looked into: /public_html/forum/ext/steve/postreactions/styles/all/template, //public_html/forum/ext/steve/postreactions/styles/all/template) in "@steve_postreactions/event/overall_header_head_append.html" at line 2. in //public_html/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php:250
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2497
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by P_I »

SubJunk wrote: Tue Dec 20, 2022 12:53 am I have an error with 0.9.0 and PHPBB 3.3.9 which causes the forum to not load:
Could this be the result of [Info] Changes to twig behavior on loading files in 3.3.9 ?
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
Gumboots
Registered User
Posts: 801
Joined: Fri Oct 11, 2019 1:59 am

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by Gumboots »

Seem to have hit a glitch.
This is a site running 3.3.8.
Extension is Version: 0.9.0-dev
Member got a notification of a reaction, but with no name associated.
Received a reaction which is corrupted (no name is displayed, just the notification wrapper) and now there is a heap of white space added at the end of all posts.

Get this note across the top of the screen:

Code: Select all

 phpBB Debug] PHP Warning: in file [ROOT]/ext/steve/postreactions/notification/type/reaction.php on line 91: sprintf(): Too few arguments

He's now getting this everywhere (as well as the error message):
Forum is still usable. Adds maybe 20 lines of white space at bottom of each post.
Any ideas?

ETA: Note that when I view the offending post as admin I can see only one reaction, which has a name attached and looks normal. The database may say something else though.

ETA2: Never mind. Figured out that a resync seems to fix it. All good now.
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
viper69
Registered User
Posts: 234
Joined: Fri Jun 03, 2022 5:35 pm

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by viper69 »

is this working in 3.3.9?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26870
Joined: Fri Aug 29, 2008 9:49 am

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by Mick »

In the first post it states phpBB 3.3.5 >=
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
warmweer
Jr. Extension Validator
Posts: 11856
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by warmweer »

Mick wrote: Mon Jan 09, 2023 3:08 pm In the first post it states phpBB 3.3.5 >=
True but that doesn't imply that it was tested with 339 (and the changes to twig).

Still, by now viper69 should have a full and backup copy of his current board, so there's no risk in trying it.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Steve
Registered User
Posts: 1550
Joined: Tue Apr 07, 2009 7:48 pm
Location: Co. Durham, England
Name: Steven Clark

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by Steve »

SubJunk wrote: Tue Dec 20, 2022 12:53 am I have an error with 0.9.0 and PHPBB 3.3.9 which causes the forum to not load:

Code: Select all

PHP Fatal error:  Uncaught Twig\\Error\\LoaderError: Unable to find template "@steve_postreactions/reactions.css" (looked into: /public_html/forum/ext/steve/postreactions/styles/all/template, //public_html/forum/ext/steve/postreactions/styles/all/template) in "@steve_postreactions/event/overall_header_head_append.html" at line 2. in //public_html/forum/vendor/twig/twig/src/Loader/FilesystemLoader.php:250
What version of post reactions are you using? As as far back that i can remember I've used {% INCLUDEJS/CSS as recommended in the new twig command. And I've also tested on 3.3.9 and no error is presented.
viper69 wrote: Mon Jan 09, 2023 9:57 am is this working in 3.3.9?
Should do, you can test localy....

I will hopefuly release version 0.9.2 later this week.
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺
viper69
Registered User
Posts: 234
Joined: Fri Jun 03, 2022 5:35 pm

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by viper69 »

is this latest version 3.3.9 compatible?

I am waiting for that version
User avatar
Steve
Registered User
Posts: 1550
Joined: Tue Apr 07, 2009 7:48 pm
Location: Co. Durham, England
Name: Steven Clark

Re: [3.3][DEV] phpBB Topic/Post Reactions, Thanks, Like

Post by Steve »

Yes and so is version 0.9.0 ;)
@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺

Return to “Extensions in Development”