将我的joomla 2.5模板覆盖到3.x [英] coverting my joomla 2.5 template to 3.x

查看:53
本文介绍了将我的joomla 2.5模板覆盖到3.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何朝着正确方向的帮助将不胜感激.希望这是问这个问题的正确地方:o

我刚刚从Joomla 2.58升级到3.51.一切进展顺利,我可以使用其他模板 但我在模板上遇到了麻烦.我不断收到此错误, 无论我进行多少研究和尝试,似乎都无法使我的模板正常工作.

我遇到了几个错误,但现在我被困住了.

我正在发布所有错误和所做的更改,以防万一它与之相关.

所有错误

不建议使用:假定$ this来自/home/cnkpadob/public_html/templates/theme1308/index.php第26行中不兼容的上下文,则不应静态调用JApplicationSite :: getMenu()静态方法

通过将其更改为以下内容修复了该问题:$ menus = JFactory :: getApplication()-> getMenu();

不推荐使用:假定$ this来自/home/cnkpadob/public_html/libraries/cms/application/site.php中第272行的不兼容上下文,则不应静态调用非静态方法JApplicationCms :: getMenu() >

它自己消失了

严格的标准:应该仅在第26行的/home/cnkpadob/public_html/templates/theme1308/index.php中通过引用分配变量

自行消失

不建议使用:假定$ this来自第35行的/home/cnkpadob/public_html/templates/theme1308/index.php中不兼容的上下文,则不应静态调用非静态方法JApplicationSite :: getMenu().

通过将其更改为以下内容来修复:$ menus = JFactory :: getApplication()-> getMenu();

不推荐使用:假定$ this来自/home/cnkpadob/public_html/libraries/cms/application/site.php中第272行的不兼容上下文,则不应静态调用非静态方法JApplicationCms :: getMenu() >

它自己消失了

严格标准:第35行的/home/cnkpadob/public_html/templates/theme1308/index.php中的引用只能分配变量

它自己消失了

致命错误:在第41行的/home/cnkpadob/public_html/templates/theme1308/index.php中找不到类'JParameter'

仍然有此问题,无法解决.试图将其更改为$ jparams = new JRegistry();但这没用.

任何人都可以帮我解决这个问题..在此先感谢您.

通过库存模板工作正常,不会出现此错误.所以问题出在我的模板上.

解决方案

能否请您看一下本教程,它将帮助您解决以下类型的问题: Link2

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.

解决方案

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

这篇关于将我的joomla 2.5模板覆盖到3.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆