Visman wrote:What is written in the error.log file?
doing a tail -f on error-towardsfreedom.com.log
anytime we go to a topic where we see actual posts
(eg http://towardsfreedom.com/tfbb/viewtopic.php?id=68)
the log fills up with errors:
====
[Sun Oct 02 09:42:00.945047 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#2 used as offset, casting to integer (2) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.948806 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#4 used as offset, casting to integer (4) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.949553 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#5 used as offset, casting to integer (5) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.950121 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#6 used as offset, casting to integer (6) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.950435 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#7 used as offset, casting to integer (7) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.953007 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#8 used as offset, casting to integer (8) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.955488 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#11 used as offset, casting to integer (11) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.958182 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#12 used as offset, casting to integer (12) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.958792 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /srv/websites/towardsfreedom.com/ber/tfbb/include/parser.php on line 776, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.959210 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /srv/websites/towardsfreedom.com/ber/tfbb/include/parser.php on line 776, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
[Sun Oct 02 09:42:00.960181 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Notice: Resource ID#13 used as offset, casting to integer (13) in /srv/websites/towardsfreedom.com/ber/tfbb/include/dblayer/pgsql.php on line 123, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
====
line 123 in pgsql.php is
$this->last_query_text[$this->query_result] = $sql;
i wonder what resource ids #2-12 are? these show up in the PHP Notices.
then there are the last two entries the latter being a notice with resource #13, but the former being a warning
[Sun Oct 02 09:42:00.959210 2016] [:error] [pid 25713] [client 192.168.0.18:59416] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /srv/websites/towardsfreedom.com/ber/tfbb/include/parser.php on line 776, referer: http://towardsfreedom.com/tfbb/viewforum.php?id=14
complaining about some defunct code i think. line 776 is
$text = preg_replace($pattern, $replace, $text);
this is php version 7.0.8 that we are using.
whenever i go to a topic page to see actual posts, a similar pattern shows up:
1. php notices involving ids from #2-x
2. the php warning on preg_replace
3. the php notice involving id one more than x
could the problem be that my punbb 1.4 is not compatible with the newer php 7.08?
in friendship,
prad