Modx php parse error syntax error

Содержание
  1. Answered Parse error after new 2.2.1 install? [Resolved]
  2. Don’t Be That Guy
  3. Thank the People that Help
  4. Ошибка при установке MODx Revo
  5. Комментарии: 18
  6. Saved searches
  7. Use saved searches to filter your results more quickly
  8. modx revo 2.6.1 Parse error: syntax error, unexpected ‘ modx revo 2.6.1 Parse error: syntax error, unexpected ‘ Comments generates script in file .\core\cache\includes\elements\modplugin.include.cache.php event->name) < case 'OnMODXInit': $fqn = $modx->getOption('pdoTools.class', null, 'pdotools.pdotools', true); $path = $modx->getOption('pdotools_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); $fqn = $modx->getOption('pdoFetch.class', null, 'pdotools.pdofetch', true); $path = $modx->getOption('pdofetch_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); break; case 'OnSiteRefresh': /** @var pdoTools $pdoTools */ if ($pdoTools = $modx->getService('pdoTools')) < if ($pdoTools->clearFileCache()) < $modx->log(modX::LOG_LEVEL_INFO, $modx->lexicon('refresh_default') . ': pdoTools'); > > break; > return; event->name) < case 'OnMODXInit': $fqn = $modx->getOption('pdoTools.class', null, 'pdotools.pdotools', true); $path = $modx->getOption('pdotools_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); $fqn = $modx->getOption('pdoFetch.class', null, 'pdotools.pdofetch', true); $path = $modx->getOption('pdofetch_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); break; case 'OnSiteRefresh': /** @var pdoTools $pdoTools */ if ($pdoTools = $modx->getService('pdoTools')) < if ($pdoTools->clearFileCache()) < $modx->log(modX::LOG_LEVEL_INFO, $modx->lexicon('refresh_default') . ': pdoTools'); > > break; > return; The text was updated successfully, but these errors were encountered: Источник
  9. modx revo 2.6.1 Parse error: syntax error, unexpected ‘ Comments generates script in file .\core\cache\includes\elements\modplugin.include.cache.php event->name) < case 'OnMODXInit': $fqn = $modx->getOption('pdoTools.class', null, 'pdotools.pdotools', true); $path = $modx->getOption('pdotools_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); $fqn = $modx->getOption('pdoFetch.class', null, 'pdotools.pdofetch', true); $path = $modx->getOption('pdofetch_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); break; case 'OnSiteRefresh': /** @var pdoTools $pdoTools */ if ($pdoTools = $modx->getService('pdoTools')) < if ($pdoTools->clearFileCache()) < $modx->log(modX::LOG_LEVEL_INFO, $modx->lexicon('refresh_default') . ': pdoTools'); > > break; > return; event->name) < case 'OnMODXInit': $fqn = $modx->getOption('pdoTools.class', null, 'pdotools.pdotools', true); $path = $modx->getOption('pdotools_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); $fqn = $modx->getOption('pdoFetch.class', null, 'pdotools.pdofetch', true); $path = $modx->getOption('pdofetch_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); break; case 'OnSiteRefresh': /** @var pdoTools $pdoTools */ if ($pdoTools = $modx->getService('pdoTools')) < if ($pdoTools->clearFileCache()) < $modx->log(modX::LOG_LEVEL_INFO, $modx->lexicon('refresh_default') . ': pdoTools'); > > break; > return; The text was updated successfully, but these errors were encountered: Источник
  10. Comments
Читайте также:  Os system python mac

Answered Parse error after new 2.2.1 install? [Resolved]

Is that correct or does it need to be changed?

This question has been answered by bodhic. See the first response.

Seems to be an issue with Revo 2.2.1

I just installed 2.2.0.pl2 and it worked flawlessly.

Anyone know how to fix this error?

I can’t move on until I get this resolved, as some of the key addons i want to use won;t work in the earlier versions.

I had the same problem and this fix worked for me:

$config_options = array ( ); $driver_options = array ( );

if (!defined(‘MODX_CACHE_DISABLED’))

Hopefully this will work for you.

but in the end I didn’t have to.

I ripped out the install, re downloaded the zip file and started again.

$config_options = ; $driver_options = ;
$config_options = ''; $driver_options = '';

This is very odd. I just loaded version 2.2.5 and during the install got the same errors. I made all of the above corrections, before I saw this thread, and then I got:

Fatal error: Class ‘xPDODriver_’ not found in C:\xampp\htdocs\cms\modx\sitename\core\xpdo\xpdo.class.php on line 1823

I’m using Windows 7, XAMPP local server, got all of the green check marks during installation. This is my first try with Modx, and I’m wondering why I need to debug code during installation. Or did I install the wrong version?

installed 2.2.5 and got exactely that error. thanks for your hints! helped me installing modx revolution on the clients hoster.
apache2.0 php5.2.14 mysql5.0.67 [ed. note: charismeki last edited this post 10 years, 8 months ago.]

Don’t have a MODX.com account? Create one

Don’t Be That Guy

Be nice, respectful and patient. Inflammatory or inappropriate posts will get your post nuked and flood your life with bans and bad karma.

Thank the People that Help

Remember, this is an Open Source project and the volunteers here assist out of love for the project and a desire to help others.

Источник

Ошибка при установке MODx Revo

Добрый день! Начал как то писать снипеты для MOdx, ну тренировка, благо Василий помогает. Так как свободного хостинга с доменом нету, решил поставить на локалку. Сама установка проходит отлично, все ОК зеленым. Но до того как надо удалить папку Setup у меня выскакивает такая ошибка:

Parse error: syntax error, unexpected '{' in D:\OpenServer\domains\modx.local\core\config\config.inc.php on line 13

Лезу в этот файл, правлю ошибки, потом уже идет ошибка xpdo. там строка 1530 что ли.
Ставил на 4-х компах с виндой и openserver/denwer. Так же на 2-х с линуксом. Проблема одна и таже. Версии 2,2,9\2,2,8 даже 2,2,5 нашел и поставил, результат один. Даже не знаю в какую сторону рыть. Раньше проблем не было. Подскажите пожалуйста

Михаил /users/electrica modx.pro https://modx.pro

Комментарии: 18

Я написал пару статей, снял видео, ответил на сотни вопросов про хостинг, и даже виртуальную машину готовую выложил.

Никакого желания разбираться с твоим слабым ноутом у меня нет.

Я на самом деле 90% задаваемых в интернете вопросов просто не вижу, из-за своего хостинга.

modx.local: 127.0.0.1 [29/Sep/2013:23:02:52 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:02:52 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "http://modx.local/setup/index.php?action=complete" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:23 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:24 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "http://modx.local/setup/index.php?action=complete" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:24 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:25 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "http://modx.local/setup/index.php?action=complete" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:25 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:26 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "http://modx.local/setup/index.php?action=complete" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:26 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36" modx.local: 127.0.0.1 [29/Sep/2013:23:30:26 +0600] "GET /setup/index.php?action=complete HTTP/1.1" 200 151 "http://modx.local/setup/index.php?action=complete" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36"
130929 21:31:12 [Note] Plugin 'FEDERATED' is disabled. 130929 21:31:13 InnoDB: Initializing buffer pool, size = 10.0M 130929 21:31:13 InnoDB: Completed initialization of buffer pool 130929 21:31:14 InnoDB: Started; log sequence number 0 44233 130929 21:31:14 [Note] Event Scheduler: Loaded 0 events 130929 21:31:14 [Note] D:\OpenServer\modules\database\MySQL-5.1.68\bin\mysqld.exe: ready for connections. Version: '5.1.68-community-log' socket: '' port: 3306 MySQL Community Server (GPL)

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modx revo 2.6.1 Parse error: syntax error, unexpected ‘

modx revo 2.6.1 Parse error: syntax error, unexpected ‘

Comments

generates script in file .\core\cache\includes\elements\modplugin\4.include.cache.php

 event->name) < case 'OnMODXInit': $fqn = $modx->getOption('pdoTools.class', null, 'pdotools.pdotools', true); $path = $modx->getOption('pdotools_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); $fqn = $modx->getOption('pdoFetch.class', null, 'pdotools.pdofetch', true); $path = $modx->getOption('pdofetch_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); break; case 'OnSiteRefresh': /** @var pdoTools $pdoTools */ if ($pdoTools = $modx->getService('pdoTools')) < if ($pdoTools->clearFileCache()) < $modx->log(modX::LOG_LEVEL_INFO, $modx->lexicon('refresh_default') . ': pdoTools'); > > break; > return; event->name) < case 'OnMODXInit': $fqn = $modx->getOption('pdoTools.class', null, 'pdotools.pdotools', true); $path = $modx->getOption('pdotools_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); $fqn = $modx->getOption('pdoFetch.class', null, 'pdotools.pdofetch', true); $path = $modx->getOption('pdofetch_class_path', null, MODX_CORE_PATH . 'components/pdotools/model/', true); $modx->loadClass($fqn, $path, false, true); break; case 'OnSiteRefresh': /** @var pdoTools $pdoTools */ if ($pdoTools = $modx->getService('pdoTools')) < if ($pdoTools->clearFileCache()) < $modx->log(modX::LOG_LEVEL_INFO, $modx->lexicon('refresh_default') . ': pdoTools'); > > break; > return; 

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью