| 
Welcome, Guest

Mamblog Error
(1 viewing) (1) Guest

TOPIC: Mamblog Error

Mamblog Error 3 years, 11 months ago #65587

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?

Re:Mamblog Error 3 years, 11 months ago #66315

  • joeofall
  • joeofall
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 4
  • Karma: -
same here !! i using 1.5.2 joomla with 1.1 cb
mamblog 1.0

please help thank you

Re:Mamblog Error 3 years, 11 months ago #66481

  • khansen46
  • khansen46
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
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.

Re:Mamblog Error 3 years, 8 months ago #73787

  • rholzler
  • rholzler
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
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

Re:Mamblog Error 3 years, 6 months ago #79790

  • snakes
  • snakes
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: 1
"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

Re:Mamblog Error 3 years, 4 months ago #84149

I don't know that much about code but this worked for me, snakes you are super awesome!
Time to create page: 0.68 seconds