Converting 2.5 template to 3.3
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Enthusiast
- Posts: 100
- Joined: Wed Jun 23, 2010 5:46 pm
- Location: Marseille, France
Converting 2.5 template to 3.3
Hello --
Is there anywhere on the forum which offers a guide to how to upgrade a custom template from 2.5 to 3.3 ?
When upgrading from 1.5 to 2.5, I found plenty of information here about how to upgrade my template to conform to the new standards, and I managed to do this.
However, my current 2.5 compatible template doesn't work on 3.3 and I can't find any information on how to make it comply, apart from two references to the subject, one of which has been deleted ( http://docs.joomla.org/Converting_a_tem ... r_Joomla_3 ) and the other of which is flagged as "incomplete" ( http://docs.joomla.org/J3.x:Converting_ ... n_Template ).
Can anyone help? Many thanks in advance.
Is there anywhere on the forum which offers a guide to how to upgrade a custom template from 2.5 to 3.3 ?
When upgrading from 1.5 to 2.5, I found plenty of information here about how to upgrade my template to conform to the new standards, and I managed to do this.
However, my current 2.5 compatible template doesn't work on 3.3 and I can't find any information on how to make it comply, apart from two references to the subject, one of which has been deleted ( http://docs.joomla.org/Converting_a_tem ... r_Joomla_3 ) and the other of which is flagged as "incomplete" ( http://docs.joomla.org/J3.x:Converting_ ... n_Template ).
Can anyone help? Many thanks in advance.
-
- Joomla! Virtuoso
- Posts: 4025
- Joined: Mon Nov 25, 2013 4:35 pm
- Location: Montreal, Canada
- Contact:
Re: Converting 2.5 template to 3.3
Most 2.5 templates are compatible with Joomla 3. What kind of error are you seeing when you use your Joomla 2.5 template on your Joomla 3 website?
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter
https://twitter.com/itoctopus - Follow us on Twitter
-
- Joomla! Enthusiast
- Posts: 100
- Joined: Wed Jun 23, 2010 5:46 pm
- Location: Marseille, France
Re: Converting 2.5 template to 3.3
I get no error message but nothing else either - just a blank screen. It has to be a template problem because if I switch to Beez3 or Protostar, keeping the same database, it works fine.
-
- Joomla! Virtuoso
- Posts: 4025
- Joined: Mon Nov 25, 2013 4:35 pm
- Location: Montreal, Canada
- Contact:
Re: Converting 2.5 template to 3.3
Change your error reporting to maximum and then post the error back here.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter
https://twitter.com/itoctopus - Follow us on Twitter
-
- Joomla! Enthusiast
- Posts: 100
- Joined: Wed Jun 23, 2010 5:46 pm
- Location: Marseille, France
Re: Converting 2.5 template to 3.3
Hello -- here it is.
Notice: Use of undefined constant DS - assumed 'DS' in /home/sites/marvellous-provence.co.uk/public_html/templates/colorfall/html/modules.php on line 5 Warning: require_once(/home/sites/marvellous-provence.co.uk/public_html/templatesDScolorfall/functions.php): failed to open stream: No such file or directory in /home/sites/marvellous-provence.co.uk/public_html/templates/colorfall/html/modules.php on line 6 Fatal error: require_once(): Failed opening required '/home/sites/marvellous-provence.co.uk/public_html/templatesDScolorfall/functions.php' (include_path='.:/usr/share/pear53:/usr/share/php:/usr/share/ZendFramework') in /home/sites/marvellous-provence.co.uk/public_html/templates/colorfall/html/modules.php on line 6
If it helps, the first few lines of "modules.php" are as follows:-
<?php
defined('_JEXEC') or die('Restricted access');
// Include the template specific functions
require_once(JPATH_THEMES.DS.$app->getTemplate().
'/functions.php');
Notice: Use of undefined constant DS - assumed 'DS' in /home/sites/marvellous-provence.co.uk/public_html/templates/colorfall/html/modules.php on line 5 Warning: require_once(/home/sites/marvellous-provence.co.uk/public_html/templatesDScolorfall/functions.php): failed to open stream: No such file or directory in /home/sites/marvellous-provence.co.uk/public_html/templates/colorfall/html/modules.php on line 6 Fatal error: require_once(): Failed opening required '/home/sites/marvellous-provence.co.uk/public_html/templatesDScolorfall/functions.php' (include_path='.:/usr/share/pear53:/usr/share/php:/usr/share/ZendFramework') in /home/sites/marvellous-provence.co.uk/public_html/templates/colorfall/html/modules.php on line 6
If it helps, the first few lines of "modules.php" are as follows:-
<?php
defined('_JEXEC') or die('Restricted access');
// Include the template specific functions
require_once(JPATH_THEMES.DS.$app->getTemplate().
'/functions.php');
-
- Joomla! Exemplar
- Posts: 8808
- Joined: Sat Oct 01, 2011 7:06 pm
Re: Converting 2.5 template to 3.3
That is one of the changes in J3, no more DS. Replace it in this case with '/'.
In all other statements use the / as directory separator. Let PHP deal with the platform difference.
In all other statements use the / as directory separator. Let PHP deal with the platform difference.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!
-
- Joomla! Enthusiast
- Posts: 100
- Joined: Wed Jun 23, 2010 5:46 pm
- Location: Marseille, France
Re: Converting 2.5 template to 3.3
Brilliant. That fixed it. Thank you so much!
-
- Joomla! Intern
- Posts: 80
- Joined: Sat Apr 12, 2008 2:22 pm
Re: Converting 2.5 template to 3.3
I have the same problem. My error is:-
Notice: Undefined variable: right in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 40
Notice: Undefined variable: u2 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Undefined variable: u1 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Undefined variable: u5 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Undefined variable: u6 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Use of undefined constant DS - assumed 'DS' in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 43
Warning: require(/Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszoneDS/utils/bss_fontchanger.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 43
Fatal error: require(): Failed opening required '/Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszoneDS/utils/bss_fontchanger.php' (include_path='.:/Applications/MAMP/bin/php/php5.6.1/lib/php') in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 43
Not too sure what to do - any help would be greatly appreciated.
Notice: Undefined variable: right in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 40
Notice: Undefined variable: u2 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Undefined variable: u1 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Undefined variable: u5 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Undefined variable: u6 in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 41
Notice: Use of undefined constant DS - assumed 'DS' in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 43
Warning: require(/Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszoneDS/utils/bss_fontchanger.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 43
Fatal error: require(): Failed opening required '/Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszoneDS/utils/bss_fontchanger.php' (include_path='.:/Applications/MAMP/bin/php/php5.6.1/lib/php') in /Applications/MAMP/htdocs/gdsradioswebsites/newinstallation/joomla_3-gds/templates/businesszone/index.php on line 43
Not too sure what to do - any help would be greatly appreciated.
-
- Joomla! Enthusiast
- Posts: 100
- Joined: Wed Jun 23, 2010 5:46 pm
- Location: Marseille, France
Re: Converting 2.5 template to 3.3
Looks like you have that same obsolete " Use of undefined constant DS " command on line 43. See if sovainfo's fix helps.
-
- Joomla! Exemplar
- Posts: 8808
- Joined: Sat Oct 01, 2011 7:06 pm
Re: Converting 2.5 template to 3.3
That is the least of his problems. Please start a proper migration and remove/update incompatible extensions.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!
-
- Joomla! Intern
- Posts: 80
- Joined: Sat Apr 12, 2008 2:22 pm
Re: Converting 2.5 template to 3.3
Oooh! I'll need to look into that in the morning. Thanks for coming back to me.
-
- Joomla! Intern
- Posts: 80
- Joined: Sat Apr 12, 2008 2:22 pm
Re: Converting 2.5 template to 3.3
OK, sovainfo, can elaborate? I am concerned about your comment 'That is the least of his problems...'
Looking forward to hearing from you
Looking forward to hearing from you
-
- Joomla! Exemplar
- Posts: 8808
- Joined: Sat Oct 01, 2011 7:06 pm
Re: Converting 2.5 template to 3.3
A proper migration starts with determining for each extension whether it is supports J3. From the first few lines I conclude your template doesn't. Which means it needs updating and adjusting each override.
The usage of 'DS' in your template will be resolved when updating the template, even looks like all messages are related to that.
Ofcourse, the template is the first thing, so if resolved what other extensions need fixing?
See docs.joomla.org on migrating.
The usage of 'DS' in your template will be resolved when updating the template, even looks like all messages are related to that.
Ofcourse, the template is the first thing, so if resolved what other extensions need fixing?
See docs.joomla.org on migrating.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!
-
- Joomla! Intern
- Posts: 80
- Joined: Sat Apr 12, 2008 2:22 pm
Re: Converting 2.5 template to 3.3
OK, I'll do that sovainfo and thank you for your help. You too SheilaMary, thanks again.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Feb 10, 2015 10:22 pm
Re: Converting 2.5 template to 3.3
I have same problem using a 2.5 template on Joomla 3.3, on my site i have "Fatal error: Call to undefined method Joomla\Registry\Registry::getValue() in /membri/gaci/templates/green_world_v2/functions.php on line 617" what's happen? What can i do?
-
- Joomla! Intern
- Posts: 80
- Joined: Sat Apr 12, 2008 2:22 pm
Re: Converting 2.5 template to 3.3
What I had to do in the end vladik86 was to re-purchase the template for the 3.3 version. Sometimes (in fact more often than not now) I think it is better to bite the bullet and leave these things to the professionals. I ended up saving myself a lot of hassle trying to convert an old template to the new version. Sometimes it can work but I feel it is better to pay for the upgrade and save myself a lot of grief. Best of luck.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Feb 10, 2015 10:22 pm
Re: Converting 2.5 template to 3.3
I agree with you, but we are a small "environmental protection" voluntary association without money. we wanted a small site to diffuse some news and a private area to share internal information. We do not have funds to turn to a professional ... I will return to joomla 2.5 in this case
-
- Joomla! Intern
- Posts: 80
- Joined: Sat Apr 12, 2008 2:22 pm
Re: Converting 2.5 template to 3.3
Whilst I see what you are saying (and I know about the money thing - and I run a business too!) I do have to say it would be better to move on to 3.3 as opposed to staying with 2.5 as it is far more secure. And whilst 2.5 is great I always believe in keeping up to date (as much as possible anyway). I did have some security issues with 2.5 and have fixed them in 3.3.
Have you tried using a different template? You could adapt one of Joomla's own to suit your needs I am sure and if not then there are plenty of free ones available. It could be a good way of keeping things fresh with your audience too.
Still, it is up to you and as I said best of luck.
Have you tried using a different template? You could adapt one of Joomla's own to suit your needs I am sure and if not then there are plenty of free ones available. It could be a good way of keeping things fresh with your audience too.
Still, it is up to you and as I said best of luck.