Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Fatal error: Call to undefined method Menu::AddTab()
I just started using Vanilla. Well, I actually have not started yet. I can run the setup, but when I try to access to application for the first time I get the following error:
Fatal error: Call to undefined method Menu::AddTab() in /home/breese/majordojo/web/htdocs/vanilla/appg/init_vanilla.php on line 79Any ideas? I am running Apache 1.3.x, PHP 5.1 and MySQL 4.1.x. Could this be a PHP compatibility issue? And if so, how might I solve it?
0
This discussion has been closed.
Comments
You are signed in
* Click here to continue to the discussions
* Click here to continue to the categories
However, clicking on either of these links yields the same error as before:
Fatal error: Call to undefined method Menu::AddTab() in /home/breese/majordojo/web/htdocs/vanilla/appg/init_vanilla.php on line 79
phpinfo() yields the following information:
http://www.majordojo.com/vanilla/info.php
I am stumped. I am sure this is an environment configuration issue - I have a hard time believing that I have uncovered a bug given how many people have got this to work just fine.
I won't leave it there forever, as I tend not to like advertising the info to the world, but for the time being it should be fine.
Out of curiousity - is there anything anyone sees wrong with how I did this:
> cd tmp
> wget http://.../Vanilla-1.zip
> unzip Vanilla-1.zip
> cp -a Vanilla-1/* /home/www/htdocs/vanilla/
> cd /home/www/htdocs/vanilla
> sudo chmod 777 ./conf
> sudo chmod --recursive 755 ./extensions
> sudo chmod --recursive 755 ./languages
> sudo chmod --recursive 755 ./setup
> sudo chmod --recursive 755 ./themes
> mysqladmin create -u root -p vanilla
> // insert magic to create user and assign permissions to vanilla database, etc.
Load up:
http://www.majordojo.com/vanilla/
Which redirects me to setup, which I then go through. Then I get the error. Do these steps look right?
'./configure' '--enable-track-vars' '--enable-force-cgi-redirect' '--with-getext' '--with-mysql' '--enable-cli' '--with-apxs=/usr/local/apache/bin/apxs' '--with-zlib' '--with-pear'
And here is how I configured Apache (1.3.29):
./configure \
"--with-layout=Apache" \
"--prefix=/usr/local/apache" \
"--enable-shared=max" \
"--disable-rule=EAPI" \
"--enable-module=ssl"
Could these be possible culprits?
I want to upgrade to 2.0 but that is a little more involved so it will have to wait. But Apache shouldn't matter should it?
./configure --with-apxs=/usr/local/apache/bin/apxs --with-zlib --with-pear --enable-cli --with-mysql
I installed the PHP .so and still, same freaking error. I am running out of ideas now. I have tried to trace the code, but I still haven't figured anything out. Sleuthing continues. But please, if anyone has any ideas, please share them. Anything.
php_value auto_prepend_file "/home/breese/majordojo/web/code/global.php"
Here are the files contents:
<?
require_once("utils.inc");
$MD_DBHOST = "xxxxxx";
$MD_DBUSER = "xxxxxxxxxx";
$MD_DBPASS = "xxxxxxx";
$MD_DB = "xxxxxxx";
$UPLOADED_FILE_PATH = "/home/breese/majordojo/uploaded_files";
#function returnto_url() {
# global $SCRIPT_NAME, $QUERY_STRING;
# if ($QUERY_STRING)
# return rawurlencode($SCRIPT_NAME . "?" . $QUERY_STRING);
# else
# return rawurlencode($SCRIPT_NAME);
#}
#function pull_down($list,$selected="",$two_dim=1) {
# while (list($key,$val) = each($list)) {
# echo "<option".($two_dim ? " value=\"$key\"" : "");
# if ((!$two_dim && $selected == $val) || ($two_dim && $selected == $key)) {
# echo " selected";
# }
# echo ">$val";
# }
#}
?>
I have no idea what could have been the root cause of this... utils.inc may not have been found, or one of my other apps that has a utils class could have had something in it that caused some kind of error? I have no idea. I am just happy to have Vanilla 1 working.