Joomla 1.5严格标准错误(Joomla 1.5 Strict Standards error)
所以,一位家庭朋友要求我查看他们的网站。 它刚刚变成了一大堆乱七八糟的错误,如; 严格标准:非静态方法JLoader :: import()不应在第29行的/home/sitename/public_html/libraries/joomla/import.php中静态调用
严格标准:非静态方法JLoader :: register()不应在第71行的/home/sitename/public_html/libraries/loader.php中静态调用
严格标准:非静态方法JRequest :: _ cleanArray()不应在第462行的/home/sitename/public_html/libraries/joomla/environment/request.php中静态调用
我一直在寻找其他地方,我已经看到提到在configuration.php中更改error_reporting,我已经从var $ error_reporting =' - 1'改变了它; to var $ error_reporting ='6135';
这消除了页面上出现的很多错误,但仍然存在很多错误。 任何人都可以帮我清除最后的错误吗?
从我可以收集到的,该网站是Joomla 1.5,我知道需要更新,但如果我可以让错误“消失”,而我可以更新网站或获得一个新的,这将是伟大的!
谢谢
So, I have been asked by a family friend to take a look at their site. It has just recently turned into a big garbled mess of errors such as; Strict Standards: Non-static method JLoader::import() should not be called statically in /home/sitename/public_html/libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/sitename/public_html/libraries/loader.php on line 71
Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in /home/sitename/public_html/libraries/joomla/environment/request.php on line 462
I have been looking elsewhere and I have seen mention of changing error_reporting in configuration.php, I have changed it from var $error_reporting = '-1'; to var $error_reporting = '6135';
This removed a lot of the errors that was appearing on the page but there is still plenty that exist. Can anyone help me with clearing up the last lot of errors?
From what I can gather, the site is Joomla 1.5 which I know needs to be updated but if I can just get the errors to 'disappear' whilst I can work on updating the site or getting a new one built that would be great!
Thanks
原文:https://stackoverflow.com/questions/38774669
最满意答案
如果您想更改WebView的内容,请尝试绑定其
HtmlWebViewSource
而不是Html
。在viewmodel中创建
HtmlWebViewSource
属性:private HtmlWebViewSource _webviewSource; public HtmlWebViewSource WebviewSource { get { return _webviewSource; } set { SetProperty(ref _webviewSource, value); } }
然后将其绑定为:
<WebView x:Name="webView" WidthRequest="1000" HeightRequest="1000" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Source="{Binding WebviewSource}">
当你想改变它时,试试这个:
if (WebviewSource == null) { WebviewSource = new HtmlWebViewSource { Html = "<html><body>" + "Working Shows this HTML in the Webview" + "</body></html>" }; } else { WebviewSource = new HtmlWebViewSource { Html = "<html><body>" + "Not Working, Didnt update with this new HTML" + "</body></html>" }; }
If you want to change the WebView's content, try to bind its
HtmlWebViewSource
instead ofHtml
.Create your
HtmlWebViewSource
property in your viewmodel:private HtmlWebViewSource _webviewSource; public HtmlWebViewSource WebviewSource { get { return _webviewSource; } set { SetProperty(ref _webviewSource, value); } }
Then bind it like:
<WebView x:Name="webView" WidthRequest="1000" HeightRequest="1000" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Source="{Binding WebviewSource}">
When you want to change it, try this:
if (WebviewSource == null) { WebviewSource = new HtmlWebViewSource { Html = "<html><body>" + "Working Shows this HTML in the Webview" + "</body></html>" }; } else { WebviewSource = new HtmlWebViewSource { Html = "<html><body>" + "Not Working, Didnt update with this new HTML" + "</body></html>" }; }
相关问答
更多-
从Xamarin Forms 2.3.1开始,用于Windows RT的WebViewRenderer简单地忽略BaseUrl( https://github.com/xamarin/Xamarin.Forms/blob/2.3.1/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs#L26 )。 但是,在2.3.2分支上有一个解决方法: https : //github.com/xamarin/Xamarin.Forms/blob/2.3.2/Xamarin.F ...
-
如果您想更改WebView的内容,请尝试绑定其HtmlWebViewSource而不是Html 。 在viewmodel中创建HtmlWebViewSource属性: private HtmlWebViewSource _webviewSource; public HtmlWebViewSource WebviewSource { get { return _webviewSource; } set { SetProperty(ref _webviewSource, ...
-
我只是找到了答案 - Xamarin完全忽略了BaseUrl属性: https : //github.com/xamarin/Xamarin.Forms/blob/2d9288eee6e6f197364a64308183725e7bd561f9/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs#L26 I just found the answer - Xamarin simply ignores the BaseUrl property: https://gi ...
-
正如评论中指出的那样,我之前曾处理过这个问题。 它与webview的背景颜色有关。 我已经尝试了几件事情,唯一有效的工作是设置这个: webView.Opaque = false; webView.BackgroundColor = UIColor.Clear; 在UIWebView的自定义渲染器中。 完整实现的自定义渲染器将如下所示: [assembly: ExportRenderer (typeof (WebView), typeof (WebViewRenderer))] namespace Yo ...
-
与表单嵌入一起使用时,Xamarin表示WebView崩溃 当我将Xamarin.Forms Page (包含WebView )转移到Fragment ,我再现了您的问题,这里有一个解决方法: 你可以将一个原生android Android.Webkit.WebView放入一个Fragment ,然后你可以显示这个Fragment来实现相同的功能。 创建一个WebViewFragment : public class WebViewFragment : Fragment { public overr ...
-
我不确定是否可以开箱即用Xamarin Forms进行检测,但使用自定义渲染器可以轻松确定导航类型。 在您的自定义iOS渲染器中,分配WebViewDelegate并在该Delegate类中,覆盖ShouldStartLoad()如下所示: public class CustomWebViewRenderer : WebViewRenderer { #region Properties public CustomWebView CustomWebViewItem { get { retu ...
-
Xamarin表示Webview本地(Xamarin Forms Webview local)[2023-01-19]
最后,我实现了加载本地内容,为每个平台添加自定义渲染。 示例(UWP): [assembly: ExportRenderer(typeof(WebView), typeof(WebViewRenderer))] namespace DisplayEpub.UWP{ public class CustomWebViewRenderer : WebViewRenderer { protected override void OnElementChanged(ElementChangedEventArgs ... -
是的,可以从Xamarin.Android和Xamarin.iOS项目中调用Xamarin.Forms页面,在Xamarin中调用Native2Forms。 您将使用Xamarin.Forms App类作为两个项目之间的连接。 这是Xamarin的示例项目,展示了如何做到这一点。 https://github.com/xamarin/xamarin-forms-samples/tree/master/Native2Forms 关于转换器,不,我认为没有办法将Android XML和/或iOS Storybo ...
-
Xamarin表单处理Webview中的超链接导航问题(Xamarin Forms Handle Hyperlinks in Webview Navigating issue)[2022-07-09]
在您的客户渲染器(我假设的WebViewRenderer的子类)中,您可以将e.newElement强制转换为您的HybridWebView类型,例如: HybridWebView wv = e.NewElement as HybridWebView; 然后,您应该能够使用wv.Code访问您的Code属性。 此外, NativeView属性将为您提供iOS本机UIView 。 您应该能够毫无问题地将其转换为UIWebView。 例如: UIWebView nativeUIWebView = Native ... -
主要问题是你的html源字符串。 “宽度”和“高度”在不同的浏览器上的工作方式不同。 例如,我的测试显示,如果指定宽度(以百分比表示),Android无法渲染图像,它只能以像素为单位。 那么,可以肯定的是删除宽度和高度百分比(以像素为单位) string imgSource = DependencyService.Get
().Get() + value; //Android and iOS don't seem to need Dependency just "value", so yo ...