Reply 172467 to: IDStore – PHP 7 compatibility

Avatar: Cram
Cram
Participant
September 14, 2017 at 16:54

Hi,

Taking into account that it was only two errors to solve, I applied the code modifications for myself. Here are the changes I made in the code:

/idstore/code/wordpress-importer/wordpress-importer.php

OLD LINE 795: $$meta[‘key’] = $meta[‘value’];
NEW LINE 795: ${$meta[‘key’]} = $meta[‘value’];

/idstore/option-tree/includes/ot-functions-admin.php

OLD LINE 274: if ( mysql_num_rows( mysql_query( “SHOW TABLES LIKE ‘{$table_prefix}option_tree'” ) ) == 1 && $old_settings = $wpdb->get_results( “SELECT * FROM {$table_prefix}option_tree ORDER BY item_sort ASC” ) ) {

NEW LINE 274: if ( mysqli_num_rows( mysqli_query( “SHOW TABLES LIKE ‘{$table_prefix}option_tree'” ) ) == 1 && $old_settings = $wpdb->get_results( “SELECT * FROM {$table_prefix}option_tree ORDER BY item_sort ASC” ) ) {

I try these changes on staging web and after check that all is ok, i pass the compatibility php 7 check plugin and now IDStore appears like compatible, so, my production web will be migrated to PHP 7 during next hours.

I am aware that I will have to repeat these changes every time the theme IDStore is updated, but I prefer to do so in order to pass the web to php 7. I appreciate any comments or clarification on this topic.

Thanks for your help!.

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.