AEAbstractDump :: Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘OPTION SQL_BIG_SELECTS=1’ at line 1 SQL=SET OPTION SQL_BIG_SELECTS=1 /administrator/components/com_akeeba/akeeba/engines/dump/native mysql.php 42: enforceSQLCompatibility() change $db->setQuery(‘SET OPTION SQL_BIG_SELECTS=1’); to $db->setQuery(‘SET SQL_BIG_SE..
Category : Joomla
$mailer = JFactory::getMailer(); $config = JFactory::getConfig(); $mailer->setSender($config->getValue( ‘config.fromname’ )); $mailer->addRecipient(array(‘adminname@gmail.com’)); $mailer->isHTML(true); $mailer->Encoding = ‘base64’; $mailer->setSubject(‘Subject Test’); $mailer->setBody(‘Test message’); $send = $mailer->send(); if ( $send !== true ) { echo ‘Error sending email: ‘ . $send->get(‘me..
define(‘_JEXEC’, 1); define(‘DS’, DIRECTORY_SEPARATOR); $path = dirname(__FILE__); $path = empty($path) ? DS : $path; define(‘JPATH_BASE’, $path); header(‘Content-Type: text/html; charset=utf-8′); require_once(JPATH_BASE.DS.’includes’.DS.’defines.php’); require_once(JPATH_BASE.DS.’includes’.DS.’framework.php’); JFactory::getApplication(‘site’)->ini..
В случае некорректного формирования Импорта выставить setlocale (http://wiki.asdream.ru/wiki/CSV_php) В случае формирования пустого CSV при экспорте, проверить: 1. $db->query(«SET SQL_BIG_SELECTS = 1»); 2. memory_limit в настройках шаблона..
Проверка ссылки товара и редирект на норм ссылку (ТЕСТОВАЯ ВЕРСИЯ) foreach($this->document->_links as $key=>$value){ $url_redirect = $key; break; } if($url_redirect!=JRequest::getURI()){ $current_host=»http://».JFactory::getUri()->getHost(); $url_redirect=$current_host.$url_redirect; JApplication::redirect($url_redirect,»,» ,true); } Вывод доп полей на странице списка товаров if (!empty($product->customfields)) { foreach ($product->customfields as $k => $custom) { if (!empty($custom->layout_pos)) { $product->customfieldsSorted[$custom->layout_pos][] = $custom; unset($product->customfields[$k]); } } $product->customfieldsSorted[‘ontop’] = $product->customfields; unset($product->customfields); } ..
/* + check crash tables and repair */ $db = JFactory::getDBO(); $injTables = array(‘pg_session’,’pg_kunena_whoisonline’); $q = ‘CHECK TABLE `’.implode(‘`,`’,$injTables).’`’; $db->setQuery($q); $checkedTables = $db->loadObjectList(); $crashedTables = array(); foreach($checkedTables as $table){ if($table->Msg_text != ‘OK’){ $crashedTables[$table->Table] = $table->Table; } } if(!empty($crashedTables)){ $q = ‘REPAIR TABLE `’.implode(‘`,`’,$crashedTables).’`’; $db->setQuery($q); $db->query(); } /* — check crash tables and..
\libraries\joomla\database\database\mysqli.php line 339 : execute() { $t1 = microtime(); … $t2 = microtime(); $time = $t2 — $t1; if($time > 0.01){ echo ».print_r($time,1).»; echo ».print_r($sq..
JFactory::getDocument(); JFactory::getApplication(); JFactory::getConfig(); JUtility::sendMail($from, $fromname, $recipients, $subject, $email_body, $mode, $ccemails, $bccemails, $email_attachments, $replyto_email, $replyto_name); $file = JFile::write($filename, &$buffer); $file = JFile::delete($filename); // st..
Файл заливать в корень сайта/ Если в подпапке — надо подменять ..
В файле \modules\mod_chronoforms\helper.php жестко указать $event..
Свежие комментарии