phpBB and support for php 7.2.4

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

phpBB and support for php 7.2.4

Post by danielwimhed » Fri Apr 06, 2018 1:06 pm

If this topic here is inappropiate then delete it.

I have a question if phpBB will work with php 7.2.4 and if not, are there ppl now working on this? What are the problems with php 7.2.4?

I'm bound to use Windows 2016 Server and it's version of IIS, and the MSSQL and PHP installation works best with PHP 7.2.4 in 64 bit environment.

I'm getting this error

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mssqlnative.php on line 271: count(): Parameter must be an array or an object that implements Countable
yourdomain.com

PHP Version 7.2.4
System Windows NT C4PHPBB 10.0 build 14393 (Windows Server 2016) AMD64
Build Date Mar 28 2018 04:21:11
Compiler MSVC15 (Visual C++ 2017)
Architecture x64
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\php7.2.3\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20170718
PHP Extension 20170718
Zend Extension 320170718
Zend Extension Build API320170718,NTS,VC15
PHP Extension Build API20170718,NTS,VC15
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar, sqlsrv
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*



sqlsrv
sqlsrv support enabled
ExtensionVer 5.2.0+10712
Directive Local Value Master Value
sqlsrv.ClientBufferMaxKBSize 10240 10240
sqlsrv.LogSeverity 0 0
sqlsrv.LogSubsystems 0 0
sqlsrv.WarningsReturnAsErrors On On



And the login doesn't work at all.

Greetings
Daniel Wimhed

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50250
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: phpBB and support for php 7.2.4

Post by stevemaury » Fri Apr 06, 2018 2:03 pm

phpBB 3.2.2 supports php 7.2 - https://wiki.phpbb.com/Release_Highlights/3.2.2

As 7.2.4 is a security release, there should be no problem with it.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 24999
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: phpBB and support for php 7.2.4

Post by Paul » Fri Apr 06, 2018 2:23 pm

Can you try phpbb 3.2.3RC1? I think there is a bug in 3.2.2 that prevents it from working
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
lopoto
Registered User
Posts: 104
Joined: Thu Feb 12, 2015 3:13 pm

Re: phpBB and support for php 7.2.4

Post by lopoto » Fri Apr 06, 2018 2:36 pm

On 3.2.3-RC1 php7.2.3 works flawlessly :ugeek:

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 24999
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: phpBB and support for php 7.2.4

Post by Paul » Fri Apr 06, 2018 3:09 pm

Perfect, please make sure to upgrade to 3.2.3 once it is released
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Fri Apr 06, 2018 3:12 pm

A simple question, can I just delete all files since the forum contains nothing and just reinstall everything using the RC1 ? How will the installprocess react to the fact that the database and the tables already exist?

User avatar
</Solidjeuh>
Registered User
Posts: 1376
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: phpBB and support for php 7.2.4

Post by </Solidjeuh> » Fri Apr 06, 2018 3:24 pm

danielwimhed wrote:
Fri Apr 06, 2018 3:12 pm
A simple question, can I just delete all files since the forum contains nothing and just reinstall everything using the RC1 ? How will the installprocess react to the fact that the database and the tables already exist?
Just like another update.
Keep:
  • The config.php file
    The images/ directory
    The ext/ directory
    The files/ directory
    The store/ directory
Read the /docs/install.html file
We offer fun HTML5 games for young and old.
Register a free account & enjoy all functions!
Save your score, challenge other members or play along with our tournaments.


~~~ https://www.solidjeuh.be ~~~

Image

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Mon Apr 09, 2018 5:33 am

Hi all, shall try to do this today and see if it works.

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Mon Apr 09, 2018 7:23 am

Tried to install a fresh version of the RC1 from scratch but still the problem
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mssqlnative.php on line 271: count(): Parameter must be an array or an object that implements Countable

Shows up, I can't login as admin, I can't access the ACP, nothing!

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Mon Apr 09, 2018 7:37 am

Also tried to acces ACP via /phpBB3/adm/index.php all that shows up is
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mssqlnative.php on line 271: count(): Parameter must be an array or an object that implements Countable

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Mon Apr 09, 2018 7:42 am

I looked in the file that has the error with TextPad and it's this line

Code: Select all

return (count($row)) ? $row : false;
The whole function looks like this

Code: Select all

/**
	* {@inheritDoc}
	*/
	function sql_fetchrow($query_id = false)
	{
		global $cache;

		if ($query_id === false)
		{
			$query_id = $this->query_result;
		}

		if ($cache && $cache->sql_exists($query_id))
		{
			return $cache->sql_fetchrow($query_id);
		}

		if (!$query_id)
		{
			return false;
		}

		$row = sqlsrv_fetch_array($query_id, SQLSRV_FETCH_ASSOC);

		if ($row)
		{
			foreach ($row as $key => $value)
			{
				$row[$key] = ($value === ' ' || $value === null) ? '' : $value;
			}

			// remove helper values from LIMIT queries
			if (isset($row['line2']))
			{
				unset($row['line2'], $row['line3']);
			}
		}
		return (count($row)) ? $row : false;
	}

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20840
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket - probably.

Re: phpBB and support for php 7.2.4

Post by Mick » Mon Apr 09, 2018 7:44 am

Please fill out the Support Request Template and post it back here to enable us to assist you better.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Mon Apr 09, 2018 7:48 am

Support Request Template
What version of phpBB are you using? phpBB 3.2.3-RC1
What is your board's URL? Shall be used internal in organisation
Who do you host your board with? IIS own server, PHPinfo file and all shows that PHP and MSSQL are communicating it's running on Windows 2016 server.
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What styles do you currently have installed? No answer given
What language(s) is your board currently using? No answer given
Which database type/version are you using? MS SQL Server
What is your level of experience? New to phpBB but not PHP
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? No answer given
Please describe your problem. No answer given
Generated by SRT Generator

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 24999
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: phpBB and support for php 7.2.4

Post by Paul » Mon Apr 09, 2018 8:51 am

danielwimhed wrote:
Mon Apr 09, 2018 7:37 am
Also tried to acces ACP via /phpBB3/adm/index.php all that shows up is
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mssqlnative.php on line 271: count(): Parameter must be an array or an object that implements Countable
Can you please report it as bug in the bugtracker at http://tracker.phpbb.com/ ? I think the missed this instance of count.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

danielwimhed
Registered User
Posts: 17
Joined: Fri Apr 06, 2018 11:17 am
Location: Kristianstad/Sweden
Name: Daniel Wimhed
Contact:

Re: phpBB and support for php 7.2.4

Post by danielwimhed » Mon Apr 09, 2018 8:56 am

There is a tracker ID https://tracker.phpbb.com/browse/PHPBB3-15612 ;)

Database MSSQL PHP Widnows 2016 IIS issue

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: Raymond Day and 17 guests