Blank Page when opening URL with parameter

Blank Page when opening URL with parameter

by Alief Arlingga -
Number of replies: 3

After success installing moodle 2.9 on my Debian 8.1 server, I login using admin in my moodle web.
But when I opened some page with URL links parameters, it will end with blank page such as :
- /admin/settings.php?section=debugging
- /admin/settings.php?section=themesettings
http://192.168.11.231/admin/settings.php?section=managemodulescommon

I enable debug on moodle in config.php and just return with : 
"Fatal error: Cannot redeclare class lesson in /var/www/moodle/mod/lesson/locallib.php on line 983"

Even I use anothers web server(Apache, nginx, lighttpd) it still returns with same error.

Any leads or informations would be a great help to me smile.
Thanks

Average of ratings: -
In reply to Alief Arlingga

Re: Blank Page when opening URL with parameter

by kamesh veerachamy -

Hi Alief Arlingga ,

are you installed any local plugin or your new theme.

please check the class lesson is installed any theme settings or local plugin.

because this type of error while we create already exist class name.

so please check the "class lesson" how many times appeared.

Please use Adobe dream weaver or eclipse any one advanced editor.



In reply to Alief Arlingga

Re: Blank Page when opening URL with parameter

by Craig Szymanski -

I just did an upgrade to the latest stable 2.9.1 from 2.6.* and I am seeing the same errors with blank pages in many of the pages under /admin

Fatal error: Cannot redeclare class lesson in /pathto/moodle/mod/lesson/locallib.php on line 983


In reply to Alief Arlingga

Re: Blank Page when opening URL with parameter

by Alief Arlingga -

Guys, sorry for the very very late reply from me. I didn't watch my email properly.
I solve the problem myself by reinstalling everything including the OS.
Actually after my problem I tried to setup moodle on Linux Mint 17, and it worked like a magic.
So then I reinstall my Debian with the same version, and Nginx with the same version.
Here's my configuration for moodle in Nginx : 

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/moodle;
        rewrite ^/moodle/(.*.php)(/)(.*)$ /moodle/$1?file=/$3 last;
        index index.php index.html index.htm index.nginx-debian.html;
        server_name localhost;

        location / {
                try_files $uri $uri/ /index.php?q=$request_uri;
        }

        location ~ [^/]\.php(/|$) {
                fastcgi_split_path_info  ^(.+\.php)(/.+)$;
                fastcgi_index            index.php;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                include                  fastcgi_params;
                fastcgi_param   PATH_INFO       $fastcgi_path_info;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}

and for php.ini in PHP5-FPM i set cgi.fix_pathinfo=0.

And it worked too.
Anyway thanks everyone,

Craig Szymanski and kamesh veerachamy