RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.11k stars 892 forks source link

An error occured, please refresh the page and try again #370

Closed NalleBerg closed 9 years ago

NalleBerg commented 9 years ago

At login I get "An error occured, please refresh the page and try again" and I can't get any further. I installed by downloading the .zip-file. Here is my log entry in my apache-log I get every time I try to log in:


[Fri Nov 07 14:58:46 2014] [error] [client 81.167.156.232] PHP Fatal error: Class 'MailSo\Log\Enumerations\Type' not found in /var/www/webmail/rainloop/v/1.6.11.191/app/src/RainLoop/Providers/ChangePassword.php on line 54, referer: http://webmail.nalle.no/


I am running it on another server. Had some problems installing that too, but after tweaking just a little bit in some setting files I got rid of the errors, and that one is working as it' supposed now.

Liking RainLoop sooooo much better than Squirrelmail I' am trying to switch, but I ran into this hurdle that I think I need some help to solve.

NalleBerg commented 9 years ago

I solved it. Googling it, I found that i could change line 54 in /var/www/webmail/rainloop/v/1.6.11.191/app/src/RainLoop/Providers/ChangePassword.php from:


public function ChangePassword(\RainLoop\Account $oAccount, $sPrevPassword, $sNewPassword)


to:


public function Type(\RainLoop\Account $oAccount, $sPrevPassword, $sNewPassword)


RainLoop commented 9 years ago

This is the wrong fix. And this is a very strange bug. Very often, these errors occur when you have installed php accelerator (eAccelerator or something like that).

NalleBerg commented 9 years ago

Maybe it's the wrong fix, but it works! This is where i found the fix: http://xmodulo.com/rainloop-webmail-ubuntu-server.html.

I do not have any PHP accelerator, as far as I know....

Here is my PHP-info, if that helps...

./nalle.

NalleBerg commented 9 years ago

Heh, I'd like to get the right fix though...

./nalle.

RainLoop commented 9 years ago

There is something wrong with your PHP. In fact, it is outdated. I think that PHP update will solve the problem.

NalleBerg commented 9 years ago

Ah, yeah,you know how it is. That won't happen till automatic updates stops working on my trusty old server. Anyhow, my installation is working as it's supposed to, even with the wrong fix, so I think I'll leave it at that.

Thank you for your interest and help, anyway.

./nalle.

RainLoop commented 9 years ago

Ok, It's your decision. But do not try to install a plugin for password change.

NalleBerg commented 9 years ago

I won't! I do not have many enough users to need that. They call me if they want a new password. But I have noted that i really should upgrade my servers OS to the latest LTS (I think that would be 14.04LTS).

I'll do it as soon as I can.

./nalle.

NalleBerg commented 9 years ago

I must say, however that you've made a h€ll of a good program! Loving it!

./nalle.

NalleBerg commented 9 years ago

Oh, and if you need help on the Norwegian translation (that is there but quite poor at present time), I will help you, if I could just get a template with the English texts or something.

./nalle.

NalleBerg commented 9 years ago

Hm, I must have tried an earlier version - now the Norwegian is up to par. Sorry about that.

./nalle.

XavierTolza commented 7 years ago

Hello! First I want to say your project looks amazing and I hope i'll be able to make it work and test it :smiley: I have the same problem and i've been looking around for a while on internet now, I haven't seen a solution that worked for me, it looks like it has been adresses several times... Do you now have more knowledge on this issue now?

I'm using PHP7 with ubuntu server 16.04 and nginx server. I followed this tutorial. Here is my phpinfo, and my nginx conf file:

server {
   listen 8083;
   server_name planza.ddns.net;

   root /var/www/rainloop;
   index index.php index.html;

   access_log /var/log/nginx/rainloop_access.log;
   error_log /var/log/nginx/rainloop_error.log;

   location / {
       try_files $uri $uri/ /index.php?$query_string;
   }

   location ~ ^/(.+\.php)$ {
        try_files $uri =404;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/fastcgi_params;
   }

   location ^~ /data {
       deny all;
   }
}

Hope you'll be able to help!

Luskan777 commented 3 years ago

Hello ,

I had the same problem, and the problem was due to a plugin I had installed, the fix was the removal of this plugin, hope it helps