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

    I’m New user of Modx 0.9.1 and I test... and I had a problem
    I’m in Debian Sarge testing, Apache2, Php5 and Mysql 4.1.
    I’have create a first page ( text + Picture ), very simple.
    When I test on my computer , I can see Picture + text BUT another computer, no picture but text OK
    In My computer Firefox 1.0.7 or Konqueror : ok
    Another computer IE or Mozilla 1.7.3 or Firefox 1.5 : Nothing, blank page.

    This Picture is under Jpg, I’have convert on *.png to see if problem persist : yes.....


    Thank,
    Else Great Job for Modx

    PS : sorry ,I m french and a bad English


      • 26873
      • 7 Posts
      After new install, I’have insert only one Picture on document by default..... nothing, no picture on another computer..... I don’t see....

      • Try a "view source" from the browser and see if it’s pointing to a reasonable path in the <img> tag.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 26873
          • 7 Posts
          Well, you can see The source code on my computer ( Firefox 1.0.7 on Debian )

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

          <html xmlns="http://www.w3.org/1999/xhtml">



          <head>

          <title>My MODx Site | MODx CMS Install Success</title>



          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />



          <link rel="stylesheet" href="/Spip/assets/templates/default/site.css" type="text/css" media="screen" />

          <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://localhost/Spip/index.php?id=11" />

          <base href="http://localhost/Spip/" />



          <!--[if lte IE 6]>



          <style type="text/css" media="screen, tv, projection">

          body { behavior: url(assets/js/csshover.htc); } /* hover:anything support */

          #content { margin-left: 22px; } /* to avoid the BMH */

          a, a:link { border-bottom-style: solid } /* becuase IE just doesn’t dot */

          </style>



          <script type="text/javascript" src="assets/js/sleight.js"></script>



          <![endif]-->



          <script src="manager/media/script/scriptaculous/prototype.js" type="text/javascript"></script>

          <script src="manager/media/script/scriptaculous/scriptaculous.js" type="text/javascript"></script>



          <!-- Start QuickEdit headers -->
          <script type="text/javascript">
          var modId = ’1’;
          var managerPath = ’/Spip/manager/’;
          var modPath = ’assets/modules/quick_edit’;
          </script>
          <script src="assets/modules/quick_edit/javascript/cookies.js" type="text/javascript"></script>
          <script src="assets/modules/quick_edit/javascript/output.js" type="text/javascript"></script>
          <script type="text/javascript" src="manager/media/script/scriptaculous/prototype.js"></script>
          <script type="text/javascript" src="manager/media/script/scriptaculous/scriptaculous.js"></script>
          <link type="text/css" rel="stylesheet" href="assets/modules/quick_edit/styles/output.css" />
          <!-- End QuickEdit headers --></head>

          <body><!-- Start QuickEdit toolbar -->
          <div id="QE_Toolbar" onmouseup="QE_SetPosition(this);" style="display:none;">
          <div id="QE_Toolbar_Header">
          <h1 id="QE_Title">QuickEdit</h1>
          <a id="QE_Button_content" class="QE_Button" href="javascript:;" onclick="javascript: QE_ToggleMenu(’content’);">Content</a><a id="QE_Button_setting" class="QE_Button" href="javascript:;" onclick="javascript: QE_ToggleMenu(’setting’);">Settings</a><a id="QE_Button_go" class="QE_Button" href="javascript:;" onclick="javascript: QE_ToggleMenu(’go’);">Go</a>
          </div>
          <div id="QE_Menu_content" class="QE_Menu" style="display:none;">
          <ul>
          <li><a href="javascript:;" id="QE_Toolbar_content" onclick="javascript: QE_OpenEditor(1, ’content’);" title="Edit Document content">Document content</a></li><li><a href="javascript:;" id="QE_Toolbar_description" onclick="javascript: QE_OpenEditor(1, ’description’);" title="Edit You can enter an optional description of the document here.">Description</a></li><li><a href="javascript:;" id="QE_Toolbar_introtext" onclick="javascript: QE_OpenEditor(1, ’introtext’);" title="Edit Type a brief summary of the document">Summary (introtext)</a></li><li><a href="javascript:;" id="QE_Toolbar_longtitle" onclick="javascript: QE_OpenEditor(1, ’longtitle’);" title="Edit Here you can enter a longer title for your document. This is handy for search engines, and might be more descriptive for your document.">Long title</a></li><li><a href="javascript:;" id="QE_Toolbar_pagetitle" onclick="javascript: QE_OpenEditor(1, ’pagetitle’);" title="Edit Type the name/ title of the document here. Try to avoid using backslashes in the name!">Title</a></li>
          </ul>
          </div><div id="QE_Menu_setting" class="QE_Menu" style="display:none;">
          <ul>
          <li><a href="javascript:;" id="QE_ShowLinks" onclick="QE_ToggleLinks(true);"><img id="QE_ShowLinks_check" src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Show links</a></li><li><a href="javascript:;" id="QE_Toolbar_alias" onclick="javascript: QE_OpenEditor(1, ’alias’);" title="Edit Here you can select an alias for this document. This will make the document accessible using:

          http://yourserver/alias

          This only works if you’re using friendly URLs.">Document’s alias</a></li><li><a href="javascript:;" id="QE_Toolbar_cacheable" onclick="javascript: QE_SendAjax(’doc=1&amp;var=cacheable&amp;save=1&amp;tvcacheable=’, function() { window.location.reload() } );" title="Edit Leaving this field checked will allow the document to be saved to cache. If your document contains snippets, make sure this field is unchecked."><img src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Cacheable</a></li><li><a href="javascript:;" id="QE_Toolbar_hidemenu" onclick="javascript: QE_SendAjax(’doc=1&amp;var=hidemenu&amp;save=1&amp;tvhidemenu=1’, function() { window.location.reload() } );" title="Edit Select this option to show document inside a web menu. Please note that some Menu Builders might choose to ignore this option."><img src="assets/modules/quick_edit/images/unchecked.gif" alt="checked" style="float:left; margin-right:3px;" />Hide in menu</a></li><li><a href="javascript:;" id="QE_Toolbar_menuindex" onclick="javascript: QE_OpenEditor(1, ’menuindex’);" title="Edit Menu Index is a field you can use for sorting document in your menu snippet(s). You can also use it for any other purpose in your snippets.">Menu index</a></li><li><a href="javascript:;" id="QE_Toolbar_menutitle" onclick="javascript: QE_OpenEditor(1, ’menutitle’);" title="Edit Menu title is a field you can use to display a short title for the document inside your menu snippet(s) or modules.">Menu title</a></li><li><a href="javascript:;" id="QE_Toolbar_published" onclick="javascript: QE_SendAjax(’doc=1&amp;var=published&amp;save=1&amp;tvpublished=’, function() { window.location.reload() } );" title="Edit Check this field to have the document published immediately after saving it."><img src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Published?</a></li><li><a href="javascript:;" id="QE_Toolbar_searchable" onclick="javascript: QE_SendAjax(’doc=1&amp;var=searchable&amp;save=1&amp;tvsearchable=’, function() { window.location.reload() } );" title="Edit Checking this field will allow the document to be searched. You can also use this field for other purposes in your snippets."><img src="assets/modules/quick_edit/images/checked.gif" alt="checked" style="float:left; margin-right:3px;" />Searchable</a></li>
          </ul>
          </div><div id="QE_Menu_go" class="QE_Menu" style="display:none;">
          <ul>
          <li><a id="QE_Manager" href="/Spip/manager/">Manager</a></li><li><a id="QE_Help" href="http://www.modxcms.com/quickedit.html">Help</a></li><li><a id="QE_Logout" href="index.php?id=1&amp;QuickEdit_logout=logout">Logout</a></li>
          </ul>
          </div>
          </div>
          <!-- End QuickEdit toolbar -->



          <div id="page">





          <div id="header">

          <div id="search"><a name="search"></a>

          <form class="FSF_form" action="index.php?id=8" method="post"><input class="FSF_input" type="text" name="search" value="Search here..." onfocus="this.value=(this.value==’Search here...’)? ’’ : this.value ;" /><input class="FSF_submit" type="submit" name="sub" value="Go!" /></form>


          </div>

          <h1><a href="index.php?id=1" title="My MODx Site">My MODx Site</a></h1>

          </div>

          <!-- close #header -->



          <div id="content">



          <div class="post">

          <h4 class="date-header">15-03-2006 13:41:40</h4>

          <h3 id="post-">Welcome to the MODx Content Management System</h3>

          <a href="javascript:;" onclick="javascript: QE_OpenEditor(1, ’content’, 1);" onmouseover="javascript: QE_HighlightContent(this);" onmouseout="javascript: QE_UnhighlightContent(this);" title="Edit Document content" class="QE_Link" style="display:none;">&laquo; Edit content</a><h3><img width="400" height="267" align="middle" src="http://localhost/Spip/assets/images/a95 - camp nomade 3800m -75.jpg" alt="" /></h3>

          <h3>Install Successful!</h3>

          <p>You have successfully installed and configured MODx. We hope you find this site an adequate starting configuration for many small business, organization or personal websites; just change out the template and add your own content and snippets, and you’ll be good to go! </p>

          <h3>Getting Help</h3>

          <p>The <a target="_blank" href="http://modxcms.com/modx-team.html">team behind MODx</a> strives to contantly add to and refine the documentation to help you get up to speed with MODx:</p>

          <ul>

          <li>For basic instructions on integrating custom templates into MODx, please see the <a href="http://modxcms.com/designer-guide.html" target="_blank">Designer’s Guide</a>. </li>

          <li>For an introduction to working in MODx from the content editors perspectve, see the <a href="http://modxcms.com/editor-guide.html" target="_blank">Content Editor’s Guide</a>. </li>

          <li>For a detailed overview of the backend &quot;manager&quot; and setting up Users and Groups, please peruse the <a href="http://modxcms.com/developers-guide.html" target="_blank">Administration Guide</a>.</li>

          <li>For developers, architecture and API documentation can be found in the <a href="http://modxcms.com/administration-guide.html" target="_blank">Developer’s Guide</a>.</li>

          <li>And if someone has installed this site for you, but you’re curious as to the steps they went through, please see the <a href="http://modxcms.com/getting-started.html" target="_blank">Getting Started Guide</a>.</li>

          </ul>

          <p>And don’t forget, you can always learn and ask questions at the <a target="_blank" href="http://www.modxcms.com/forums">MODx forums</a>. </p>

          </div>

          <!-- close .post (main column content) -->



          </div>

          <!-- close #content -->



          <div id="sidebar">

          <ul>

          <li id="dropmenu"><a name="dropmenu"></a><h2>Pages:</h2>

          <ul class="topnav">
          <li class="here last">Base Install</li>
          </ul>


          </li>



          <li><h2>Meta:</h2>

          <ul>

          <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>

          <li><a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page uses valid Cascading Stylesheets" rel="external">Valid <abbr title="W3C Cascading Stylesheets">css</abbr></a></li>

          <li><a href="http://modxcms.com/" title="Powered by MODx, Do more with less.">MOD<strong>x</strong></a></li>

          </ul>

          </li>



          </ul>

          </div>

          <!-- close #sidebar -->



          <div class="clear">&nbsp;</div>



          <div id="footer">

          <p>

          My MODx Site is powered by

          <a href="http://modxcms.com/" title="Powered by MODx"><strong>MOD</strong>x Content Management System</a>


          <a href="index.php?id=11" title="Link to our Blog RSS Feeds">Blog Entries (RSS)</a>


          MySQL: 0.0145 s, 2 request(s), PHP: 0.0511 s, total: 0.0656 s, document retrieved from cache.

          </p>

          </div>

          <!-- close #footer -->



          </div>

          <!-- close #page -->



          <script type="text/javascript">
          QE_PositionToolbar($(’QE_Toolbar’));
          QE_ToggleLinks();
          new Draggable(’QE_Toolbar’, {handle:’QE_Title’});
          </script></body>

          </html>

          And Now Source code of same page on Windows 2000 SP4 , firefox 1.5

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">

          <head>
          <title>My MODx Site | MODx CMS Install Success</title>

          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

          <link rel="stylesheet" href="/Spip/assets/templates/default/site.css" type="text/css" media="screen" />
          <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://localhost/Spip/index.php?id=11" />
          <base href="http://localhost/Spip/" />

          <!--[if lte IE 6]>

          <style type="text/css" media="screen, tv, projection">
          body { behavior: url(assets/js/csshover.htc); } /* hover:anything support */
          #content { margin-left: 22px; } /* to avoid the BMH */
          a, a:link { border-bottom-style: solid } /* becuase IE just doesn’t dot */
          </style>

          <script type="text/javascript" src="assets/js/sleight.js"></script>

          <![endif]-->

          <script src="manager/media/script/scriptaculous/prototype.js" type="text/javascript"></script>
          <script src="manager/media/script/scriptaculous/scriptaculous.js" type="text/javascript"></script>

          </head>
          <body>

          <div id="page">


          <div id="header">
          <div id="search"><a name="search"></a>
          <form class="FSF_form" action="index.php?id=8" method="post"><input class="FSF_input" type="text" name="search" value="Search here..." onfocus="this.value=(this.value==’Search here...’)? ’’ : this.value ;" /><input class="FSF_submit" type="submit" name="sub" value="Go!" /></form>

          </div>
          <h1><a href="index.php?id=1" title="My MODx Site">My MODx Site</a></h1>
          </div>
          <!-- close #header -->

          <div id="content">

          <div class="post">
          <h4 class="date-header">15-03-2006 13:42:37</h4>
          <h3 id="post-">Welcome to the MODx Content Management System</h3>
          <h3><img width="400" height="267" align="middle" src="http://localhost/Spip/assets/images/a95 - camp nomade 3800m -75.jpg" alt="" /></h3>
          <h3>Install Successful!</h3>
          <p>You have successfully installed and configured MODx. We hope you find this site an adequate starting configuration for many small business, organization or personal websites; just change out the template and add your own content and snippets, and you’ll be good to go! </p>
          <h3>Getting Help</h3>
          <p>The <a target="_blank" href="http://modxcms.com/modx-team.html">team behind MODx</a> strives to contantly add to and refine the documentation to help you get up to speed with MODx:</p>
          <ul>
          <li>For basic instructions on integrating custom templates into MODx, please see the <a href="http://modxcms.com/designer-guide.html" target="_blank">Designer’s Guide</a>. </li>
          <li>For an introduction to working in MODx from the content editors perspectve, see the <a href="http://modxcms.com/editor-guide.html" target="_blank">Content Editor’s Guide</a>. </li>
          <li>For a detailed overview of the backend &quot;manager&quot; and setting up Users and Groups, please peruse the <a href="http://modxcms.com/developers-guide.html" target="_blank">Administration Guide</a>.</li>
          <li>For developers, architecture and API documentation can be found in the <a href="http://modxcms.com/administration-guide.html" target="_blank">Developer’s Guide</a>.</li>
          <li>And if someone has installed this site for you, but you’re curious as to the steps they went through, please see the <a href="http://modxcms.com/getting-started.html" target="_blank">Getting Started Guide</a>.</li>
          </ul>
          <p>And don’t forget, you can always learn and ask questions at the <a target="_blank" href="http://www.modxcms.com/forums">MODx forums</a>. </p>
          </div>
          <!-- close .post (main column content) -->

          </div>
          <!-- close #content -->

          <div id="sidebar">
          <ul>
          <li id="dropmenu"><a name="dropmenu"></a><h2>Pages:</h2>
          <ul class="topnav">
          <li class="here last">Base Install</li>
          </ul>

          </li>

          <li><h2>Meta:</h2>
          <ul>
          <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
          <li><a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page uses valid Cascading Stylesheets" rel="external">Valid <abbr title="W3C Cascading Stylesheets">css</abbr></a></li>
          <li><a href="http://modxcms.com/" title="Powered by MODx, Do more with less.">MOD<strong>x</strong></a></li>
          </ul>
          </li>

          </ul>
          </div>
          <!-- close #sidebar -->

          <div class="clear">&nbsp;</div>

          <div id="footer">
          <p>
          My MODx Site is powered by
          <a href="http://modxcms.com/" title="Powered by MODx"><strong>MOD</strong>x Content Management System</a>

          <a href="index.php?id=11" title="Link to our Blog RSS Feeds">Blog Entries (RSS)</a>

          MySQL: 0.0013 s, 2 request(s), PHP: 0.0501 s, total: 0.0514 s, document retrieved from cache.
          </p>
          </div>
          <!-- close #footer -->

          </div>
          <!-- close #page -->

          </body>
          </html>

          As you can see, Picture is inside ( Bold ligne ) the page code, on another computer, Modx Call the picture on Localhost. I have save this page on another computer and change localhost by my IP adress, and this is OK, I see the picture.
          Then this is a error on my config under Modx manager ...but where !!! Site, ? administration ?.... I don’t Know.

          Well.... thank if you have answer smiley

          thank lot

          • Here’s your problem...

            http://localhost/Spip/assets/images/a95...

            That’s localhost to the machine with the web server, not the other machine accessing it over the network. You need to change your default server name, either use the IP address or give it a different name. My main server’s name is bigmac (three guesses why wink ) and this machine is mobile; my local network name is local, so I have bigmac.local and mobile.local. Or, 10.0.0.11 for the server, 10.0.0.3 for this machine. Both have the other’s names in their "hosts" file so they can access each other without a DNS server.

            But this forum is not really the place to teach/learn networking basics.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 26873
              • 7 Posts
              I see, but on this server, There is a forum phpbb and He work well, inside the lan and out.
              I know the problem of lookup. But when I make a test with an anonymiser ( as an outside user ) for test an user normal I don’t the picture.
              Ok, this is a problem of localhost but where in ModX, I can change value ? : Administration, mysql ( change value localhost, by DynDns value ? ).....

              well....
              thank for your answers

              I continue to search...

              • Check your manager > administration > system configuration under the Interface and editor settings tab, and see what the resource path and resource url are; change them if necessary. There was a post not too long ago about setting it to use a relative path instead of absolute, which might be useful.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 26873
                  • 7 Posts
                  It’s OK, I must creat my page ( and I can’t see picture ) next, see on anonymiser... Strange.. but it’s only solution for picture.

                  Thank, Thank a lot Sottwell
                    • 26873
                    • 7 Posts
                    summary :
                    I’m administrator of my serveur, I creat a Internet site with a new install of MOdx ( I don’t have change none parameters ) and I want put a picture inside the first page ( picture y.jpg by example ).

                    Nota :
                    In manager page --> administration --> system configuration --> Interface & editor settings --> Resource URL: http://localhost/xxx( folder of apache with good right )/assets/ ( this line is by default inside configuration of Modx )
                    I don’t touch this line

                    1 If I insert picture on default page ( I see the picture in preview when I insert --> ok ) , I see picture, another user ( in Lan or Ouside lan ) never --> because inside page code it’s http://localhost/xxx/assets/images/y.jpg

                    Now I change in manager : http://localhost/xxx/assets/ by http://Dyndns parameter ( ex : www.foo.org )/xxx/assets/ and insert picture.

                    1 : I don’t see picture in preview; It’s ok besause a call file on http://www.foo.org/xxx/assets/images/y.jpg for me it’s no problems. I verify code source of the page in preview to be on the picture is here.
                    2 : To be sur that is ok for outside user I use a proxyanonymous ( http://www.proxyguy.com/ ) and I test my page.... nothing

                    For all tests, i have Clean cache of Modx

                    Question :
                    why when I attach a picture, modx Use http://www.foo.org/www/assets/images/y.jpg and not /var/www/assets/images/y.jpg ? ( All users can see pictures on this folder : see and read )

                    Well it’s my test, I’m maybe in error.... thank if you are read this post

                    End

                    Shadowmap smiley





                    • Try changing that to "assets/", if I remember correctly that was the solution I mentioned before was discussed somewhere in the forum. Also in the system settings "miscellaneous" tab make sure "rewrite image paths?" is set to No. That should cause the image insert feature to use ’assets/images/blah.jpg’ which will work.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org