1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html><head> 3<title>Opencart 3.0.3.9 и PHP 8 оÑибка Passing null to parameter action.php on line 65 » ÐознаваÑелÑнÑй блог</title> 4 5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6<meta name="description" content="Opencart 3.0.3.9 и PHP 8 оÑибка Passing null to parameter action.php on line 65 » makak.ru"> 7<meta name="viewport" content="width=device-width, initial-scale=1"> 8 9<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="https://www.makak.ru/feed/" /> 10<link rel="alternate" type="text/xml" title="RSS .92" href="https://www.makak.ru/feed/rss/" /> 11<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="https://www.makak.ru/feed/atom/" /> 12<link href="https://www.makak.ru/wp-content/themes/kas/style.css" rel="stylesheet" type="text/css"> 13<link rel="icon" href="https://www.makak.ru/favicon.ico" type="image/x-icon"> 14 15<!-- SAPE RTB JS -->
16<script 17 async="async" 18 src="https://cdn-rtb.sape.ru/rtb-b/js/401/2/130401.js" 19 type="text/javascript"> 20</script>
20 21<!-- SAPE RTB END --> 22 23</head> 24 25<body> 26<table border="0" cellpadding="7" cellspacing="0" width="100%"> 27<tr valign="top"> 28 <td align="center" height="78" width="150" style="border-bottom: #999999 1px dashed; border-right: #999999 1px dashed; background-image: url('https://www.makak.ru/wp-content/themes/kas/img/3.gif'); background-repeat: no-repeat;"> ÐознаваÑелÑнÑй блог 29<a href="https://www.makak.ru/"><img src="https://www.makak.ru/wp-content/themes/kas/img/logo.gif" border="0"/></td> 30 <td height="78" width="650" valign="middle" align ="center" style="border-bottom: #999999 1px dashed; border-right: #999999 1px dashed; background-image: url('https://www.makak.ru/wp-content/themes/kas/img/4.gif'); background-repeat: no-repeat;"> 31 32<!-- Makak.ru â 468x60 ÑвеÑÑ Ñ --> 33 34</td> 35 <td height="78" style="border-bottom: #999999 1px dashed;">ÐобилÑÐ½Ð°Ñ Ð²ÑÑиÑ<br><a onclick='document.cookie="fdx_switcher=mobile;path=/;expires=";' href='http://www.makak.ru/2024/02/26/opencart-3-0-3-9-i-php-8-oshibka-passing-null-to-parameter-3-subject-of-type-arraystring-is-deprecated-in-action-php-on-line-65/?fdx_switcher=mobile' title='ÐеÑеклÑÑиÑÑÑÑ Ð½Ð° мобилÑнÑÑ Ð²ÐµÑÑиÑ' rel='nofollow'><img src='https://www.makak.ru/wp-content/plugins/wp-mobile-edition/assets/images/switch.png' width='50' height='20' alt=''></a> 36</td> 37</tr> 38<tr valign="top" bgcolor="#f8f8f8"> 39 <td width="150" style="border-bottom: #999999 1px dashed; border-right: #999999 1px dashed; background-image: url('https://www.makak.ru/wp-content/themes/kas/img/1.gif'); background-repeat: no-repeat;"> 40 41 42<h2>СÑÑаниÑÑ</h2> <div class="textwidget"><ul><li class="page_item page-item-1516"><a href="https://www.makak.ru/frend/">ÐÑÑзÑÑ</a></li> 43<li class="page_item page-item-111"><a href="https://www.makak.ru/sitemap/">ÐаÑÑа ÑайÑа</a></li> 44<li class="page_item page-item-2"><a href="https://www.makak.ru/about/">Ð ÑайÑе</a></li></ul></div> 45 <h2>ÐÑомо</h2> <div class="textwidget"><!-- SAPE RTB DIV 120x600 --> 46<div id="SRTB_876646"></div> 47<!-- SAPE RTB END --></div> 48 49 50 </td> 51 <td width="650" style="border-bottom: #999999 1px dashed; border-right: #999999 1px dashed; background-image: url('https://www.makak.ru/wp-content/themes/kas/img/2.gif'); background-repeat: no-repeat;"> 52 53<h2>Opencart 3.0.3.9 и PHP 8 оÑибка Passing null to parameter action.php on line 65</h2> 54 55<div class="contenttext"> 56 57 58<p class="wp-block-paragraph">После обновления PHP до версии 8.2.14 на своем сервере, обнаружил ошибку, которая появилась н всех страницах. Текст ошибки следующий.<br><br><strong>PHP Unknown: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /xxx/model/tool/backup.php on line 47</strong></p> 59 60 61 62<p class="wp-block-paragraph"></p> 63 64 65 66<p class="wp-block-paragraph">Оказалось, это вызвано нулевыми значениями. Я нашел некоторые из них в таблице oc_googleshopping_product, используемой встроенным расширением Google Shopping. Необходимо добавить проверку на то, что значение $ равно null перед строкой 47 из admin/model/tool/backup.php. Самый простой способ остановить ошибку - заменить 65 строку в action.php.</p> 67 68 69 70<p class="wp-block-paragraph">Было <strong>private $route;</strong></p> 71 72 73 74<p class="wp-block-paragraph">Стало <strong>private $route = '';</strong></p> 75 76</div> 77 78<div class="posttags">Ð ÑбÑики: <a href="https://www.makak.ru/category/veb/" rel="category tag">Ðеб</a></div> 79 80<div class="navigation" style="margin-bottom:10px; margin-top:10px;"><span> 81ÐвÑоÑ: admin | 26.02.2024 | <a href="https://www.makak.ru/2024/02/26/opencart-3-0-3-9-i-php-8-oshibka-passing-null-to-parameter-3-subject-of-type-arraystring-is-deprecated-in-action-php-on-line-65/#comments">ÐамменÑÑ: 1</a> 82</span></div> 83 84 85<h3>ÐомменÑаÑии</h3> 86 87 88<table border="0" width="100%" cellspacing="7" cellpadding="3"> 89<tr> 90<td height="1" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: black;"> 91<b><strong>ÐомменÑаÑий</strong> Ð¾Ñ <strong>Тим СойеÑ</strong></b> 92<small>[ 16 авгÑÑÑа, 2024, 12:31 ]</small> </td> 93</tr> 94<tr> 95<td height="40" valign="top" bgcolor="#F9F9F9"><p>Ðазвание Ñ ÑайÑа клаÑÑное)</p> 96</td> 97</tr> 98</table> 99 100 101 102</div> 103 104 105<div id="commentsection"> 106<h3>ÐапиÑаÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий</h3> 107<form action="https://www.makak.ru/wp-comments-post.php" method="post" id="commentform"> 108 109<label for="author">ÐмÑ:</label><br /> 110<input type="text" name="author" id="author" class="textarea" value="" size="28" tabindex="1" /><input type="hidden" name="comment_post_ID" value="8823" /><br /> 111 112<input type="hidden" name="redirect_to" value="/2024/02/26/opencart-3-0-3-9-i-php-8-oshibka-passing-null-to-parameter-3-subject-of-type-arraystring-is-deprecated-in-action-php-on-line-65/" /> 113<label for="email">E-mail:</label><br /><input type="text" name="email" id="email" value="" size="28" tabindex="2" /><br /> 114<label for="url">СайÑ:</label><br /><input type="text" name="url" id="url" value="" size="28" tabindex="3" /><br /> 115<label for="comment">ÐÐ°Ñ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий:</label><br /> 116<textarea autocomplete="new-password" id="d4c17ded6e" name="d4c17ded6e" cols="50" rows="7" tabindex="4"></textarea><textarea id="comment" aria-label="hp-comment" aria-hidden="true" name="comment" autocomplete="new-password" style="padding:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;position:absolute !important;white-space:nowrap !important;height:1px !important;width:1px !important;overflow:hidden !important;" tabindex="-1"></textarea>
116<script data-noptimize>document.getElementById("comment").setAttribute( "id", "aada1fb38557d11a87582a29494d9a58" );document.getElementById("d4c17ded6e").setAttribute( "id", "comment" );</script>
116 117<p><input name="submit" id="submit" type="submit" tabindex="5" value="ÐÑпÑавиÑÑ" /></p> 118</form> 119</div> 120 121 122 123 124 125<td style="border-bottom: #999999 1px dashed;"> 126 127<h2>ÐоиÑк по ÑайÑÑ</h2> 128<form method="get" id="searchform" action="/index.php"> 129<div> 130 131<input type="text" value="" name="s" id="s" size="17" /> 132<input type="hidden" id="searchsubmit" value="ÐайÑи" /> 133</div> 134</form><div class="textwidget custom-html-widget">
134<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2059583796942721" 135 crossorigin="anonymous"></script>
135 136<!-- Makak.ru â ÑпÑава --> 137<ins class="adsbygoogle" 138 style="display:inline-block;width:160px;height:600px" 139 data-ad-client="ca-pub-2059583796942721" 140 data-ad-slot="9571993984"></ins>
141<script> 142 (adsbygoogle = window.adsbygoogle || []).push({}); 143</script>
143</div><h2>СÑаÑиÑÑика</h2><div class="textwidget custom-html-widget"><!--LiveInternet counter-->
143<script type="text/javascript"> 144document.write("<a><img src='//counter.yadro.ru/hit?t12.3;r"+ 145escape(document.referrer)+((typeof(screen)=="undefined")?"": 146";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? 147screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ 148";h"+escape(document.title.substring(0,150))+";"+Math.random()+ 149"' alt='' title='LiveInternet: показано ÑиÑло пÑоÑмоÑÑов за 24"+ 150" ÑаÑа, поÑеÑиÑелей за 24 ÑаÑа и за ÑегоднÑ' "+ 151"border='0' width='88' height='31'><\/a>") 152</script>
152<!--/LiveInternet--> 153</div><h2>ÐеÑа</h2> <div class="textwidget"><ul><li><a href="https://www.makak.ru/wp-admin/">Ðдмин</a></li> 154<li><a href="https://www.makak.ru/feed/" title="ÐодпиÑиÑеÑÑ Ð½Ð° RSS-ленÑÑ ÑÑого ÑайÑа">RSS запиÑей</a></li> 155<li><a href="https://www.makak.ru/comments/feed/" title="ÐоÑледние комменÑаÑии ко вÑем запиÑÑм в RSS">RSS комменÑаÑиев</a></li></ul></div> 156
156<script async src="https://ad.mail.ru/static/ads-async.js"></script>
156 157<ins class="mrg-tag" style="display:inline-block;text-decoration: none;" data-ad-client="ad-1008259" data-ad-slot="1008259"></ins>
158<script>(MRGtag = window.MRGtag || []).push({})</script>
158</td> 159 160</tr> 161 162<tr valign="top"> 163 <td width="150" style="border-right: #999999 1px dashed;"> 164</td> 165 166 <td width="470" style="border-right: #999999 1px dashed;"><a href="http://www.stvpromo.ru/">РазÑабоÑка и дизайн — StvPromo.ru</a></td> 167 <td> </td> 168</tr> 169</table> 170 171 172</body></html><!-- WP Fastest Cache file was created in 0.097 seconds, on June 13, 2026 @ 09:37 -->
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.