Peper Posted October 26, 2017 Share Posted October 26, 2017 Hello there Anyone got errors with PHP 7 for file includes/html_output.php Warning: Illegal string offset 'type' in C:\xampp\htdocs\edge\includes\functions\html_output.php on line 409Warning: Illegal string offset 'type' in C:\xampp\htdocs\edge\includes\functions\html_output.php on line 412Warning: Illegal string offset 'type' in C:\xampp\htdocs\edge\includes\functions\html_output.php on line 413 and few other same type errors I compared and could not figure this out 409: $params['type'] = 'submit'; 412: if ( !in_array($params['type'], $types) ) { 413: $params['type'] = 'submit'; 416: if ( ($params['type'] == 'submit') && isset($link) ) { // Output a jQuery UI Button function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('submit', 'button', 'reset'); if ( !isset($params['type']) ) { $params['type'] = 'submit'; } if ( !in_array($params['type'], $types) ) { $params['type'] = 'submit'; } if ( ($params['type'] == 'submit') && isset($link) ) { $params['type'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '<a id="btn' . $button_counter . '" href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ' target="_blank"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= ' class="btn '; $button .= (isset($style)) ? $style : 'btn-default'; $button .= '">'; if (isset($icon) && tep_not_null($icon)) { $button .= ' <span class="' . $icon . '"></span> '; } $button .= $title; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; } Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
♥raiwa Posted October 26, 2017 Share Posted October 26, 2017 Which is your exact 2.3.4 BS version, aprox. download date? 2.3.4 BS is php 7 compatible since 2017-02-26. If your version is older you need to update. About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Peper Posted October 26, 2017 Author Share Posted October 26, 2017 ver 2.3.4.1 https://github.com/gburton/Responsive-osCommerce/ Used winmerge to compare I know my site buttons was changed to use a qty box instead of single add to cart button Unless im on the wrong track for new file updates Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Peper Posted October 26, 2017 Author Share Posted October 26, 2017 Ok, I found it In admin i disabled modules 1 x 1 and once testimonials was disable warnings went away So then checked Display the View button (for current testimonial) = true then errors pops up again Module Version 2.1 Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.