Can anyone give me a hand with this? I upgraded from 1.2, which was solid as a rock. Since upgrading, all sorts of little things have popped up. The real showstopper is this one. I get this message on my main page and can't login or do anything. If I delete my /mods/groups folder, I can get in. So I uploaded a fresh copy. Got the error again. Uploaded the 'groups' folder from 1.2. that also gave me ths same error. I ran a 'repair' on the database. that did nothing. I am now out of ideas. I am far from an expert on this sort of thing. In the past I was pretty lucky. Everything just worked. Any assistance would be appreciated.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Here is the function where that error is thrown:
public function getFilenameOnFilestore(ElggFile $file)
{
$owner = $file->getOwnerEntity();
if (!$owner)
$owner = get_loggedin_user();
if ((!$owner) || (!$owner->username)) throw new InvalidParameterException(elgg_echo('InvalidParameterException:MissingOwner'));
That is in engine/lib/filestore.php. You should be able to throw an error_log("filename is " . $file->getFilename()); in there at the top of the function to figure out what file is giving you trouble.
Did you ever delete a user?
One of my students tells me that she was in the process of creating a group when her computer froze. When she rebooted, she saw the error.
Thanks fo the quick response. I don't really understand your suggestion:
"throw an error_log("filename is " . $file->getFilename()); in there at the top of the function to figure out what file is giving you trouble."
I appreciate you taking the time. I may need a little hand-holding though, if you don't mind. This is new stuff for me. I don't host the site on my own server so I am doing everything through ftp and cpanel.
Her computer freezing should make no difference to what was running on the server. Have you looked through your error log to get additional information on the error?
Not yet. Trying to figure out how to do that right now.
Use a text editor to open the filestore.php file
Add the line:
error_log("filename is " . $file->getFilename());
just before $owner = $file->getOwnerEntity();
Load up the site with the groups mod turned on and the exception should be thrown. Check your server error log and that will have information about the exception and the name of the file. Actually add:
error_log("file guid is " . $file->guid);
while you are at it. From there we can check your database.
Our messages are crossing a little bit. If your server is running Linux, the log should be something like
/var/log/httpd/error.log or /var/log/apache2/error.log
None of the errors you posted from the log correspond to the one you first posted on. Can you reproduce the error and get the log from it?
I added the line:
error_log("filename is " . $file->getFilename());
just before $owner = $file->getOwnerEntity();
(but still inside of the same set of {brackets}
Don't know what to do next. What do you mean 'load up the site'? It is there and it's running. And I can't login so I can't change any of the tools settings. I assume 'groups' is turned on but can't get in to turn anything on or off. login page is not available.
When I go in through my ftp client and delete the 'groups' folder, I can get in and see a few things but of course wouldn't be able to turn it on then.
I'm told it's a linux server. The site is hosted for me. It is in the States somewhere (8hosting) and I am in China accessing it. So the only access I have is through the cpanel interface. I don't think I can get at those files in their server.
Thanks for your patience.
Reproduce the error? I am unable to access the site.
http://www.teacherben.com/elgg
at all. The problem does not come and go. I just can't get in at all. I haven't deleted a user for months.
- Previous
- 1
- 2
- 3
- Next
You must log in to post replies.