Forums | Mahara Community
Some small Problems...
18 June 2009, 12:04 AM
i got some small problems:
Some users can add external rss-feeds to their profiles, made by wordpress, some not. The wordpress-urls for feeds look like this http://domain.com/feed
Mahara is running in a subfolder on the root a wordpresblog is installed. From this one i can add the feedadress in the wp-format. But: The clickable link above the single feedentries shows the url+ the serverpath to the libs directory and looks like this: http://domain.com/var/www/web34/html/pro/lib/
The second Problem bleongs perhaps to that. I got home from work, touched nothing on the mahara site and got just a blank screen. I looked at the server, and the whole php-files in the lib-folder were gone. I really cant explain that to myself. I uploaded the again, and got only crpytical signs on the every mahara url i opened. Stuff like this questions marks in boxes ect...
So i upgraded the installation from 1.3 to 1.4 and everythin was normal again.
I'd really enjoy about your hints to this strange issues.
20 June 2009, 11:55 AM
Very strange! A few days later all i get is a blank screen and i didnt do anything!!
In the Lib-Folder all files are missing just the folders are present....
Please give me an advice!
20 June 2009, 11:25 PM
I've checked all the serverlogs of the last days now, and i can't find any details for a hack or something like this.
i feel like the files disappeared the two times after setting p the cronjob?!
21 June 2009, 6:31 PM
Regarding the RSS - that clickable link problem sounds like something is badly misconfigured. Are you able to post the config.php (without database information) for the Mahara installation where that is happening?
If you have some feeds that are always not working, post the links to them so we can investigate.
The second problem is weird - I have no good explanation for that, Mahara doesn't go about removing its own files. But I wonder if the configuration has been misconfigured, like someone has tried to set the wwwroot or docroot configuration to something strange and that is causing issues?
22 June 2009, 1:29 AM
thanks for your support! Here's the config.php:
* Mahara: Electronic portfolio, weblog, resume builder and social networking
* Copyright (C) 2006-2008 Catalyst IT Ltd (http://www.catalyst.net.nz)
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* @package mahara
* @subpackage core
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz
// MAHARA CONFIGURATION FILE
// Copy this file from config-dist.php to config.php, and change the values in
// it to suit your environment.
// Information about this file is available on the Mahara wiki:
$cfg = new StdClass;
// database connection details
// valid values for dbtype are 'postgres8' and 'mysql5'
$cfg->dbtype = 'mysql5';
$cfg->dbhost = 'localhost';
$cfg->dbport = null;
$cfg->dbname = 'xxx;
$cfg->dbuser = 'xxx';
$cfg->dbpass = 'xxx';
// Note: database prefix is NOT required, you don't need to set one except if
// you're installing Mahara into a database being shared with other
// applications (this happens most often on shared hosting)
$cfg->dbprefix = 'ma_';
// wwwroot - the web-visible path to your Mahara installation
// Normally, this is automatically detected - if it doesn't work for you
// then try specifying it here
//$cfg->wwwroot = 'http://myhost.com/mahara/';
// dataroot - uploaded files are stored here
// This is a ABSOLUTE FILESYSTEM PATH. This is NOT a URL.
// For example, valid paths are:
// * /home/user/maharadata
// * /var/lib/mahara
// * c:\maharadata
// INVALID paths:
// * http://yoursite/files
// * ~/files
// * ../data
// This path must be writable by the webserver and outside document root (the
// place where the Mahara files like index.php have been installed).
// Mahara will NOT RUN if this is inside your document root, because
// this is a big security hole.
$cfg->dataroot = '/var/www/web34/html/m';
$cfg->log_environ_targets = 0;
No Idea, what can be wrong with that?
22 June 2009, 2:09 AMWell that dataroot path looks suspiciously like your dataroot is publicly available for anyone to read, which isn't a good idea. Though that in itself won't be causing the problem. I can't see anything too much amiss in there - could you please access the database and tell me what the output of SELECT value FROM ma_config WHERE field = 'wwwroot'; says?
23 June 2009, 6:45 PMHm, well that all seems correct and so is your config file, so I'm afraid I don't have many more ideas.. sorry! I hope the problems stay away