Title: Not working with PHP8
Last modified: May 18, 2023

---

# Not working with PHP8

 *  [admsite](https://wordpress.org/support/users/admsite/)
 * (@admsite)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/not-working-with-php8-2/)
 *  the “_each_” _function_ is not available anymore in PHP 8
   WordPress error message:
   Call to undefined function each() in wp-content/plugins/internal-link-building-
   plugin/internal_link_building.php:454After going back to 7.4 – no problemUpdate
   necessary

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [markos33](https://wordpress.org/support/users/markos33/)
 * (@markos33)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/not-working-with-php8-2/#post-17144440)
 * Still doesn’t work in PHP 8.0. Can something be done about it? If you type the
   word dog, it also links to the word dogs. Can this also be changed?
 *  [POS2012](https://wordpress.org/support/users/pos2012/)
 * (@pos2012)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/not-working-with-php8-2/#post-17462645)
 * [@markos33](https://wordpress.org/support/users/markos33/) and [@admsite](https://wordpress.org/support/users/admsite/):
   
   You have to edit the file: internal_link_building.php/wp-content/plugins/internal-
   link-building-plugin/internal_link_building.phpLine 454 find this:
 *     ```wp-block-code
       while (list($name, $ops) = each($keywords)) {
   
       				if($name == 'keywords_time')
       					continue;
   
       				$case = '';
       				if($ops['case'] == 1)
       					$case = ' checked="checked" ';
       				$nofollow = '';
       				if($ops['nofollow'] == 1)
       					$nofollow = ' checked="checked" ';
       				$newwindow = '';
       				if($ops['newwindow'] == 1)
       					$newwindow = ' checked="checked" ';
   
       				$name = str_replace("'","'",stripslashes($name));
   
       				echo "
       					<tr>
       						<td><input type='text' style='width:90%;' value='$name' name='internal_link_building[$x][name]' /></td>
       						<td><input type='text' style='width:90%;' value='$ops[url]' name='internal_link_building[$x][url]' /></td>
       						<td><input type='text' value='$ops[times]' name='internal_link_building[$x][times]' size='4' /></td>
       						<td><input type='text' value='$ops[between]' name='internal_link_building[$x][between]' size='4' /></td>
       						<td><input type='text' value='$ops[before]' name='internal_link_building[$x][before]' size='4' /></td>
       						<td><input type='text' value='$ops[after]' name='internal_link_building[$x][after]' size='4' /></td>
       						<td><input type='checkbox' $case value='1' name='internal_link_building[$x][case]' /></td>
       						<td><input type='checkbox' $nofollow value='1' name='internal_link_building[$x][nofollow]' /></td>
       						<td><input type='checkbox' $newwindow value='1' name='internal_link_building[$x][newwindow]' /></td>
       					</tr>
       					";
       				$x++;
       			}
       ```
   
 * and then remove it, and add this in stead:
 *     ```wp-block-code
       foreach ($keywords as $name => $ops) {
   
           if($name == 'keywords_time')
               continue;
   
           $case = '';
           if($ops['case'] == 1)
               $case = ' checked="checked" ';
           $nofollow = '';
           if($ops['nofollow'] == 1)
               $nofollow = ' checked="checked" ';
           $newwindow = '';
           if($ops['newwindow'] == 1)
               $newwindow = ' checked="checked" ';
   
           $name = str_replace("'","'",stripslashes($name));
   
           echo "
               <tr>
                   <td><input type='text' style='width:90%;' value='$name' name='internal_link_building[$x][name]' /></td>
                   <td><input type='text' style='width:90%;' value='{$ops['url']}' name='internal_link_building[$x][url]' /></td>
                   <td><input type='text' value='{$ops['times']}' name='internal_link_building[$x][times]' size='4' /></td>
                   <td><input type='text' value='{$ops['between']}' name='internal_link_building[$x][between]' size='4' /></td>
                   <td><input type='text' value='{$ops['before']}' name='internal_link_building[$x][before]' size='4' /></td>
                   <td><input type='text' value='{$ops['after']}' name='internal_link_building[$x][after]' size='4' /></td>
                   <td><input type='checkbox' $case value='1' name='internal_link_building[$x][case]' /></td>
                   <td><input type='checkbox' $nofollow value='1' name='internal_link_building[$x][nofollow]' /></td>
                   <td><input type='checkbox' $newwindow value='1' name='internal_link_building[$x][newwindow]' /></td>
               </tr>
               ";
           $x++;
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not working with PHP8’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/internal-link-building-plugin_416c46.
   svg)
 * [Internal Link Building](https://wordpress.org/plugins/internal-link-building-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/internal-link-building-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/internal-link-building-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/internal-link-building-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/internal-link-building-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/internal-link-building-plugin/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [POS2012](https://wordpress.org/support/users/pos2012/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/not-working-with-php8-2/#post-17462645)
 * Status: not resolved