Mamblog Error

15 years 2 months ago #85885 by shapes
Replied by shapes on topic Re:Mamblog Error
Hello,

I did all the modifications written here,
it worked fine, I can now access Mamblog information in my joomla admin (Joomla 1.5.7)...

But I still have a problem, trying to access the Mamblog configuration in my Joomla admin.
I get error :

Warning: Missing argument 1 for showConfig(), called in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 59 and defined in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 72

Warning: Missing argument 2 for showConfig(), called in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 59 and defined in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 72

Warning: Missing argument 3 for showConfig(), called in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 59 and defined in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 72

Warning: Missing argument 4 for showConfig(), called in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 59 and defined in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 72

Warning: Missing argument 5 for showConfig(), called in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 59 and defined in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 72

Warning: Missing argument 6 for showConfig(), called in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 59 and defined in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 72

Avertissement...

Votre fichier de configuration est
Vous devez le chmoder à 766 afin qu'il puisse être mis à jour.


Fatal error: Call to a member function showConfig() on a non-object in /web/sites/vhbu3/0/204/105664/public/www/administrator/components/com_mamblog/admin.mamblog.php on line 182


I don't understand, because the "configuration.php" files in "components/com_mamblog" and in "administratorcomponents/com_mamblog" are chmodded to 766

Could anybodu help me please, I'm getting crazy on making this mamblog work.
Best regards
David

Please Log in to join the conversation.

15 years 2 months ago #87981 by cgijoe
Replied by cgijoe on topic Re:Mamblog Error
I am getting the exact same error - however I am not able to access Mambolog.. Does anyone have a solution for this ?

Post edited by: cgijoe, at: 2009/02/07 18:09

Please Log in to join the conversation.

15 years 2 months ago #88086 by revaboogy
Replied by revaboogy on topic Re:Mamblog Error
rholzler wrote:

The file you are looking for is:

/components/com_mamblog/configuration.php

However, the problem is most likely not the CHMOD.

I have looked at the source code for this software and found that is uses the GLOBAL function which is disabled on many web servers. You can try turning on the register_globals PHP option, but it does create a security issue.

I was able to bypass this problem by editing

administrator/components/com_mamblog/admin.mamblog.php
Lines 69 & 70

function showConfig($database, $mosConfig_absolute_path, $option, $cfgfile, $cfg_mamblog, $blogadmin) {
// global $database, $mosConfig_absolute_path, $option, $cfgfile, $cfg_mamblog, $blogadmin;


This resulted in another error:

Fatal error: Call to a member function showAdminPages() on a non-object in /home/.../administrator/components/com_mamblog/admin.mamblog.php on line 253


If I find a fix for this, I wil post it.

Post edited by: rholzler, at: 2008/09/09 19:23


I was able to get the other code you gave to work (the admin displays now) but this code gives me this error

"You need to chmod this to 766 in order for the config to be updated."

I changed:

function showConfig() {
global $database, $mosConfig_absolute_path, $option, $cfgfile, $cfg_mamblog, $blogadmin;

Into:
function showConfig($database, $mosConfig_absolute_path, $option, $cfgfile, $cfg_mamblog, $blogadmin) {
// global $database, $mosConfig_absolute_path, $option, $cfgfile, $cfg_mamblog, $blogadmin;

did I do something wrong???:sick:

Please Log in to join the conversation.

15 years 2 months ago #88087 by revaboogy
Replied by revaboogy on topic Re:Mamblog Error
zacharyyoung wrote:

Okay, on my site, I installed Mamblog. I got the most part working, but I can;t post a blog entry. It says that I must login, but I'm already logged in. What should I do?


I'm getting the same problem

Please Log in to join the conversation.

14 years 7 months ago #111079 by amitray
Replied by amitray on topic Re:Mamblog Error
Thanks a lot snakes for your advice on mamblog problem

Please Log in to join the conversation.

14 years 5 months ago #116875 by wicak83
Replied by wicak83 on topic Re:Mamblog Error
that's works for me too ..
what an awsome snakes!! :evil: :evil:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.816 seconds

Facebook Twitter LinkedIn