Stop Forum Spam

Cannot redeclare generate_smilies - Stop Forum Spam

Cannot redeclare generate_smilies

by </Solidjeuh> » Sun Jun 04, 2017 4:06 pm

I installed the latest version, now when I use the search function I receive a white page.
This is the error that I see in my logs:

Code: Select all

[Sun Jun 04 17:58:19.047184 2017] [:error] [pid 11893] [client 87.64.229.69:28812] PHP Fatal error:  Cannot redeclare generate_smilies() (previously declared in /home/solidjeuh/domains/froddelpower.be/public_html/includes/functions_posting.php:25) in /home/solidjeuh/domains/froddelpower.be/public_html/includes/functions_posting.php on line 167, referer: https://www.froddelpower.be/
And also the same problem when I click the "new pm" button.
Like this topic: https://www.phpbb.com/customise/db/exte ... 16#p566516

All works fine when I disable this ext.
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu
User avatar
</Solidjeuh>
Registered User
Posts: 1626
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Cannot redeclare generate_smilies

by RMcGirr83 » Mon Jun 05, 2017 8:59 am

Version of phpBB would be what? I also can not reproduce this just as I can't reproduce the issue in the other topic.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Cannot redeclare generate_smilies

by RMcGirr83 » Mon Jun 05, 2017 11:15 am

Do you have the contact admin extension installed? If so try these edits and I believe that will fix this issue.

https://github.com/rmcgirr83/contactadm ... 3845a51203
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Cannot redeclare generate_smilies

by </Solidjeuh> » Mon Jun 05, 2017 1:55 pm

RMcGirr83 wrote:Do you have the contact admin extension installed? If so try these edits and I believe that will fix this issue.

https://github.com/rmcgirr83/contactadm ... 3845a51203
I use phpBB 3.2.0
It's working now with those edits.
Thank you :D
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu
User avatar
</Solidjeuh>
Registered User
Posts: 1626
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Cannot redeclare generate_smilies

by RMcGirr83 » Fri Jun 16, 2017 1:15 am

This is now in the latest version of the Contact Admin Extension.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Cannot redeclare generate_smilies

by wads24 » Mon Oct 29, 2018 9:17 pm

RMcGirr83 wrote:This is now in the latest version of the Contact Admin Extension.
I have just updated to most recent version of contact admin.

Fatal error: Cannot redeclare generate_smilies() (previously declared in /includes/functions_posting.php:25) in /includes/functions_posting.php on line 167
Thanks in advance for a reply.
User avatar
wads24
Registered User
Posts: 519
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: Cannot redeclare generate_smilies

by RMcGirr83 » Mon Oct 29, 2018 10:35 pm

Right and that has zero to do with contact admin so post in the other extension or do a search in the other extension.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Cannot redeclare generate_smilies

by wads24 » Mon Oct 29, 2018 10:52 pm

I just disabled the contact admin extension, cleared cache.... The error went away... Then I re-enabled contact admin and cleared cache and got the error again.
Thanks in advance for a reply.
User avatar
wads24
Registered User
Posts: 519
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: Cannot redeclare generate_smilies

by JacobGershvin » Thu Dec 06, 2018 5:22 am

I am having exactly the same problem, but it turns out that it only occurs if I have both Stop Forum Spam and Contact Admin extensions enabled at the same time. It goes away if I disable either one of them. FYI while troubleshooting this I completely reinstalled pbpBB twice and uploaded the latest versions of both extensions. I am using the latest version of phpbb which is 3.2.4.

I haven't tried to debug the code but I'm guessing that using the include_once or require_once directives in the extensions instead of include/require might fix it.
JacobGershvin
Registered User
Posts: 3
Joined: Thu Dec 06, 2018 5:12 am
Contact:

Re: Cannot redeclare generate_smilies

by Medenor » Sat Dec 08, 2018 12:07 pm

Same here. I'm in 3.2.4, styles are OK.
Indeed, it only occurs if I have both Stop Forum Spam and Contact Admin extensions enabled at the same time
Medenor
Registered User
Posts: 28
Joined: Tue Jul 29, 2008 4:37 pm
Location: Belgium [EUROPA]
Contact:

Re: Cannot redeclare generate_smilies

by </Solidjeuh> » Sat Dec 08, 2018 5:03 pm

Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~
Have a secret? --> https://www.tellyoursecrets.eu
User avatar
</Solidjeuh>
Registered User
Posts: 1626
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Cannot redeclare generate_smilies

by Medenor » Sat Dec 08, 2018 5:14 pm

Well, I have the latest version of both mods and as RMcGirr83 said, the fix should now be included in the version (indeed, I see the modifications in my own files).

But, despite this, I have the bug.
Medenor
Registered User
Posts: 28
Joined: Tue Jul 29, 2008 4:37 pm
Location: Belgium [EUROPA]
Contact:

Re: Cannot redeclare generate_smilies

by JacobGershvin » Sat Dec 08, 2018 5:21 pm

As I noted I also have the latest versions and still have the problem. Perhaps the fix only works with 3.2.0? We are, as we said, using 3.2.4.
JacobGershvin
Registered User
Posts: 3
Joined: Thu Dec 06, 2018 5:12 am
Contact:

Re: Cannot redeclare generate_smilies

by Medenor » Sat Dec 08, 2018 5:23 pm

And indeed, I guess that before being in 3.2.3, I had no problems with both mods. But one user reported the bug when I updated the forum to 3.2.3 (and still there in 3.2.4 as I updated today)
Medenor
Registered User
Posts: 28
Joined: Tue Jul 29, 2008 4:37 pm
Location: Belgium [EUROPA]
Contact:

Re: Cannot redeclare generate_smilies

by RMcGirr83 » Sat Dec 08, 2018 8:32 pm

In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact: