Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Images, Videos & Podcasts
  •  
  • MODx Parse Error for directResize#

  • 3633
    84
    The Ultimate Website Blog

    bluegum Reply #1, 11 months, 1 week ago

    Reply
    • Link to this post#1
    My client has this error displaying on their website:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: Function eregi_replace() is deprecated
    Error type/ Nr.: - 8192
    File: /home/username/public_html/assets/plugins/directresize/directResize.php
    Line: 459
    Line 459 source: $currentImgPath = eregi_replace("^.+src=('|\")","",$imgs[0][$n]);

    Parser timing
    MySQL: 0.0045 s (0 Requests)
    PHP: 0.0640 s
    Total: 0.0684 s

    Could someone please help me solve it for them? Thanks in advance.

    If this is the wrong forum, please move this thread to the right forum.


  • 16610
    609
    QuickManager+ official project page

    Mikko Lammi, Owner at Maagit

    Lammikko Reply #2, 11 months, 1 week ago

    Reply
    • Link to this post#2
    Eregi_replace function is deprecated in PHP 5.3+.

    You may be able to turn off these warnings in your php.ini file (ask your host):
    error_reporting = E_ALL & ~E_DEPRECATED

    If that's not possible you have to modify your script (directResize.php) to support preg_replace instead of eregi_replace: http://www.php.net/manual/en/function.preg-replace.php


  • 36551
    45

    Terry Reply #3, 6 months, 2 weeks ago

    Reply
    • Link to this post#3
    Has anyone successfully modified directResize to fix this problem? I've not been able to make this work.


  • 3232
    319

    Brian Reply #4, 6 months, 2 weeks ago

    Reply
    • Link to this post#4
    which version of directresize are you looking to fix?


  • 36551
    45

    Terry Reply #5, 6 months, 2 weeks ago

    Reply
    • Link to this post#5
    Brian

    I'm referring to directresize for evo. I've got someone working on this for me, but if you have anything that would speed things along, that would be great.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Lammikko, betoranaldi, bluegum, terrybarth

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy