The Elearning Community • 301 upgrade
Page 1 of 2

301 upgrade

Posted: Fri Dec 17, 2021 1:35 pm
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

Re: 301 upgrade

Posted: Fri Dec 17, 2021 3:29 pm
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.

Re: 301 upgrade

Posted: Fri Dec 17, 2021 3:54 pm
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

Re: 301 upgrade

Posted: Fri Dec 17, 2021 3:59 pm
by Graeme59
Hi Giuseppe,
I am not sure how to do this
Cheers
Graeme

Re: 301 upgrade

Posted: Fri Dec 17, 2021 4:23 pm
by Graeme59
Hi Giuseppe,
I did it, it worked
Thank you all for your help
Cheers
Graeme

Re: 301 upgrade

Posted: Fri Dec 17, 2021 4:26 pm
by g.nucifora
You're welcome ;)

Re: 301 upgrade

Posted: Fri Dec 17, 2021 5:54 pm
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

Re: 301 upgrade

Posted: Fri Dec 17, 2021 7:43 pm
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

Re: 301 upgrade

Posted: Sat Dec 18, 2021 11:36 am
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

Re: 301 upgrade

Posted: Sat Dec 18, 2021 3:24 pm
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.