Mensagens colocadas por Visvanath Ratnaweera

Foto de Particularly helpful Moodlers Foto de Translators
I was claiming that Moodle 5.2 "runs" in my environment. It is only partly true. I can upgrade 5.1 to 5.2 but can not install 5.2 fresh. I get with full debugging:

Warning: Undefined property: stdClass::$fullname in /var/www/html/www04/public/lib/classes/output/core_renderer.php on line 2636
Exception - has_capability(): Argument #2 ($context) must be of type context, null given, called in [dirroot]/lib/classes/route/controller/page_not_found_controller.php on line 129
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 432 of /public/lib/accesslib.php: TypeError thrown
  • line 129 of /public/lib/classes/route/controller/page_not_found_controller.php: call to has_capability()
  • line 87 of /public/lib/classes/route/controller/page_not_found_controller.php: call to core\route\controller\page_not_found_controller->get_message_form()
  • line 46 of /public/lib/classes/router/error_renderer.php: call to core\route\controller\page_not_found_controller->page_not_found_handler()
  • line 300 of /vendor/slim/slim/Slim/Handlers/ErrorHandler.php: call to core\router\error_renderer->__invoke()
  • line 135 of /vendor/slim/slim/Slim/Handlers/ErrorHandler.php: call to Slim\Handlers\ErrorHandler->respond()
  • line 91 of /vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php: call to Slim\Handlers\ErrorHandler->__invoke()
  • line 78 of /vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php: call to Slim\Middleware\ErrorMiddleware->handleException()
  • line 121 of /vendor/slim/slim/Slim/MiddlewareDispatcher.php: call to Slim\Middleware\ErrorMiddleware->process()
  • line 65 of /vendor/slim/slim/Slim/MiddlewareDispatcher.php: call to Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/www04/vendor/slim/slim/Slim/MiddlewareDispatcher.php:108$34e->handle()
  • line 199 of /vendor/slim/slim/Slim/App.php: call to Slim\MiddlewareDispatcher->handle()
  • line 183 of /vendor/slim/slim/Slim/App.php: call to Slim\App->handle()
  • line 337 of /public/lib/classes/router.php: call to Slim\App->run()
  • line 53 of /public/r.php: call to core\router->serve()
Exception - Call to a member function get_navigation_overflow_state() on null
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 580 of /public/lib/classes/navigation/views/secondary.php: Error thrown
  • line 69 of /public/theme/boost/layout/drawers.php: call to core\navigation\views\secondary->get_overflow_menu_data()
  • line 961 of /public/lib/classes/output/core_renderer.php: call to include()
  • line 877 of /public/lib/classes/output/core_renderer.php: call to core\output\core_renderer->render_page_layout()
  • line 2639 of /public/lib/classes/output/core_renderer.php: call to core\output\core_renderer->header()
  • line 0 of : call to core\output\core_renderer->fatal_error()
  • line 109 of /public/lib/classes/output/bootstrap_renderer.php: call to call_user_func_array()
  • line 181 of /public/lib/setuplib.php: call to core\output\bootstrap_renderer->__call()
  • line 0 of : call to default_exception_handler()

Environment: Debian GNU/Linux 13 (trixie), 11.8.6-MariaDB-0+deb13u1, PHP 8.3.30 PHP-FPM, Nginx. Site conf is below:
 
server {                                                                          
                                                                                  
      server_name www04.EXAMPLE.com;                                          
                                                                                  
        root /var/www/html/www04/public;                                          
        index index.html index.php;                                               
                                                                                  
        location / {                                                              
              try_files $uri /r.php;                                                                                                                             
        }
                                                                        
location ~ \.php(/|$) { 
fastcgi_split_path_info ^(.+\.php)(/.*)$;
set $path_info $fastcgi_path_info;
try_files $fastcgi_script_name $fastcgi_script_name/;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
}

Foto de Particularly helpful Moodlers Foto de Translators
Ken

You'll understand that after 122 posts the readers don't know who is trying what and who's retired.
 
Now to come back to your case, could you refresh our memory?
- Web server: Apache or Nginx?

- PHP: PHP-FPM or PHP-FastCGI?

- Linux distribution: Debian or derivatives (incl. Ubuntu Linux) or RedHat/Fedora (AlmaLinux)?

I assume, you want an "all green" result, incl. composer and router, and Moodle 5.2 as the subject line says?
 
No false hopes, not promising _any_ combination - I am familiar with only a few.
Foto de Particularly helpful Moodlers Foto de Translators
Rick

You wrote:
> However, maybe you could edit that web page if you can make it more precise.

I thought, I was clear, pl (re)read:
>> I don't touch that document. Leaving the information here as a pointer to anybody who maintains that document.
Foto de Particularly helpful Moodlers Foto de Translators
To decide thread hijacking or not is the job of the moderator. The authorities of this forum has set it on auto-pilot, I don't think it knows the notion of thread hijacking, not to mention the various "related" topics. So, anything goes.

Rick, if any VPS (means root shell) convinces you, then the chances are higher that you'll find the solution. In fact Rudraksh just had success. Hope, he'll publish his path (unless he confirms that he just followed the Moodle Docs).
Foto de Particularly helpful Moodlers Foto de Translators
I thought in the elementary school an active and engaged teacher is the best "agent" to keep the pupils active and engaged.

I know, it is not what you asked, but couldn't resist stating the obvious.