Warning: The author of this contribution does not provide support for it anymore.

View or mark unread posts

500 Error - View or mark unread posts

Re: 500 Error

by rxB975D432pV » Sat Mar 31, 2012 3:47 pm

---------------
Attachments
unread_posts_0_0_6.zip
(28.47 KiB) Downloaded 144 times
Last edited by rxB975D432pV on Sun May 17, 2015 1:55 pm
rxB975D432pV
Registered User
Posts: 183
Joined: Thu Aug 04, 2011 1:54 pm

Re: 500 Error

by asinshesq » Sat Mar 31, 2012 4:05 pm

[deleted]
Last edited by asinshesq on Sat Mar 31, 2012 7:15 pm
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: 500 Error

by asinshesq » Sat Mar 31, 2012 6:24 pm

[deleted]
Last edited by asinshesq on Sat Mar 31, 2012 7:14 pm
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: 500 Error

by asinshesq » Sat Mar 31, 2012 7:13 pm

TheMathematics wrote:here in this forum (With some debug) Error, can you see the mod:
http://ngkclan.ng.funpic.de/index.php

Here is the mod:
unread_posts_0_0_6.zip


There are no conflicts.

Yes there are conflicts ;)

I just took a look at that other mod, and it defines a function with the exact same name as one of the functions in this mod:
function check_unread_posts()

You can't define a function with the same name as another function without an error. So if you want both mods to work, you should make the following changes to this mod:

Code: Select all

OPEN
includes/functions.php

FIND
   $s_exists_unreads = check_unread_posts();

REPLACE WITH
   $s_exists_unreads = check_unread_posts1();

OPEN
includes/functions_view_or_mark_unread_posts.php

FIND
function check_unread_posts()

REPLACE WITH
function check_unread_posts1()


And of course you should no longer comment out the require line that you got rid of or commented out earlier.

That should do the trick ;)
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: 500 Error

by rxB975D432pV » Sun Apr 01, 2012 9:55 am

---------------
rxB975D432pV
Registered User
Posts: 183
Joined: Thu Aug 04, 2011 1:54 pm