301 upgrade

Install and configure FormaLMS and DoceboCE
Graeme59
FormaLms User
Posts: 120
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

301 upgrade

Post by Graeme59 »

Hi,
I have a problem with a live site, after I upgraded it to 3.0.1 and I log in, the url in the address bar is
duplicating.
https://www.dtasc.co.uk/dtasc.co.uk/index.php and showing as not found.
Any Ideas?
Cheers
Graeme
alfa24
Senior Boarder
Posts: 2142
Joined: Fri Nov 24, 2017 8:45 am

Re: 301 upgrade

Post by alfa24 »

execute the following query in the db:

Code: Select all

select * from core_settings where param_name = "url";
and report back here with the result.
Per supporto GRATUITO contattatemi in privato qui
g.nucifora
Newbie
Posts: 3
Joined: Fri Dec 17, 2021 3:49 pm

Re: 301 upgrade

Post by g.nucifora »

In you url there is an incorrect value, in Forma 3.0.1, Forma calculate dinamically the correct url. So you can launch directly this query :

UPDATE `core_setting` SET `param_value` = '' WHERE `param_name` = 'url';

In future releases, this parameter will likely be removed.

Thanks
Giuseppe
Graeme59
FormaLms User
Posts: 120
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: 301 upgrade

Post by Graeme59 »

Hi Giuseppe,
I am not sure how to do this
Cheers
Graeme
Graeme59
FormaLms User
Posts: 120
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: 301 upgrade

Post by Graeme59 »

Hi Giuseppe,
I did it, it worked
Thank you all for your help
Cheers
Graeme
g.nucifora
Newbie
Posts: 3
Joined: Fri Dec 17, 2021 3:49 pm

Re: 301 upgrade

Post by g.nucifora »

You're welcome ;)
Graeme59
FormaLms User
Posts: 120
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: 301 upgrade

Post by Graeme59 »

Hi Giuseppe,
On a separate question, on the 3.0.1 do we no longer use the multiportal template allocation field?

eg www.lv.dtasc.co.uk,lake.template

I have added the url, template & node on Settings/Advanced but they all show the default login page.
Cheers
Graeme
User avatar
max
FormaLms Guru
Posts: 2759
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: 301 upgrade

Post by max »

Hi, sure we use them, maybe something wrong in your configuration or just your cache?
Please note that the template structure has changed, you might need to re-create your custom templates with Templedit and reassign them to the nodes and to the URL's
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
Graeme59
FormaLms User
Posts: 120
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: 301 upgrade

Post by Graeme59 »

Hi Max,
I've created a new template 'Test1' via Templedit and allocated it in advanced settings to a
domain (https://standard.dtasc.co.uk)
a branch (Demonstration) (it should look like the standard template)
As you will see https://standard.dtasc.co.uk looks exactly like https://www.dtasc.co.uk,
I can't see what I am doing wrong.
The only thing I have noticed is in Templedit 2.4.2 the Edit custom css box only contains @import url('templedit.css');
not the same as previous versions which were full of scrambled egg (CSS).
Are there permissions that need changing to save settings?

I have deleted my cache and tried a private browser.
Not sure what else to try
Cheers
Graeme
Attachments
Subdomain.jpg
Subdomain.jpg (6.37 KiB) Viewed 3248 times
Templedit.jpg
Settings_advanced.jpg
Settings_advanced.jpg (6.76 KiB) Viewed 3248 times
alfa24
Senior Boarder
Posts: 2142
Joined: Fri Nov 24, 2017 8:45 am

Re: 301 upgrade

Post by alfa24 »

I'm wondering whether the same urls were working on a previous 2.x version.
If so, I'm afraid the new "dynamic" baseurl is a little bugged.
Otherwise, we should ensure FormaLMS template domain is handling >3 level subdomains (such as xx1.xx2.xx3.co.uk) correctly.
And if it is, probably you have a misconfiguration of vhosts in your web server.
Per supporto GRATUITO contattatemi in privato qui
Post Reply