Dashboard link is not updated after migration

Dashboard link is not updated after migration

by T K -
Number of replies: 11

I have just migrated my moodle (2.5) site to centos 7.4

The moodle link is https://my-server-ip/abc

FOr login, the link refers to https://my-server-ip/abc/dashboard/login.php --> this link works fine when I access it from the login hyperlink.


However if I try to access the dashboard from the navigation block as picture below, it points to the old link. 


navigation block

How do I update this dashboard link on the navigation block?

Average of ratings: -
In reply to T K

Re: Dashboard link is not updated after migration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There's no such link in *core* Moodle so that link looks like a customisation on your site of some sort. 

In reply to Howard Miller

Re: Dashboard link is not updated after migration

by T K -

Would you have any idea where this customisation is usually done?

In reply to T K

Re: Dashboard link is not updated after migration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

There's no "official" way to add items to the navigation menu so it's very hard to say. As the link would seem to be hard coded, I would 'grep' the code for the url string (or part of it). 

In reply to Howard Miller

Re: Dashboard link is not updated after migration

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

There's no "official" way to add items to the navigation menu [...]

Sure there is, plugins can implement the extend_navigation() callback as documented here wink

Although as dashboard isn't a Moodle plugin point, the original poster is probably dealing with a core code hack.

In reply to Paul Holden

Re: Dashboard link is not updated after migration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Sorry, I read that as the flat-navigation. It isn't.

It's perfectly possible to add top level nodes (and call them what you like). I've done it, so it can't be that hard. 

I think it being called 'Dashboard' is a distraction. I don't think we're talking about the same dashboard big grin

In reply to Paul Holden

Re: Dashboard link is not updated after migration

by T K -
Another problem I am facing here is the my home link at my-ip/moodle/my link is not working


https://my-ip/moodle/my/indexsys.php is givng http 500 error presistently

In reply to T K

Re: Dashboard link is not updated after migration

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You need to check your web server's error log to see what's causing the Error 500. Turn up your Debugging if you haven't done already. 

In reply to Howard Miller

Re: Dashboard link is not updated after migration

by T K -

debugging did not help


However, you know what, i solved this problem by running:

chcon -Rv -t httpd_sys_rw_content_t moodledata

chcon -Rv -t httpd_sys_rw_content_t /var/www/html/moodle


SO this dashboard link and a few others work better now



In reply to Howard Miller

Re: Dashboard link is not updated after migration

by T K -

ive done the grep of files, cant seem to find any lead

In reply to T K

Re: Dashboard link is not updated after migration

by Deependra Singh -

I think you are using a custom dasboard.

Some ways you can solve it.

You can find the link on config.php or theme level also (if you are using customised dashboard).

You can use Moodle tool on url  (dir/admin/tool/replace) to replace the older url to new  url on your system.


Thanks,


In reply to Deependra Singh

Re: Dashboard link is not updated after migration

by T K -

i cant seem to run the /admin/tool/replace/index.php either, there are too many problems here