{"id":173,"date":"2013-03-11T11:04:44","date_gmt":"2013-03-11T10:04:44","guid":{"rendered":"http:\/\/www.marranzano.com\/wordpress\/?p=173"},"modified":"2013-03-11T18:27:31","modified_gmt":"2013-03-11T17:27:31","slug":"risolto-oscommerce-call-to-undefined-function-tep_not_null","status":"publish","type":"post","link":"https:\/\/www.marranzano.com\/wordpress\/risolto-oscommerce-call-to-undefined-function-tep_not_null\/","title":{"rendered":"Risolto oscommerce: Call to undefined function tep_not_null()"},"content":{"rendered":"<p>Con OSCommerce pu\u00f2 capitare di imbatterci in un errore di questo tipo:<br \/>\nFatal error: Call to undefined function: tep_not_null()<\/p>\n<p>Indipendentemente da quale file viene indicato come errore puoi provare ad inserire in general.php il codice <!--more--> qui sotto che definisce la funzione.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\/\/ IN CATALOG \/ INCLUDE \/ FUNCTION \/ GENERAL.PHP aggiungere:<br \/>\nfunction tep_not_null($value) {<br \/>\n   if (is_array($value)) {<br \/>\n     if (sizeof($value) > 0) {<br \/>\n       return true;<br \/>\n     } else {<br \/>\n       return false;<br \/>\n     }<br \/>\n   } else {<br \/>\n     if (($value != &#8221;) &#038;&#038; ($value != &#8216;NULL&#8217;) &#038;&#038; (strlen(trim($value)) > 0)) {<br \/>\n       return true;<br \/>\n     } else {<br \/>\n       return false;<br \/>\n     }<br \/>\n   }<br \/>\n }<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>Ricorda di tenere sempre il file originale per sicurezza.<\/p>\n<p>Risolto?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Con OSCommerce pu\u00f2 capitare di imbatterci in un errore di questo tipo: Fatal error: Call to undefined function: tep_not_null() Indipendentemente da quale file viene indicato come errore puoi provare ad inserire in general.php il codice<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[27],"class_list":["post-173","post","type-post","status-publish","format-standard","hentry","category-oscommerce","tag-oscommerce"],"_links":{"self":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/comments?post=173"}],"version-history":[{"count":2,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts\/173\/revisions\/176"}],"wp:attachment":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/media?parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/categories?post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/tags?post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}