<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged deprecated</title>
<link>https://www.question2answer.org/qa/tag/deprecated</link>
<description>Powered by Question2Answer</description>
<item>
<title>error message php deprecated v-1.8.8</title>
<link>https://www.question2answer.org/qa/111245/error-message-php-deprecated-v-1-8-8</link>
<description>

&lt;p style=&quot;text-align:left&quot;&gt;Hello,&lt;/p&gt;

&lt;p style=&quot;text-align:left&quot;&gt;Several days ago, I started getting an error message on a daily basis in ( cPanel error log ) The message is as follows:&lt;/p&gt;

&lt;p style=&quot;text-align:left&quot;&gt;&lt;u&gt;PHP Deprecated:&amp;nbsp; ctype_digit(): Argument of type null will be interpreted as string in the future in /home1/xxxxxx/public_html/xxxxx/qa-include/qa-image.php on line 49&lt;/u&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/111245/error-message-php-deprecated-v-1-8-8</guid>
<pubDate>Tue, 07 Nov 2023 16:58:58 +0000</pubDate>
</item>
<item>
<title>Help about Deprecated Methods of Php?</title>
<link>https://www.question2answer.org/qa/57351/help-about-deprecated-methods-of-php</link>
<description>

&lt;p&gt;I need some help about PHP deprecated methods. To be more specific i am using a Q2A plugin on my website called &quot;Ajax Page Loader&quot;. Everything works fine except an annoying message/warning at the top of the page which is:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&quot;&lt;strong&gt;Deprecated&lt;/strong&gt;: Methods with the same name as their class will not be constructors in a future version of PHP; qa_layer_1_from_qa_ajax_layer_php has a deprecated constructor in &lt;strong&gt;xxxxxxxx\qa-include\qa-base.php(595) : eval()'d code&lt;/strong&gt; on line &lt;strong&gt;2&lt;/strong&gt;
&lt;br&gt;of xxxxxxxx/qa-plugin/ajax-page-loader/qa-ajax-layer.php &quot;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I checked the plugin's file qa-ajax-layer.php and in there exist indeed the same class and function which is &quot;&lt;strong&gt;qa_html_theme_layer&lt;/strong&gt;&quot;.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;class qa_html_theme_layer extends qa_html_theme_base
&lt;br&gt;{
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var $plugin_directory;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var $plugin_url;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;function qa_html_theme_layer($template, $content, $rooturl, $request)
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;global $qa_layers;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;plugin_directory = $qa_layers['APL - Ajax Layer']['directory'];
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;plugin_url = $qa_layers['APL - Ajax Layer']['urltoroot'];
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;qa_html_theme_base::qa_html_theme_base($template, $content, $rooturl, $request);
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;A tried to change this line from:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;qa_html_theme_layer($template, $content, $rooturl, $request) &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;qa_my_function($template, $content, $rooturl, $request) &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;But the plugin doesnt work. What i have to do so the plugin work and at the same time get rid of the error/warning message about PHP deprecated Methods ? I really dont want to downgrade my PHP back to 5.4!!&lt;/p&gt;

&lt;p&gt;@sama55 @scott i need your advices. Thanks&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/57351/help-about-deprecated-methods-of-php</guid>
<pubDate>Thu, 20 Apr 2017 12:16:15 +0000</pubDate>
</item>
<item>
<title>[Markdown Editor] Deprecated: Methods</title>
<link>https://www.question2answer.org/qa/51999/markdown-editor-deprecated-methods</link>
<description>

&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For the website named OBSD4a.net, we use-it &lt;a rel=&quot;nofollow&quot; href=&quot;http://obsd4a.net/qa/&quot;&gt;Q&amp;amp;A&lt;/a&gt; and Markdown Editor. &lt;em&gt;(french community)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We have this error PHP:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;As wrote in &lt;a rel=&quot;nofollow&quot; href=&quot;https://secure.php.net/manual/fr/migration70.deprecated.php&quot;&gt;PHP documentation&lt;/a&gt;: it's an oldier PHP 4 style constructor. It need to change ... perhaps by using __construt() method ;)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51999/markdown-editor-deprecated-methods</guid>
<pubDate>Sat, 04 Jun 2016 14:24:26 +0000</pubDate>
</item>
</channel>
</rss>