{"id":18941392,"date":"2026-06-17T18:26:27","date_gmt":"2026-06-17T18:26:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/import-error-71\/"},"modified":"2026-06-17T18:26:27","modified_gmt":"2026-06-17T18:26:27","slug":"import-error-71","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/import-error-71\/","title":{"rendered":"Import error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shortly after importing a large video (300 MB), all imports were blocked and I received an email from WordPress informing me of an error in <code>wppa-common-functions.php<\/code> on line 946.<br \/><br \/>Here is the error log:<br \/>Une erreur de type E_ERROR a \u00e9t\u00e9 caus\u00e9e dans la ligne 946 du fichier \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-content\/plugins\/wp-photo-album-plus\/wppa-common-functions.php. Message d\u2019erreur\u00a0: Uncaught TypeError: Cannot access offset of type string on string in \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-content\/plugins\/wp-photo-album-plus\/wppa-common-functions.php:946<br \/>Stack trace:<br \/>#0 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-content\/plugins\/wp-photo-album-plus\/wppa-admin-functions.php(243): wppa_have_access()<br \/>#1 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-content\/plugins\/wp-photo-album-plus\/wppa-import.php(358): wppa_has_albums()<br \/>#2 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-content\/plugins\/wp-photo-album-plus\/wppa-admin.php(353): _wppa_page_import()<br \/>#3 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-includes\/class-wp-hook.php(341): wppa_page_import()<br \/>#4 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-includes\/class-wp-hook.php(365): WP_Hook-&gt;apply_filters()<br \/>#5 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-includes\/plugin.php(522): WP_Hook-&gt;do_action()<br \/>#6 \/var\/www\/vhosts\/photo-bondier-bergerac.188-165-242-225.plesk.page\/photo-bondier-bergerac.fr\/wp-admin\/admin.php(264): do_action()<br \/>#7 {main}<br \/>\u00a0 thrown<br \/><br \/><br \/>My webmaster has applied the temporary fix below. It works, but it will be removed in the next update:<br \/>\/\/ Any logged out created albums? ( owner = ip )<br \/>$albs = $wpdb-&gt;get_col( &#8220;SELECT owner FROM $wpdb-&gt;wppa_albums&#8221; );<br \/>if ( $albs ) foreach ( $albs as $a ) {<br \/>\/\/if ( wppa_is_int( str_replace( &#8216;.&#8217;, &#8221;, $a[&#8216;owner&#8217;]\u00a0) ) ) return true; \/\/ Erreur car $a est une chaine de caract\u00e8re mais pas un tableau<br \/>if ( wppa_is_int( str_replace( &#8216;.&#8217;, &#8221;, $a ) ) ) return true; \/\/ correction, on remplace $a[&#8216;owner&#8217;] par $a<br \/>}<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is my setup:<br \/>WordPress version 7.0<br \/>Th\u00e8me actif\u00a0: Astra Child (version 1.0.0)<br \/>Extension actuelle\u00a0: WP Photo Album Plus (version 9.2.01.003)<br \/>PHP version 8.3.31<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you in advance for your help,<br \/>Michel<\/p>\n","protected":false},"template":"","class_list":["post-18941392","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18941392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18941392\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18941392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}