Mamblog Error

15 years 10 months ago #65587 by zacharyyoung
Mamblog Error was created by zacharyyoung
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?

Please Log in to join the conversation.

15 years 10 months ago #66315 by joeofall
Replied by joeofall on topic Re:Mamblog Error
same here !! i using 1.5.2 joomla with 1.1 cb
mamblog 1.0

please help thank you

Please Log in to join the conversation.

15 years 9 months ago #66481 by khansen46
Replied by khansen46 on topic Re:Mamblog Error
Same here. Joomla 1.5.3 CB 1.1
When I try to go into the Mamblog config, I get this:
"Your config file is
You need to chmod this to 766 in order for the config to be updated."
I have found numerous references to this error, but not a single response to help with it. If anyone has any ideas, it would sure be appreciated.

Please Log in to join the conversation.

15 years 7 months ago #73787 by rholzler
Replied by rholzler on topic Re:Mamblog Error
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

Robert Holzler
Developer
ZombieMenace.com

Please Log in to join the conversation.

15 years 5 months ago #79790 by snakes
Replied by snakes on topic Re:Mamblog Error
"Call to a member function showAdminPages()"
edit adminis trator/components/com_mamblog/admin.mamblog.php
and you see that the function showAdminPages() is calling a global variable $blogamin.

But in Joomla 1.5 all global variables need to be declared as global outside of all functions!

So look at line 39:
$blogadmin = new HTML_mamblog_admin();

Just add before that line:
global $blogadmin;

also at around line 35:
$cfgfile = "$mosConfig_absolute_path/components/$option/configuration.php";

Add these before:
global $cfgfile;
global $cfg_mambot;
global $option;

Post edited by: snakes, at: 2008/11/16 00:03
The following user(s) said Thank You: rosean

Please Log in to join the conversation.

15 years 3 months ago #84149 by getbackwards
Replied by getbackwards on topic Re:Mamblog Error
I don't know that much about code but this worked for me, snakes you are super awesome! :lol:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.220 seconds

Facebook Twitter LinkedIn