admin -> posts and topics -> fatal error

Started by Serellyn, November 06, 2010, 07:44:53 PM

Previous topic - Next topic

Serellyn

Hey guys,

I've got a real situation on my freshly installed 2.0 RC4 board.
Whenever I try to access Forum -> Posts and topics... in the admin panel, I get the following error:
Fatal error: Call to undefined function M() in .../Sources/ManagePosts.php on line 108

anyone had the same problem and fixed it?

Norv

Hello,

Please open your ManagePosts.php file from the Sources folder, in a code editor (preferably use a lightweight code editor like Notepad++ on windows systems), and:
Code (find) Select

   // Call the right function for this sub-acton.
   $subActions[$_REQUEST['sa']][0]();

Code (replace) Select

   // Call the right function for this sub-action.
   $subActions[$_REQUEST['sa']]();


Alternatively, if you prefer to not edit your file manually, you could download again a small update package from the Downloads page, de-archive it on your computer, and upload from it the file Sources/ManagePosts.php replacing your forum's Sources/ManagePosts.php.

This has been a bug in the very early RC4 packages, which should not exist anymore currently.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Serellyn

Thanks, I've edited manually.
I've downloaded the forum software just a few days ago, so you should check if it's the right package on the website that you're offering.

Thanks for the help

Norv

Thank you for the feedback. RC4 was released just a few days ago. :) For a few hours, this problem has existed.

Please, feel free to let us know if there are further issues.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

TexTron

Thanks very much.  I just found I had the same problem yesterday after installing RC4.  I did a search, "ManagePosts", and waaalaa... the fix is posted here.

Yep... I consider this a BIG bug, but all you guys do a great job with the bug spray.

Kudos to the SMF Community!  8)

Norv

You're absolutely right, it is. It shouldn't be in the current package however.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

RoarinRow

Quote from: Norv on November 06, 2010, 08:08:01 PM
Hello,

Please open your ManagePosts.php file from the Sources folder, in a code editor (preferably use a lightweight code editor like Notepad++ on windows systems), and:
Code (find) Select

   // Call the right function for this sub-acton.
   $subActions[$_REQUEST['sa']][0]();

Code (replace) Select

   // Call the right function for this sub-action.
   $subActions[$_REQUEST['sa']]();


Alternatively, if you prefer to not edit your file manually, you could download again a small update package from the Downloads page, de-archive it on your computer, and upload from it the file Sources/ManagePosts.php replacing your forum's Sources/ManagePosts.php.

This has been a bug in the very early RC4 packages, which should not exist anymore currently.

I uploaded a new ManagePosts.php file it has the fix as noted above.  However I am still getting the same error - Fatal error: Call to undefined function M() in /home/mysite/public_html/mysite.com/forum/Sources/ManagePosts.php on line 108

I cleared my cache and I am having this issue.

Is there anything else I can try?  Here is a list of my mods.

1.   AvatarSelect    1.2.1     [ Uninstall ] [ List Files ] [ Delete ]
2.   Search Topic    1.01   [ Install Mod ] [ List Files ] [ Delete ]
3.   SMF Trader System    1.5   [ Install Mod ] [ List Files ] [ Delete ]
4.   Join date in Posts    1.0     [ Uninstall ] [ List Files ] [ Delete ]
5.   Karma Description Mod    2.6.8   [ Install Mod ] [ List Files ] [ Delete ]
6.   Aeva Media    2.10     [ Uninstall ] [ List Files ] [ Delete ]
7.   SMF Arcade    2.5 RC1   [ Install Mod ] [ List Files ] [ Delete ]
8.   NiceTooltips    1.6   [ Install Mod ] [ List Files ] [ Delete ]
9.   Googlebot & Spiders Mod    2.0.2   [ Install Mod ] [ List Files ] [ Delete ]
10.   TinyPortal    1.100   [ List Files ] [ Delete ]
11.   Custom Profile Field Mod    3.16   [ Install Mod ] [ List Files ] [ Delete ]
12.   Country Flags    1.1.2     [ Uninstall ] [ List Files ] [ Delete ]
13.   Gender on Memberlist    1.4   [ Install Mod ] [ List Files ] [ Delete ]
14.   vReportBoard Mod    1.03   [ Install Mod ] [ List Files ] [ Delete ]
15.   Recent Topics On "Recent Posts" Page    1.2     [ Uninstall ] [ List Files ] [ Delete ]
16.   Users Online Today    1.5.6     [ Uninstall ] [ List Files ] [ Delete ]
17.   SMF Staff Page    1.7     [ Uninstall ] [ List Files ] [ Delete ]
18.   TinyPortal    1.102     [ Uninstall ] [ List Files ] [ Delete ]
19.   Location on Posts    1.0     [ Uninstall ] [ List Files ] [ Delete ]
20.   Welcome Topic Mod    2.1     [ Uninstall ] [ List Files ] [ Delete ]
21.   Share This Topic    2.5.1     [ Uninstall ] [ List Files ] [ Delete ]
22.   vMulticolor-Stars Mod    1.00   [ Install Mod ] [ List Files ] [ Delete ]
23.   Country Flags    1.1.1   [ List Files ] [ Delete ]

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Advertisement: