перенес на новый хостинг: все работает, но вместо отзывов в админке:
4.|` <I request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) { $this->model_catalog_review->addReview($this->request->post); $this->session->data['success'] = $this->language->get('text_success'); $url = ''; if (isset($this->request->get['sort'])) { $url .= '&sort=' . $this->request->get['sort']; } if (isset($this->request->get['order'])) { $url .= '&order=' . $this->request->get['order']; } if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->redirect($this->url->link('catalog/review', 'token=' . $this->session->data['token'] . $url, 'SSL')); } $this->getForm(); } public function update() { $this->load->language('catalog/review'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('catalog/review'); if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) { $this->model_catalog_review->editReview($this->request->get['review_id'], $this->request->post); $this->session->data['success'] = $this->language->get('text_success'); $url = ''; if (isset($this->request->get['sort'])) { $url .= '&sort=' . $this->request->get['sort']; } if (isset($this->request->get['order'])) { $url .= '&order=' . $this->request->get['order']; } if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->redirect($this->url->link('catalog/review', 'token=' . $this->session->data['token'] . $url, 'SSL')); } $this->getForm(); } public function delete() { $this->load->language('catalog/review'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('catalog/review'); if (isset($this->request->post['selected']) && $this->validateDelete()) { foreach ($this->request->post['selected'] as $review_id) { $this->model_catalog_review->deleteReview($review_id); } $this->session->data['success'] = $this->language->get('text_success'); $url = ''; if (isset($this->request->get['sort'])) { $url .= '&sort=' . $this->request->get['sort']; } if (isset($this->request->get['order'])) { $url .= '&order=' . $this->request->get['order']; } if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->redirect($this->url->link('catalog/review', 'token=' . $this->session->data['token'] . $url, 'SSL')); } $this->getList(); } private function getList() { if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'r.date_added'; } if (isset($this->request->get['order'])) { $order = $this->request->get['order']; } else { $order = 'ASC'; } if (isset($this->request->get['page'])) { $page = $this->request->get['page']; } else { $page = 1; } $url = ''; if (isset($this->request->get['sort'])) { $url .= '&sort=' . $this->request->get['sort']; } if (isset($this->request->get['order'])) { $url .= '&order=' . $this->request->get['order']; } if (isset($this->request->get['page'])) { $url .= '&page=' . $this->request->get['page']; } $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' =>PRODUCTS { "{DCBDFBA2-2FB2-4AC2-8F08-18FE72E78E2D}" { SPMDBID 1 EVENTS "" OPERATIONS "" @ { STATUS UPTODATE SPMDBVERSION 7.0.0.193 NAME "Mozilla Firefox" PREVSTATUS UPDATEAVALIABLE VENDOR "Mozilla Corporation" EXECUTABLE { NAME firefox.exe } USERFIX http://download.cnet.com/Mozilla-Firefox/3014-2356_4-10208565.html?part=firefox INSTALL removed ICON { PATH "C:\\Program Files\\Mozilla Firefox\\firefox.exe" } CRITICALITY LOW SCRIPT "\r\n\r\n local infoExpirationInterval = 144000\r\n local minimumUpdateVersion = \"3.6.25\"\r\n local MAINKEY = \"SOFTWARE\\\\Mozilla\\\\Mozilla Firefox\\\\\"\r\n\r\n function beforeProductDiscovery()\r\n VERTAG = queryRegValue(REGISTRY.VERSION,MAINKEY)\r\n return VERTAG\r\n end\r\n\r\n function afterProductDiscovery()\r\n return readIniString(\"Settings\", \"ACCEPTED_MAR_CHANNEL_IDS\", \"\", INSTALLDIR .. \"update-settings.ini\") ~= \"firefox-mozilla-esr\" and compareVersion(minimumUpdateVersion,getCurrentVersion())>=0\r\n end\r\n\r\n function productRegKeyName()\r\n return MAINKEY .. VERTAG .. \"\\\\Main\"\r\n end\r\n\r\n function findLanguageID()\r\n return assert(VERTAG:match(\"%((.+)%)\"), \"Invalid format of version tag\", VERTAG)\r\n end\r\n\r\n function getCurrentVersion()\r\n local path = INSTALLDIR .. \"application.ini\"\r\n local pv = readIniString(\"App\", \"Version\", \"\", path)\r\n assert(pv ~=\"\" , \"Attempt to determine the currrent version failed\" , path)\r\n return pv\r\n end\r\n\r\n function removeSlash(path)\r\n return (path:sub(-1) == \"\\\\\") and path:sub(1,-2) or path\r\n end\r\n\r\n function getWorkingDirectory()\r\n return removeSlash(INSTALLDIR)\r\n end\r\n\r\n\r\n function onInfoDownloadSuccess(opId,opResult,opParameters)\r\n if STATUS~=\"CHECKING\" then -- overdue event\r\n os.remove(opParameters.DestinationPath)\r\n logWarn(\"Download completed in wrong product state '%s'!\", status)\r\n return 1\r\n end\r\n local xml = assert(readFile(opParameters.DestinationPath,true),getExtError())\r\n local info = xml2table(xml)\r\n REMOTEVERSION = info.updates and info.updates.update and info.updates.update[\"\"].appVersion or CURRENTVERSION\r\n logInfo(\"Remote version: %s Current version: %s\", REMOTEVERSION, CURRENTVERSION)\r\n INFOURL = opParameters.SourceURL \r\n INFOFILE = opParameters.DestinationPath\r\n local cv = compareVersion()\r\n if cv>=0 then\r\n logInfo(\"The product doesn't require update\")\r\n setStatus(\"UPTODATE\")\r\n return nil\r\n end\r\n logInfo(\"The product requires update\")\r\n setStatus(\"UPDATEAVALIABLE\")\r\n DOWNLOAD = { URL = info.updates.update.patch[\"\"].URL; FILE = \"update.mar\" ; CURL = true }\r\n INSTALL = {CMDLINE = '\"{INSTALLDIR}updater.exe\" \"{removeSlash(extractDirectory(INSTALLERPATH))}\" \"{removeSlash(INSTALLDIR)}\"' }\r\n tryDownload()\r\n end\r\n\r\n \r\n function onInfoDownloadFailed(opId,err)\r\n logWarn(\"Downloading failed, error '%s'\",err)\r\n setStatus(\"UPTODATE\")\r\n end\r\n\r\n function startUpdateInfoDownload(url)\r\n local path = getDestinationPath(url,\"update.xml\")\r\n trace(\"FilePath: %s\", path)\r\n operation.start(\"CurlDownload\",\"InfoDownload\", { SourceURL = url; DestinationPath = path } )\r\n end\r\n \r\n function buildInfoUrl()\r\n local buildId = readIniString(\"App\", \"BuildID\", \"\", INSTALLDIR .. \"application.ini\")\r\n assert(buildId~=\"\",\"Invalid Build ID\")\r\n local osver = assert(getOSVersion(),getExtError())\r\n local pm = is64BitOS() and \"x64\" or \"x86\"\r\n local url = string.format(\"https://aus3.mozilla.org/update/3/Firefox/%s/%s/WINNT_x86-msvc/%s/release/Windows_NT%%20%s%%20%%28%s%%29/default/default/update.xml?avast=1\",CURRENTVERSION,buildId,LANGID,osver,pm)\r\n return url\r\n end\r\n if checkFeature(\"CurlDownload\") then\r\n function doScan()\r\n if not discoverProduct() then\r\n setStatus(\"NOTFOUND\")\r\n return\r\n end\r\n local url = buildInfoUrl()\r\n trace(\"InfoUrl: %s\", url)\r\n if INFOURL == url and INFOFILE then\r\n local a = getFileAttributes(INFOFILE)\r\n if a then \r\n trace(\"Info file mification time: %s , %s\", a.LastModificationTime, os.time()) \r\n end\r\n if a and infoExpirationInterval > (a.LastModificationTime - os.time()) then\r\n setStatus(compareVersion() >= 0 and \"UPTODATE\" or \"UPDATEAVALIABLE\")\r\n return\r\n end\r\n logInfo(\"Info file doesn't exist or expiried\")\r\n end\r\n INFOURL=nil\r\n -- os.remove(INFOFILE)\r\n setStatus(\"CHECKING\")\r\n startUpdateInfoDownload(url)\r\n end\r\n end\r\n \r\n function verifyAfterUpdate(err)\r\n if not discoverProduct() or 0 > compareVersion() then\r\n setFailed(\"Product has not been updated\",err ~=0 and string.format(\"Installer exit with %u\\n\",err))\r\n else\r\n logInfo(\"Product successfully updated\")\r\n setStatus(\"UPTODATE\")\r\n end\r\n end\r\n\r\n " ERRORINFO "infoExpirationInterval: 144000\nminimumUpdateVersion: 3.6.25\nMAINKEY: SOFTWARE\\Mozilla\\Mozilla Firefox\\\n" ERROR "
(853)/_G.xpcall/dispatch(830)/_G.loadProductScript(824)/chunk(85): [string \"Specific\"]:85: attempt to call global 'checkFeature' (a nil value)" DISCOVERED true DOWNLOAD_ATTEMPT_COUNT 0 REMOTEVERSION 24.0 VERTAG "24.0 (ru)" DOWNLOAD removed PRODUCTVERSION 24.0 RELEASENOTES https://www.mozilla.org/firefox/24.0/releasenotes/ LANGID ru OLDVERSION 23.0.1 INSTALLDIR "C:\\Program Files\\Mozilla Firefox\\" REGISTRY { VERSION CurrentVersion PATH "Install Directory" } FLAGS { IS64BIT false } CURRENTVERSION 24.0 } } "{A041109A-197F-4EA4-A713-F938E86E0A64}" { SPMDBID 11 EVENTS "" OPERATIONS "" @ { STATUS UPTODATE SPMDBVERSION 7.0.0.193 NAME ICQ PREVSTATUS NEW ICON { PATH "C:\\Program Files\\ICQ7.7\\ICQ.exe" } SCRIPT "\r\n function findInstallationDir()\r\n local KEY1 = \"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\{60DE4033-9503-48D1-A483-7846BD217CA9}\"\r\n local KEY2 = \"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\{77F665FD-3F60-4B0A-AE14-EC124B7A7FCE}\"\r\n local LOCATION = \"InstallLocation\"\r\n local path = queryRegValue(LOCATION, KEY1) or queryRegValue(LOCATION, KEY2)\r\n return path and extractDirectory(path)\r\n end \r\n " DOWNLOAD_ATTEMPT_COUNT 0 REMOTEVERSION 7.7.0.6547 EXECUTABLE { NAME ICQ.exe REMOTEVER 7.7.0.6547 } CURRENTVERSION 7.7.0.6547 PRODUCTVERSION 7.7 CRITICALITY LOW LANGID neutral USERFIX http://www.icq.com/download/icq/ INSTALLDIR "C:\\Program Files\\ICQ7.7\\" VENDOR "ICQ, LLC." FLAGS { IS64BIT false st->server['REQUEST_METHOD'] != 'POST')) { $review_info = $this->model_catalog_review->getReview($this->request->get['review_id']); } $this->data['token'] = $this->session->data['token']; $this->load->model('catalog/product'); if (isset($this->request->post['product_id'])) { $this->data['product_id'] = $this->request->post['product_id']; } elseif (!empty($review_info)) { $this->data['product_id'] = $review_info['product_id']; } else { $this->data['product_id'] = ''; } if (isset($this->request->post['product'])) { $this->data['product'] = $this->request->post['product']; } elseif (!empty($review_info)) { $this->data['product'] = $review_info['product']; } else { $this->data['product'] = ''; } if (isset($this->request->post['author'])) { $this->data['author'] = $this->request->post['author']; } elseif (!empty($review_info)) { $this->data['author'] = $review_info['author']; } else { $this->data['author'] = ''; } if (isset($this->request->post['text'])) { $this->data['text'] = $this->request->post['text']; } elseif (!empty($review_info)) { $this->data['text'] = $review_info['text']; } else { $this->data['text'] = ''; } if (isset($this->request->post['rating'])) { $this->data['rating'] = $this->request->post['rating']; } elseif (!empty($review_info)) { $this->data['rating'] = $review_info['rating']; } else { $this->data['rating'] = ''; } if (isset($this->request->post['status'])) { $this->data['status'] = $this->request->post['status']; } elseif (!empty($review_info)) { $this->data['status'] = $review_info['status']; } else { $this->data['status'] = ''; } $this->template = 'catalog/review_form.tpl'; $this->children = array( 'common/header', 'common/footer' ); $this->response->setOutput($this->render()); } private function validateForm() { if (!$this->user->hasPermission('modify', 'catalog/review')) { $this->error['warning'] = $this->language->get('error_permission'); } if (!$this->request->post['product_id']) { $this->error['product'] = $this->language->get('error_product'); } if ((utf8_strlen($this->request->post['author']) < 3) || (utf8_strlen($this->request->post['author']) > 64)) { $this->error['author'] = $this->language->get('error_author'); } if (utf8_strlen($this->request->post['text']) < 1) { $this->error['text'] = $this->language->get('error_text'); } if (!isset($this->request->post['rating'])) { $this->error['rating'] = $this->language->get('error_rating'); } if (!$this->error) { return true; } else { return false; } } private function validateDelete() { if (!$this->user->hasPermission('modify', 'catalog/review')) { $this->error['warning'] = $this->language->get('error_permission'); } if (!$this->error) { return true; } else { return false; } } } ?> Fatal error: Class 'Controllercatalogreview' not found in /var/www/vhost370/data/www/dostavkapicci.ru/vqmod/vqcache/vq2-system_engine_front.php on line 45