<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Phorum 5.2 and php7</title>
        <description> Hi, will phorum work with php7?</description>
        <link>https://www.phorum.org/support/read.php?61,162108,162108#msg-162108</link>
        <lastBuildDate>Sun, 13 Sep 2026 14:55:33 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162828#msg-162828</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162828#msg-162828</link>
            <description><![CDATA[ Dear all,<br />
<br />
Can you help on GitHub?<br />
<br />
I have created a new ticket to have a new team, to have PHP support improvements, etc.:<br />
- [<a href="https://github.com/Phorum/Core/issues/1045" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
There are two PRs:<br />
- [<a href="https://github.com/Phorum/Core/pull/1043" target="_blank"  rel="nofollow">github.com</a>]<br />
- [<a href="https://github.com/Phorum/Core/pull/1044" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
captcha in GitHub tickets:<br />
- [<a href="https://github.com/Phorum/Core/issues?q=is%3Aissue+captcha" target="_blank"  rel="nofollow">github.com</a>]<br />
<br />
Thanks in advance.]]></description>
            <dc:creator>Neustradamus</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 25 Jun 2026 09:03:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162592#msg-162592</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162592#msg-162592</link>
            <description><![CDATA[ Try turning off all of the modules in the admin (submit button at the bottom of the page). Turn them on one at a time and submit. Check.<br />
<br />
Check the error logs for php and the web server.<br />
<br />
The following is a search on &quot;  blank page   &quot; all dates [<a href="https://www.phorum.org/phorum5/search.php?61,search=blank+page,author=,page=1,match_type=ALL,match_dates=0,match_forum=ALL,match_threads=0" target="_blank"  rel="nofollow">www.phorum.org</a>]]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 15 Apr 2021 08:03:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162591#msg-162591</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162591#msg-162591</link>
            <description><![CDATA[ My server just got updated tonight to PHP 7 and all I can see is the header. Everything after that is gone! My entire site is built on phorum so it&#039;s a major issue. Anyone having any luck getting things running with PHP7?]]></description>
            <dc:creator>musu</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 15 Apr 2021 03:06:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162440#msg-162440</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162440#msg-162440</link>
            <description><![CDATA[ Thank you.]]></description>
            <dc:creator>jbaker</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 04 May 2020 08:32:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162439#msg-162439</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162439#msg-162439</link>
            <description><![CDATA[ Recent Messages  is available here [<a href="https://www.phorum.org/phorum5/read.php?62,125518,125518#msg-125518" target="_blank"  rel="nofollow">www.phorum.org</a>]<br />
<br />
You need to either add the Mod Jumpmenu [<a href="https://www.phorum.org/phorum5/read.php?62,125516,125516#msg-125516" target="_blank"  rel="nofollow">www.phorum.org</a>], or edit the template to show the link.<br />
<br />
<br />
List of Modules here   ---&gt; <a href="https://www.phorum.org/modules.php" target="_blank"  rel="nofollow">https://www.phorum.org/modules.php</a>]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 04 May 2020 07:31:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162438#msg-162438</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162438#msg-162438</link>
            <description><![CDATA[ I think I have fixed the badwords.php  problems<br />
<br />
1) The count() warning I received for an empty bad words list was solved by Scott Finegan&#039;s suggestion:<br />
<br />
replace<br />
if(count($bad_words)){ <br />
     on or about line 157 with <br />
if(!empty($bad_words)){<br />
<br />
2) The &#039;Censor List&#039; problem described by Steve Healy above was solved by changing the line<br />
<br />
echo &quot;    &lt;td class=\&quot;&quot;.$ta_class.&quot;\&quot;&gt;&quot;.htmlspecialchars($item[string]).&quot;&lt;/td&gt;\n&quot;;<br />
<br />
on or about line 173 to:<br />
<br />
echo &quot;    &lt;td class=\&quot;&quot;.$ta_class.&quot;\&quot;&gt;&quot;.htmlspecialchars($item[&#039;string&#039;]).&quot;&lt;/td&gt;\n&quot;;<br />
<br />
Note the single quotes around (string) - Although it looks like a single valued variable, $item is actually an array, and the literal &#039;string&#039; is just the key value for one of the elements.  Incidentally, this is a good example of how it can get confusing to use a common keyword as an index key:)<br />
<br />
3)  I did not encounter Steve Healy&#039;s problem with cache.  However, note that the warning being shown was with the show() method, which we fixed as described in previous posts.<br />
<br />
4) I didn&#039;t see the recent messages mod in my mods list, and my phorum (5.2.23) doesn&#039;t have it in the mods directory.  Can I get this somewhere?]]></description>
            <dc:creator>jbaker</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 04 May 2020 06:00:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162437#msg-162437</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162437#msg-162437</link>
            <description><![CDATA[ .<br />
<br />
1) You are right about HTML comments, however browsers look for the Doctype at the top of the document even though it is commented out. Browsers behave differently, depending on what brand and when it was made. Took me a while to figure out it was the Doctype messing it up. <br />
The page does need a Doctype of some kind, something for another day.  <br />
I was interested in fixing the problem so testing each of the settings is easier. The slashes are printed, reminding me to return to the issue ;)<br />
<br />
2) My thought is: &quot;   if(count($this-&gt;_help)){  &quot;    //  is only a True or False test, the count is never saved or used.<br />
The behavior was changed in 7.2 , and now may require several tests isset(), empty(), to cover all possibilities.<br />
I used    &quot;   if(!empty($this-&gt;_help)){   &quot;]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Mon, 04 May 2020 01:24:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162436#msg-162436</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162436#msg-162436</link>
            <description><![CDATA[ The bad words problem has two problems.  One is listed above (undefined &quot;string&quot; constant) in Steve Healy&#039;s earlier post.  However, if the bad words list is empty, it gives a countable error similar to the $_help problem in my previous post.  I have to play with these.]]></description>
            <dc:creator>jbaker</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sun, 03 May 2020 20:00:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162435#msg-162435</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162435#msg-162435</link>
            <description><![CDATA[ I modified include/admin/PhpInputForm.php line 40 from:<br />
<br />
var $_help;<br />
<br />
to<br />
<br />
var $_help = array(); /*Added to get rid of php7 warning*/<br />
<br />
This seems to fix the warning and help tips seem to be added normally when I run the various functions.  This is consistent with the warning, as count() now seems to require an explicitly defined countable element rather than inferring the type from an undefined declaration.  PHP7.2 seems to be a bit tighter than earlier versions, which actually is a good thing, as it prevents unintended effects.  Note that there is an addhelp method for this class invoked at various places that fills the $_help array with tooltip help text for various functions, and it seems to work after the change.]]></description>
            <dc:creator>jbaker</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sun, 03 May 2020 19:38:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162434#msg-162434</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162434#msg-162434</link>
            <description><![CDATA[ 1) Aren&#039;t HTML comments  &lt;!--    --&gt; instead of // ?  This line is not within the &lt;?php   .... ?&gt; code.<br />
<br />
2) When running admin-&gt; edit users I received the following error:<br />
<br />
&quot;Warning: count(): Parameter must be an array or an object that implements Countable in /home/wlyanceu/public_html/phorum5/include/admin/PhorumInputForm.php on line 213&quot;<br />
<br />
This is a class definition for PhorumInputForm and frankly is beyond my current php skills.  Any thoughts?]]></description>
            <dc:creator>jbaker</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sun, 03 May 2020 18:21:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162433#msg-162433</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162433#msg-162433</link>
            <description><![CDATA[ In the admin...<br />
<br />
General Settings, scroll near the bottom. Select / click a   ?  to display a help message box.<br />
    If the help popup message box does not center on the page, and you find it at the top left of the page...<br />
<br />
include/admin/header . php<br />
About line # 81 locate the following line and comment it out.<br />
<pre class="bbcode">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;[<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt" target="_blank"  rel="nofollow">www.w3.org</a>];</pre>
    like below<br />
<pre class="bbcode">
// &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;[<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt" target="_blank"  rel="nofollow">www.w3.org</a>];</pre>
Verify the help is now centered on the page.<br />
<br />
<i>*Note the comment slashes are displayed at the top left of the page, if nothing else breaks I will fix this.</i><br />
<br />
This issue may be browser dependent. I had the problem in an older Firefox version 56.0.<br />
The current Brave browser has the issue. (Chrome based)<br />
IE 11 has the issue.]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sun, 03 May 2020 01:27:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162432#msg-162432</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162432#msg-162432</link>
            <description><![CDATA[ I am working on this in my spare time testing with php 7.4.x. on Win 8.1<br />
The different versions of the php 7.x are not all the same, they moved or squashed some bugs. <br />
............Different OS&#039;s appear to cause subtle differences (they should not).<br />
<br />
About line 108 in    include / upload_functions . php<br />
<br />
[code=&quot;php&quot;]<br />
function phorum_phpcfgsize2bytes($val) {<br />
    $val = trim($val);<br />
    $last = strtolower($val{strlen($val)-1});<br />
<br />
    switch($last) {<br />
[/code]<br />
<br />
add   &quot;       $val = (int)$val;    &quot;<br />
[code=&quot;php&quot;]<br />
function phorum_phpcfgsize2bytes($val) {<br />
    $val = trim($val);<br />
    $last = strtolower($val{strlen($val)-1});<br />
    $val = (int)$val;<br />
<br />
    switch($last) {<br />
[/code]]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sat, 02 May 2020 13:33:09 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162431#msg-162431</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162431#msg-162431</link>
            <description><![CDATA[ Hi,<br />
<br />
Same question for me: how to make Phorum work with PHP 7.3?<br />
<br />
And do you know if there are differences between PHP 7.0, 7.1, 7.2 and 7.3 for Phorum 5.2.20?<br />
<br />
Thanks :)]]></description>
            <dc:creator>cactux</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sat, 02 May 2020 12:17:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162430#msg-162430</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162430#msg-162430</link>
            <description><![CDATA[ Is anyone working on updating Phorum so it works cleanly with php 7?  I have been using phorum since the early 2000&#039;s and have kept up-to-date whenever possible.  My hosting server just went to php 7.  While the basic functionality seems ok, I have started seeing warnings.  As php continues to evolve, this probably will get worse.]]></description>
            <dc:creator>jbaker</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sat, 02 May 2020 08:09:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162401#msg-162401</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162401#msg-162401</link>
            <description><![CDATA[ My server just got updated tonight to PHP 7 and all I can see is the header.  Everything after that is gone!  My entire site is built on phorum so it&#039;s a major issue.  Anyone having any luck getting things running with PHP7?]]></description>
            <dc:creator>pulloff</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Fri, 21 Feb 2020 22:58:42 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162394#msg-162394</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162394#msg-162394</link>
            <description><![CDATA[ version 5.2.20  PHP: 7.3.14<br />
<br />
<br />
Cache Settings - not work<br />
Database Integrity -  not work<br />
<br />
<br />
What to do?]]></description>
            <dc:creator>ffcc772</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 12 Feb 2020 14:57:52 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162379#msg-162379</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162379#msg-162379</link>
            <description><![CDATA[ Hello,<br />
I am testing my 5.2.22 installation, that used to run on PHP 5.6, on PHP 7.2<br />
<br />
I have done just some very simple tests on the main operations:<br />
- login<br />
- change my password<br />
- post<br />
- reply<br />
- save general settings in admin<br />
and a few others.<br />
<br />
I haven&#039;t see, so far, any evident problem. I also see warnings, but I saw warnings even on PHP 5.6 and it&#039;s hard to say if the warnings compromise the correct functioning of the program without analyzing the related code line by line.<br />
<br />
Does anyone know something more about this? Should we trust the use of phorum 5.2.22 on PHP 7.2?<br />
<br />
Thanks!<br />
<br />
Best,]]></description>
            <dc:creator>eugenio</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Sun, 20 Oct 2019 09:52:13 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162343#msg-162343</guid>
            <title>Re: Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162343#msg-162343</link>
            <description><![CDATA[ I am experimenting with PHP 7.3.6 and it&#039;s working, although I&#039;m finding a few problems and warnings...<br />
<br />
First off, in the admin.php under Global Settings<br />
<br />
&quot;Censor List&quot; causes badwords.php to throw this warning:<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />PHP warning: Use of undefined constant string - assumed &#039;string&#039; (this will throw an Error in a future version of PHP)<br />
<br />
PHP warning generated at /var/www/html/phorum/include/admin/badwords.php:173<br />
<br />
Back trace:<br />
<br />
Function include_once called at<br />
{path to Phorum}/admin.php:108</div></blockquote>
<br />
<br />
&quot;Cache Settings&quot; does not work at all, and throws this warning:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />PHP warning: count(): Parameter must be an array or an object that implements Countable<br />
<br />
PHP warning generated at /var/www/html/phorum/include/admin/PhorumInputForm.php:211<br />
<br />
Back trace:<br />
<br />
Function show called at<br />
{path to Phorum}/include/admin/mods.php:146<br />
----<br />
Function include_once called at<br />
{path to Phorum}/admin.php:108</div></blockquote>
<br />
Same warning from:<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Function show called at<br />
{path to Phorum}/mods/event_logging/settings/logviewer.php:209<br />
----<br />
Function include called at<br />
{path to Phorum}/mods/event_logging/settings.php:54<br />
----<br />
Function include_once called at<br />
{path to Phorum}/include/admin/modsettings.php:29<br />
<br />
and <br />
<br />
Function show called at<br />
{path to Phorum}/include/admin/users.php:451</div></blockquote>
<br />
<br />
Then, logged in to the main phorum, and went to Recent messages:<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />PHP warning: Illegal string offset &#039;cache_version&#039;<br />
<br />
PHP warning generated at /var/www/html/phorum/mods/recent_messages/recent_messages.php:252<br />
<br />
Back trace:<br />
<br />
Function phorum_mod_recent_messages_addon called at<br />
{path to Phorum}/common.php:1887<br />
----<br />
Function phorum_hook called at<br />
{path to Phorum}/addon.php:140</div></blockquote>
<br />
<br />
Made a post successfully but got this notice:<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />PHP notice: A non well formed numeric value encountered<br />
<br />
PHP notice generated at /var/www/html/phorum/include/upload_functions.php:113<br />
<br />
Back trace:<br />
<br />
Function phorum_phpcfgsize2bytes called at<br />
{path to Phorum}/include/upload_functions.php:36<br />
----<br />
Function phorum_get_system_max_upload called at<br />
{path to Phorum}/posting.php:625</div></blockquote>]]></description>
            <dc:creator>Steve H</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Wed, 19 Jun 2019 17:34:13 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?61,162108,162108#msg-162108</guid>
            <title>Phorum 5.2 and php7</title>
            <link>https://www.phorum.org/support/read.php?61,162108,162108#msg-162108</link>
            <description><![CDATA[ Hi, will phorum work with php7?]]></description>
            <dc:creator>pat</dc:creator>
            <category>Phorum Support</category>
            <pubDate>Thu, 13 Sep 2018 13:45:59 -0500</pubDate>
        </item>
    </channel>
</rss>
