coverting my joomla 2.5 template to 3.x

可紊 提交于 2019-12-12 06:02:54

问题


Any help in the right direction would be appreciated. Hopefully, this is the right place to ask this quesiton :o

I just upgrade from Joomla 2.58 to 3.51. Everything is going well I can use other templates but I am having trouble with my template. I keep getting this error and no matter how much I research and try I can't seem to get my template to work.

I have work through several errors but now I am stuck with this.

I am posting all the errors and the changes I made just in case it is related.

All Error

Deprecated: Non-static method JApplicationSite::getMenu() should not be called statically, assuming $this from incompatible context in /home/cnkpadob/public_html/templates/theme1308/index.php on line 26

fixed it by changing it to: $menus = JFactory::getApplication()->getMenu();

Deprecated: Non-static method JApplicationCms::getMenu() should not be called statically, assuming $this from incompatible context in /home/cnkpadob/public_html/libraries/cms/application/site.php on line 272

this went away on its own

Strict Standards: Only variables should be assigned by reference in /home/cnkpadob/public_html/templates/theme1308/index.php on line 26

Went away on its own

Deprecated: Non-static method JApplicationSite::getMenu() should not be called statically, assuming $this from incompatible context in /home/cnkpadob/public_html/templates/theme1308/index.php on line 35

Fixed by changing it to: $menus = JFactory::getApplication()->getMenu();

Deprecated: Non-static method JApplicationCms::getMenu() should not be called statically, assuming $this from incompatible context in /home/cnkpadob/public_html/libraries/cms/application/site.php on line 272

this went away on its own

Strict Standards: Only variables should be assigned by reference in /home/cnkpadob/public_html/templates/theme1308/index.php on line 35

this went away on its own

Fatal error: Class 'JParameter' not found in /home/cnkpadob/public_html/templates/theme1308/index.php on line 41

Still having this issue and can't figure it out. Tried to change it to $jparams = new JRegistry(); but it did not work.

Can anyone please help me with this.. it would be greatly appreciated thanks in advance.

By the way the stock templats works just fine and does not give me this error. So the problemis with my template.


回答1:


Can you please take a look at this tutorial, it will help you to fix these types of issues:Link

Seams this types of question is already has answer in this forum,Look at Link2



来源:https://stackoverflow.com/questions/44039518/coverting-my-joomla-2-5-template-to-3-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!