We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31961
    • 23 Posts
    Hi all,

    Have been trying to fix a MODx Parse Error that is being generated from the plugin "chunkListParser" for way to long now - i’m really stuck.

    I’m using the tutorial from here:
    http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks

    For some reason this works on my remote server @ Media Temple (as i’ve used this snippet on many live sites before), but not on my local XAMPP environment running off my laptop.

    When I enter the:
    [!chunkListParser?chunks=`[*leftChunks*]` &wrapperdiv=`left`!]
    


    I get the following MODx Parse Error:
    PHP error debug
      Error:	Function split() is deprecated	 
      Error type/ Nr.:	 - 8192	 
      File:	/Applications/XAMPP/xamppfiles/htdocs/manager/includes/document.parser.class.inc.php(770) : eval()'d code	 
      Line:	2
    


    I’m using XAMPP v1.7.2a on Mac OSX 10.6.

    Here is my apache config from XAMPP.
    System 	Darwin Me-MacBook-Pro.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
    Build Date 	Jul 31 2009 16:26:30
    Configure Command 	'./configure' '--prefix=/Applications/XAMPP/xamppfiles' '--program-suffix=-5.3.0' '--libdir=/Applications/XAMPP/xamppfiles/lib/php/php-5.3.0' '--includedir=/Applications/XAMPP/xamppfiles/include/php/php-5.3.0' '--with-apxs2=/Applications/XAMPP/xamppfiles/bin/apxs' '--with-config-file-path=/Applications/XAMPP/xamppfiles/etc' '--with-mysql=/Applications/XAMPP/xamppfiles' '--disable-debug' '--enable-cli' '--enable-cgi' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-discard-path' '--enable-filepro' '--enable-filter' '--enable-force-cgi-redirect' '--enable-fastcgi' '--enable-ftp' '--enable-hash' '--enable-ipv6' '--enable-json' '--enable-odbc' '--enable-path-info-check' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-ttf' '--enable-magic-quotes' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-reflection' '--enable-session' '--enable-spl' '--enable-tokenizer' '--enable-wddx' '--enable-yp' '--enable-xmlreader' '--enable-xmlwriter' '--enable-zlib' '--enable-zts' '--with-simplexml' '--with-iconv' '--with-libxml' '--with-wddx' '--with-xml' '--with-ftp' '--with-ncurses=/Applications/XAMPP/xamppfiles' '--with-gdbm=/Applications/XAMPP/xamppfiles' '--with-jpeg-dir=/Applications/XAMPP/xamppfiles' '--with-png-dir=/Applications/XAMPP/xamppfiles' '--with-freetype-dir=/Applications/XAMPP/xamppfiles' '--without-xpm' '--with-zlib=shared' '--with-zlib-dir=/Applications/XAMPP/xamppfiles' '--with-openssl=/Applications/XAMPP/xamppfiles' '--with-expat-dir=/Applications/XAMPP/xamppfiles' '--enable-xslt=shared,/Applications/XAMPP/xamppfiles' '--with-xsl=shared,/Applications/XAMPP/xamppfiles' '--with-dom=shared,/Applications/XAMPP/xamppfiles' '--with-ldap=shared,/Applications/XAMPP/xamppfiles' '--with-gd=shared' '--with-mysql-sock=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' '--with-mcrypt=/Applications/XAMPP/xamppfiles' '--with-mhash=/Applications/XAMPP/xamppfiles' '--enable-sockets' '--enable-zend-multibyte' '--with-libxml-dir=/Applications/XAMPP/xamppfiles' '--enable-pcntl' '--enable-dbx=shared' '--with-mysqli=shared,/Applications/XAMPP/xamppfiles/bin/mysql_config' '--with-pear=/Applications/XAMPP/xamppfiles/lib/php/pear' '--with-mssql=/Applications/XAMPP/xamppfiles' '--with-imap-dir=/Applications/XAMPP/xamppfiles' '--with-imap=shared,/Applications/XAMPP/xamppfiles' '--enable-mbstring=shared,all' '--with-pgsql=shared,/Applications/XAMPP/xamppfiles' '--with-gettext=/Applications/XAMPP/xamppfiles' '--enable-apache2-2filter=shared' '--enable-apache2-2handler=shared' '--with-bz2=shared' '--with-curl=shared' '--with-dba=shared' '--enable-dbase=shared' '--with-fdf=shared' '--enable-mbregex' '--enable-mbregex-backtrack' '--with-mime-magic=shared' '--with-mysql=shared,/Applications/XAMPP/xamppfiles' '--enable-shmop=shared' '--with-snmp=shared' '--enable-sockets=shared' '--enable-pdo' '--with-sqlite=shared' '--enable-zip=shared,/Applications/XAMPP/xamppfiles' '--enable-exif=shared' '--with-pdo-mssql=shared,/Applications/XAMPP/xamppfiles' '--with-pdo-mysql=shared,/Applications/XAMPP/xamppfiles/bin/mysql_config' '--with-pdo-pgsql=shared,/Applications/XAMPP/xamppfiles' '--with-pdo-sqlite=shared' '--with-pdo-sqlite-external=shared' '--enable-soap=shared' '--with-xmlrpc=shared' '--with-oracle=shared' '--with-pdf=shared' '--with-sqlite3=shared,/Applications/XAMPP/xamppfiles'
    Server API 	Apache 2.0 Handler
    Virtual Directory Support 	disabled
    Configuration File (php.ini) Path 	/Applications/XAMPP/xamppfiles/etc
    Loaded Configuration File 	/Applications/XAMPP/xamppfiles/etc/php.ini
    Scan this dir for additional .ini files 	(none)
    Additional .ini files parsed 	(none)
    PHP API 	20090626
    PHP Extension 	20090626
    Zend Extension 	220090626
    Zend Extension Build 	API220090626,NTS
    PHP Extension Build 	API20090626,NTS
    Debug Build 	no
    Thread Safety 	disabled
    Zend Memory Manager 	enabled
    Zend Multibyte Support 	enabled
    IPv6 Support 	enabled
    Registered PHP Streams 	https, ftps, compress.bzip2, php, file, glob, data, http, ftp, compress.zlib, zip, phar
    Registered Stream Socket Transports 	tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters 	convert.iconv.*, bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.* 
    


    Not sure if this is a problem with MODx 1.0.0 and chunkListParser or the plugin and my server config.

    Please help!
      • 28215
      • 4,149 Posts
      In the snippet, change split() to explode(). Same parameters.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 31961
        • 23 Posts
        Hi plittingred - that has fixed the error but now the snippets do not display.

        Is there anything else in the snippet i need to change based on my config? (i take it my version of PHP is to new?) If not i’m going to downgrade my installation of XAMPP.
          • 27205
          • 6 Posts
          Hey Warmbeat, did you find any solution to this problem. My webhost has upgradet to PHP 5.3 and I have the same problem now.
          I changed split() to explode() but it seems not to be helping.