Quote Originally Posted by mesnitu View Post
Well , the only way I can get this to work is like this :
around line 1668
PHP Code:
 $v_manufacturers_id = ($ep_uses_mysqli mysqli_insert_id($db->link) : mysql_insert_id()); // id is auto_increment, so can use this function

            
if ($result) {
              
zen_record_admin_activity('Inserted manufacturer ' addslashes($v_manufacturers_name) . ' via EP4.''info');
            } 
I guess the record_admin_activity is inserting also, and probably that's the ID that the manufacturer_info gets....
So the mysqli_insert_id($db->link) should be above that zen_record_etc function,,,,
Correct. The collection of the insertid should always be before any potential access of the database, which of course was supposedly already corrected, but apparently not. Will try to modify the location today, but if done earlier rather than later it will be directly in github which has the potential of being incorrectly typed because there is no copy and paste capability when directly entered. The fix path will be posted here for those stil using this.