<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 605: php8 null access prohibited</title><link href="https://sourceforge.net/p/phpgedview/patches/605/" rel="alternate"/><link href="https://sourceforge.net/p/phpgedview/patches/605/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpgedview/patches/605/</id><updated>2022-10-14T16:34:35.481000Z</updated><subtitle>Recent changes to 605: php8 null access prohibited</subtitle><entry><title>#605 php8 null access prohibited</title><link href="https://sourceforge.net/p/phpgedview/patches/605/?limit=100#0ef2" rel="alternate"/><published>2022-10-14T16:34:35.481000Z</published><updated>2022-10-14T16:34:35.481000Z</updated><author><name>Tomasz Babczyński</name><uri>https://sourceforge.net/u/tbabczynski/</uri></author><id>https://sourceforge.net29732fd1575cc2904bcd2a4b30305fdc2a7b13d0</id><summary type="html">&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;</summary></entry><entry><title>#605 php8 null access prohibited</title><link href="https://sourceforge.net/p/phpgedview/patches/605/?limit=25#26cd" rel="alternate"/><published>2022-10-14T13:38:41.828000Z</published><updated>2022-10-14T13:38:41.828000Z</updated><author><name>Gerry Kroll</name><uri>https://sourceforge.net/u/canajun2eh/</uri></author><id>https://sourceforge.netf8304ec72d8ded9b24df1d98c8614d529d3ecb14</id><summary type="html">&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;</summary></entry><entry><title>php8 null access prohibited</title><link href="https://sourceforge.net/p/phpgedview/patches/605/" rel="alternate"/><published>2022-10-14T11:38:42.589000Z</published><updated>2022-10-14T11:38:42.589000Z</updated><author><name>Tomasz Babczyński</name><uri>https://sourceforge.net/u/tbabczynski/</uri></author><id>https://sourceforge.net88566aef725c9bddd2c5155e4e0c01e27ebc08d6</id><summary type="html">&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;</summary></entry><entry><title>php8 null access prohibited</title><link href="https://sourceforge.net/p/phpgedview/patches/605/" rel="alternate"/><published>2022-10-14T11:38:42.589000Z</published><updated>2022-10-14T11:38:42.589000Z</updated><author><name>Tomasz Babczyński</name><uri>https://sourceforge.net/u/tbabczynski/</uri></author><id>https://sourceforge.netb1a0fa359a1b559a2d8e4ac2316ea692d4e32625</id><summary type="html">&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;</summary></entry></feed>