We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18373 ☆ A M B ☆
    • 3,141 Posts
    I’m running the Notify404 plugin on my site, which means I get emails of every 404 error being served (by MODX) on my site. Every now and then, when I’m working in the manager I also get a few like these:

    This is an automated email notification of a 404 error that has occured on the Mark Hamstra website.

    Date & time: 21 Feb 2011 - 2:17:37
    Requested: /manager/%5C%22%5B%5B!++site_url%5D%5Dassets%5C/images%5C/menu%5C/modx.png%5C%22
    Host: http://www.markhamstra.nl
    Visitor IP: <mine>
    Referer: http://www.markhamstra.nl/manager/?a=19&id=3
    User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

    Action 19 resolves to the edit template screen, and id 3 is the ID of my current layout. siteurl/assets/images/menu/modx.png is an image I use in my menu and appears as an img tag in my template.

    What I don’t get is why it would be requesting my images, when I’m looking at the code...? It also seems to be inconsistent. Sometimes it gives out the 404’s for all 4 images directly referenced in my template - if I then refresh the screen it doesn’t. Also when I browse the manager while keeping Firebug open to check the requests I can’t find the request again.


    This is Revo 2.0.7 traditional. I have the feeling it’s related to CodeMirror (1.1.0-pl)... but like I said - I can’t replicate it when I want to, so I can’t think of a way to confirm that. Other plugins that are running are VersionX, TinyMCE, Redirector, Notify404, ArchivistFurl and QuipResourceCleaner.

    Environment:
    PHP 5.2.17, MySQL 5.0.90, Apache 2, 64MB memory limit, pdo_mysql 5.0.90,


    Error.log
    Besides some versionx things I need to look in to, this really stands out:
    [2011-02-21 02:25:22] (ERROR @ /home/deb30551n2/domains/markhamstra.nl/public_html/core/model/modx/modmanagerresponse.class.php : 391) PHP warning: file_exists() [<a href=’function.file-exists’>function.file-exists</a>]: open_basedir restriction in effect. File(/home/deb30551n2/domains/markhamstra.nl/public_html/manager/assets/modext/
    &lt;script type=&quot;text/javascript&quot;&gt;
    // &lt;![CDATA[
    Ext.onReady(function() {
    MODx.load({
    xtype: &quot;modx-page-template-update&quot;
    ,id: &quot;3&quot;
    ,record: { <.. whole template escaped here ..> }
    });
    });
    MODx.onTempFormRender = &quot;&quot;;
    MODx.perm.unlock_element_properties = &quot;1&quot;;
    // ]]&gt;
    &lt;/script&gt;) is not within the allowed path(s): (/home/deb30551n2/:/tmp:/var/tmp:/usr/local/lib/php/)

    I never have any issues viewing the template code though, so if a request would fail I expect I would notice that by getting an empty textarea?
      Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

      Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
      • 3749
      • 24,544 Posts
      That looks like safe_mode in action.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 18373 ☆ A M B ☆
        • 3,141 Posts
        safe_mode Off Off
        safe_mode_exec_dir no value no value
        safe_mode_gid Off Off
        safe_mode_include_dir no value no value

        To me it looks like the Ext function to load the template information is being added to the filename that is being checked for existence..

        Got this on Firefox 3.6, Windows 7.
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
          • 3749
          • 24,544 Posts
          Does FireBug show any js errors?
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 18373 ☆ A M B ☆
            • 3,141 Posts
            It’s so random.. I’ve not yet witnessed it happening (that would’ve made debugging way easier), but always get an email a few minutes after I’ve been editing my template... When I try again (with firebug open this time) I can’t seem to replicate it.


            Will try again tonight..
              Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

              Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
              • 14635
              • 5 Posts
              Did you get to the bottom of this? Im seeing similar errors myself.