500 Error - View or mark unread posts
Re: 500 Error
---------------
- 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
-
- Registered User
- Posts: 183
- Joined: Thu Aug 04, 2011 1:54 pm
-
- Registered User
- Posts: 6266
- Joined: Sun Feb 22, 2004 9:34 pm
- Location: NYC
- Name: Alan
-
- Registered User
- Posts: 6266
- Joined: Sun Feb 22, 2004 9:34 pm
- Location: NYC
- Name: Alan
Re: 500 Error
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:
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
-
- Registered User
- Posts: 6266
- Joined: Sun Feb 22, 2004 9:34 pm
- Location: NYC
- Name: Alan
Re: 500 Error
---------------
-
- Registered User
- Posts: 183
- Joined: Thu Aug 04, 2011 1:54 pm