Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Suspected Bugs and Errors - 8

If you suspect you have found a bug or a code error post here.
4009 posts | Last Activity on 20-03-2020 23:47 by Falk
Falk
Falk 20-03-2020 23:47, 13 days ago
Re: Uncaught Error: Call to a member function rowCount() Great!
Yes, only adminnistration/forums_prune.php uses it atm. I will update for next patch.
Edit: Updated.
Wanabo
Wanabo 20-03-2020 23:20, 13 days ago
Re: Uncaught Error: Call to a member function rowCount() Thanks. I'll let you know if that fixed it.

Edit: Couldn't resist to try the modified code. Result: works!

Is it safe to remove function db_affrows() from pdo_functions_include.php?
Falk
Falk 20-03-2020 20:05, 14 days ago
Re: Uncaught Error: Call to a member function rowCount() I think it was meant to have backward compatibility but was never finnished, adjusted system instead.
Updated this, https://github.com/php-fusion/PHP-Fus...f92585207f , Should do the trick. Thank you!
Wanabo
Wanabo 20-03-2020 18:07, 14 days ago
Re: Uncaught Error: Call to a member function rowCount() Version 8.00.23
When I delete a thread through the moderator options "delete thread" this will fail.
(https://tele2.gebruikers.eu/forum/options.php?forum_id=33&thread_id=3104)

When I delete a thread by selecting a checkbox in viewforum it works ok!
(https://tele2.gebruikers.eu/forum/viewforum.php?forum_id=33)

The error message shown is:
Uncaught Error: Call to a member function rowCount() on null in /*/includes/db_handlers/pdo_functions_include.php:211\nStack trace:\n#0 /*/forum/options.php(115): db_affrows()\n#1 {main}\n thrown in /*/includes/db_handlers/pdo_functions_include.php on line 211', referer: */forum/options.php?forum_id=59&thread_id=2180

In options.php I find this line $del_posts = db_affrows(); which refers to pdo_functions_include.php
In pdo_functions_include.php I find:
Code
function db_affrows() {
 global $pdo;

 if ($pdo !== FALSE) {
 return $pdo->rowCount();
 }

 return NULL;
}



But I can't figure out what is wrong with it. The function db_affrows() can't be found elsewhere but in options.php
So I looked at the (working) code for deleting threads in viewforum.php.
This is different from options.php but does not use function db_affrows()

So can any one see what is wrong with function db_affrows()?
Or could any one rewrite the code for deleting threads in options.php by taking a look at the similar code in viewforum.php?

I compared the files with the newer 8.00.30, but the code is the same.
Falk
Falk 20-03-2020 17:16, 14 days ago
Re: After installing 8.00.30 Sounds very strange indeed, do a recursive file permission update from a solid FTP client.
Oleg
Oleg 20-03-2020 13:54, 14 days ago
Re: After installing 8.00.30 Removed .htaccess. But still there is no access to some files. The fact is that several sites were updated to 8.00.30 on the same hosting and work fine. Namely, after installation, such a problem.
Falk
Falk 20-03-2020 13:29, 14 days ago
Re: After installing 8.00.30 ah if it is the .htaccess , just remove it and see if it works.
Oleg
Oleg 20-03-2020 13:21, 14 days ago
Re: After installing 8.00.30 Found something:

Code
[Fri Mar 20 14:12:00.084979 2020] [core:crit] [pid 3134225:tid 47588463200000] (13)Permission denied: [client 46.148.219.80:34620] AH00529: /site.ru/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/site.ru/includes/' is executable, referer: https://site.ru/news.php
[Fri Mar 20 14:12:00.025171 2020] [core:crit] [pid 3134225:tid 47588463200000] (13)Permission denied: [client 46.148.219.80:34620] AH00529: /site.ru/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/site.ru/includes/' is executable, referer: https://site.ru/news.php
[Fri Mar 20 14:11:59.964088 2020] [core:crit] [pid 3134225:tid 47588463200000] (13)Permission denied: [client 46.148.219.80:34620] AH00529: /site.ru/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/site.ru/includes/' is executable, referer: https://site.ru/news.php
[Fri Mar 20 14:11:59.946941 2020] [core:crit] [pid 3134225:tid 47588463200000] (13)Permission denied: [client 46.148.219.80:34620] AH00529: /site.ru/themes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/site.ru/themes/' is executable, referer: https://site.ru/news.php

...



a lot of similar
Falk
Falk 20-03-2020 12:49, 14 days ago
Re: After installing 8.00.30 Just lacking update, nothing else. Should work anyway.
Try
Replace includes/classes/Authenticate.class.php from 8.00.23 and see if it fixes it.
Oleg
Oleg 20-03-2020 12:30, 14 days ago
Re: After installing 8.00.30 administration/index.php
Undefined index: update_checker Строка: 198

tpl/profile.tpl.php
Undefined index: uf_yahoo Строка: 234

templates/layout.php
Undefined variable: is_https Строка: 30

Nothing more.
Falk
Falk 20-03-2020 12:21, 14 days ago
Re: After installing 8.00.30 You are right, that is in dev version. Was not live yet. I mixed versions. So ok, please attach the error log, perhaps we can get some clues there.
Oleg
Oleg 20-03-2020 12:19, 14 days ago
Re: After installing 8.00.30 In the downloaded 8.00.30 there are no data lines.
If you add the code does not work either.
Falk
Falk 20-03-2020 12:04, 14 days ago
Re: After installing 8.00.30 Will it work if you comment line 35 out in themes/templates/layout.php ?
Code
echo "$is_https = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
echo "\n";

Oleg
Oleg 20-03-2020 11:45, 14 days ago
Re: After installing 8.00.30 PHP Version 7.3.15
Falk
Falk 20-03-2020 11:41, 14 days ago
Re: After installing 8.00.30 Check https://github.com/php-fusion/PHP-Fus...7aecb1fe3
What PHP Version is on that host?
Oleg
Oleg 20-03-2020 10:53, 14 days ago
Re: After installing 8.00.30 On one of the hosting after installing the new version 8.00.30 (screenshots show home page and admin area). Checked 8.00.23 - everything is fine.
Falk
Falk 18-03-2020 15:55, 16 days ago
Re: messages.php error I tried to replicate the issue, please Verify that this is in 8 and also clear the log and see if it comes back.
E
Ernst74 17-03-2020 08:45, 17 days ago
Re: messages.php error I have this error in the errorlog
Trying to access array offset on value of type bool
messages.php line 232

Line232 is:
Code
if ($msg_settings['pm_sentbox'] != "0" && ($cdata['outbox_count'] + 1) > $msg_settings['pm_sentbox']) {

RobiNN
RobiNN 18-02-2020 09:50, 2 months ago
Re: Deprecated: Unparenthesized `a ? b : c ? d : e` on search.php Upgrade your system to latest.... It's already fixed
E
Ernst74 18-02-2020 08:56, 2 months ago
Re: Deprecated: Unparenthesized `a ? b : c ? d : e` on search.php Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in ... search.php on line 273

Line 273:
Code
$memory_limit = !isnum($memory_limit) ? 8 * 1024 * 1024 : $memory_limit < 8 * 1024 * 1024 ? 8 * 1024 * 1024 : $memory_limit;

You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.