SQLSTATE[42000] while creating categories using REST API?

I created categories using REST api by below code. <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $directory = $objectManager->get(‘\Magento\Framework\Filesystem\DirectoryList’); $rootPath = $directory->getRoot(); $filename = $rootPath . ‘/import.csv’; //$file = fopen(‘/var/www/html/magento2/correct.csv’, ‘wb’); $result = array(); $keys = array(“id”,”name”,”parent_id”,”is_active”,”is_anchor”,”include_in_menu”,”custom_use_parent_settings”,”description”,”meta_title”,”meta_keywords”,”meta_description”); if(file_exists($filename)){ foreach (file($filename) as $key => $str) { if ($key == 0) continue; $values = str_getcsv($str,”,”,'”‘); $result[] = array_combine($keys, $values); }…

WordPress function for 1 to for many

I have this function: add_filter( ‘prdctfltr_show_filter’, ‘my_hide_filter_on_category_function_jkbg4iu3b’ ); function my_hide_filter_on_category_function_jkbg4iu3b() { if ( is_product_category( ‘cheese’ ) ) { return false; } return true; } Is any possibility to use ONE function and ONE filter but for MANY WooC Product Categories – not only for “cheese” but also for “sausages, wine, chocolate, etc” at ONE function…

Custom Registration Form getInstance() Could Not Load File

Joomla 3.9.14 I have an external script that allows users to register on my Joomla site. The code is below; php <?php include(‘conn.php’); require_once JPATH_BASE .’/components/com_users/models/registration.php’; $model = new UsersModelRegistration(); jimport(‘joomla.mail.helper’); jimport(‘joomla.user.helper’); $language = JFactory::getLanguage(); $language->load(‘com_users’, JPATH_SITE); $language->load(‘com_content’, JPATH_ADMINISTRATOR); $language->load(‘lib_joomla’, JPATH_ADMINISTRATOR); $username = ‘adam’; $name = ‘adam24’; $email = ‘testmail@localhost.com’; $password = ‘password’; $data =…