<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 605: php8 null access prohibited</title><link>https://sourceforge.net/p/phpgedview/patches/605/</link><description>Recent changes to 605: php8 null access prohibited</description><atom:link href="https://sourceforge.net/p/phpgedview/patches/605/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 14 Oct 2022 16:34:35 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpgedview/patches/605/feed.rss" rel="self" type="application/rss+xml"/><item><title>#605 php8 null access prohibited</title><link>https://sourceforge.net/p/phpgedview/patches/605/?limit=100#0ef2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Gerry, it is a surprise to me, because I'm sure it worked some time ago. I don't remember which version of php I had back then. It is possible that 6.x or even 5.x.&lt;/p&gt;
&lt;p&gt;T.B.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz Babczyński</dc:creator><pubDate>Fri, 14 Oct 2022 16:34:35 -0000</pubDate><guid>https://sourceforge.net29732fd1575cc2904bcd2a4b30305fdc2a7b13d0</guid></item><item><title>#605 php8 null access prohibited</title><link>https://sourceforge.net/p/phpgedview/patches/605/?limit=25#26cd</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Gerry Kroll&lt;/li&gt;
&lt;li&gt;Attachments has changed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diff:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="gd"&gt;--- old&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="gi"&gt;+++ new&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="gu"&gt;@@ -0,0 +1 @@&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="gi"&gt;+placecheck.zip (4.7 kB; application/x-zip-compressed)&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gerry Kroll</dc:creator><pubDate>Fri, 14 Oct 2022 13:38:41 -0000</pubDate><guid>https://sourceforge.netf8304ec72d8ded9b24df1d98c8614d529d3ecb14</guid></item><item><title>php8 null access prohibited</title><link>https://sourceforge.net/p/phpgedview/patches/605/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I've found error in &lt;code&gt;modules/googlemap/placecheck.php&lt;/code&gt;.  If there are places in gedcom absent in the places db table, errors occur about line 288 and later in the mentioned file. &lt;code&gt;$row&lt;/code&gt; is null but the code is trying to index it. I'm surprised that it ever worked (but worked, I did used it in the past). Indexing null was illegal before php8, maybe from php7? Summing up, I propose to use "safe objedct" pattern adding the following lines (shown with one line context) after 281 line of the &lt;code&gt;placecheck.php&lt;/code&gt; file (with correct indent of course, I can't paste it properly here):&lt;br/&gt;
    -&amp;gt;fetchOneRow(PDO::FETCH_ASSOC);&lt;br/&gt;
&lt;strong&gt;              if(is_null($row)) {&lt;br/&gt;
                        $row = array('pl_id'=&amp;gt;'', 'pl_place'=&amp;gt;'', 'pl_long'=&amp;gt;0, 'pl_lati'=&amp;gt;'', 'pl_placerequested'=&amp;gt;$levels&lt;span&gt;&lt;span&gt;[$z]&lt;/span&gt;&lt;/span&gt;);&lt;br/&gt;
                        }&lt;br/&gt;
&lt;/strong&gt;              if (!empty($row&lt;span&gt;['pl_id']&lt;/span&gt;)) {&lt;/p&gt;
&lt;p&gt;T.B.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz Babczyński</dc:creator><pubDate>Fri, 14 Oct 2022 11:38:42 -0000</pubDate><guid>https://sourceforge.net88566aef725c9bddd2c5155e4e0c01e27ebc08d6</guid></item><item><title>php8 null access prohibited</title><link>https://sourceforge.net/p/phpgedview/patches/605/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 605 has been modified: php8 null access prohibited&lt;br/&gt;
Edited By: Gerry Kroll (canajun2eh)&lt;br/&gt;
Owner updated: None =&amp;gt; 'canajun2eh'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz Babczyński</dc:creator><pubDate>Fri, 14 Oct 2022 11:38:42 -0000</pubDate><guid>https://sourceforge.netb1a0fa359a1b559a2d8e4ac2316ea692d4e32625</guid></item></channel></rss>