Answer the question
In order to leave comments, you need to log in
Snippet and authorization broken MODX Rev?
Today, getting started, I found that some of the snippets do not work.
During the analysis, I found that this code does not work:
$holder = $modx->getObject('modResource',array('alias' => $_GET['href']));
echo $holder->get('pagetitle').'|TIDmuS|'.$holder->get('content');
# php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525/spl.so' - Cannot open "/usr/local/lib/php/20100525/spl.so" in Unknown on line 0
[PHP Modules]
Core
ctype
curl
date
dom
ereg
filter
gd
hash
iconv
imagick
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
Answer the question
In order to leave comments, you need to log in
Show var_dump($_GET) when requested.
I suspect that you have a CNC. Replace $_GET['href'] with $_SERVER['REQUEST_URI']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question