We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42041
    • 3 Posts
    hi

    i got this huge file error.log in /core/cache/logs

    it's constantly adding up errors, every few minutes..

    [2012-11-10 23:27:08] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
    


    what can i do about it?

    thx!
      • 22303 MODX Staff
      • 10,725 Posts
      First, fix the tag causing your error. Somewhere you are sending an empty string to a link tag.

      Second, truncate the file.
        • 3749
        • 24,544 Posts
        The fact that there are so many errors suggests that the bad tag is probably in your template. Feel free to paste the template code in a reply here.
          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
          • 42041
          • 3 Posts
          Quote from: BobRay at Nov 11, 2012, 10:07 AM
          The fact that there are so many errors suggests that the bad tag is probably in your template. Feel free to paste the template code in a reply here.

          thx for the advice. here is the header of the page. i think, the error could be hidden somewhere, cause there's so many errors of the same type and the header is included in all pages..

          <html xmlns="http://www.w3.org/1999/xhtml"
                xmlns:og="http://ogp.me/ns#"
                xmlns:fb="http://www.facebook.com/2008/fbml">
          <head>
          <title>[[++site_name]] - [[*pagetitle]]</title>
          <base href="[[!++site_url]]" />
          <link rel="stylesheet" href="assets/templates/default/css/layout.css" type="text/css" media="screen" />
          <link rel="stylesheet" href="assets/templates/default/css/style.css" type="text/css" media="screen" />
          <link rel="stylesheet" href="assets/templates/default/css/nav.css" type="text/css" media="screen" />
          
          <link rel="stylesheet" type="text/css" href="assets/templates/default/css/lightbox.css" media="screen" />
          <link rel="stylesheet" type="text/css" href="assets/templates/default/css/base/jquery.ui.core.css" />
          <link rel="stylesheet" type="text/css" href="assets/templates/default/css/base/jquery.ui.tabs.css" />
          <link rel="stylesheet" type="text/css" href="assets/templates/default/css/base/jquery.ui.datepicker.css" />
          
          
          <link rel="stylesheet" type="text/css" href="assets/templates/default/css/base/jquery.ui.autocomplete.custom.css" />
          
          <link  href="//fonts.googleapis.com/css?family=Ubuntu:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" >
          
          <meta property="og:title" content="[[*pagetitle]]" />
          <meta property="og:type" content="blog" />
          <meta property="og:url" content="[[!++site_url]][[~[[*id]]]]" />
          <meta property="og:image" content="[[!++site_url]][[*teaser]][[*bild]]" />
          <meta property="og:description" content="[[*introtext:strip_tags]]" />
          <meta property="og:site_name" content="[[++site_name]]" />
          <meta property="fb:admins" content="1052678866" />
          
          <script type="text/javascript" src="assets/templates/default/js/common.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/swfupload.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/swfupload.queue.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/fileprogress.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/handlers.js"></script>
          
          <script type="text/javascript" src="assets/templates/default/js/prototype.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/scriptaculous.js?load=effects,builder"></script>
          <script type="text/javascript" src="assets/templates/default/js/lightbox.js"></script>
          
          <script type="text/javascript" src="assets/templates/default/js/jquery-1.6.2.min.js"></script> 
          <script type="text/javascript" src="assets/templates/default/js/jquery.ui.core.js"></script> 
          <script type="text/javascript" src="assets/templates/default/js/jquery.ui.widget.js"></script> 
          <script type="text/javascript" src="assets/templates/default/js/jquery.ui.datepicker.js"></script> 
          <script type="text/javascript" src="assets/templates/default/js/jquery.ui.tabs.js"></script> 
          
          <script type="text/javascript" src="assets/templates/default/js/jquery.show_char_limit-1.2.0.js"></script> 
          
          <script type="text/javascript" src="assets/templates/default/js/jquery-ui-1.8.core-and-interactions.min.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/jquery-ui-1.8.autocomplete.min.js"></script>
          <script type="text/javascript" src="assets/templates/default/js/tag-it.js"></script>
          
          <script>
          jQuery.noConflict();
          jQuery(document).ready(function(){
          	jQuery("#mytags").tagit({
          availableTags:[ [[!tagLister? &tv=`tags` &limit=`100` &tpl=`rawTagList`]] ]
          
          });
          });
          </script>
          
          </head>
          
          <body>
          <div id="stripe">
          <div id="wrapper">
          <div id="top">
          [[!Profile]]
          [[!If?
             &subject=`[[+username]]`
             &operator=`EQ`
             &operand=``
             &then=`[[$userLogin]]`
             &else=`[[$userNavigation]]`
          ]]
          
          <div id="searchForm"><div id="searchHint">type to search:</div>[[!SimpleSearchForm? &tpl=`searchFormTpl` &landing=`138`]]</div>
          </div>
          
          <div id="header">
            <div id="logo" style="float:left;"><a href="[[++site_url]]"><img src="assets/templates/default/css/images/logo.png" height="74"/></a></div>
          
            <div id="fb-root" style="float:right; width:150px;height:72px;">
          <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
          <fb:like-box href="http://www.facebook.com/blabla" show_faces="false" stream="false" header="false"></fb:like-box></div>
          </div>
          
          <nav>
          <div id="topnavi">[[!Wayfinder? &startId=`0` &level=`1` &outerTpl=`menuContainer` &rowTpl=`menuRows` &outerClass=`navigation` &rowClass=`navitems` &hereClass=`navactive` &firstClass=`navfirst` &lastClass=`navlast`]]</div>
          </nav>
          
          		
          
            • 33987 ☆ A M B ☆
            • 197 Posts
            That error is usually the result of a link missing an ID or having a non-numeric ID in that link field. For example: [[~nan]] or [[~]], while it should be [[~1]]. Please note that it might be also a snippet somewhere with $modx->makeUrl(1) in it, with an empty value or non-numeric value.
              Sterc Internet & Marketing | MODX Founding Partner | Chairman of the MODX Advisory Board

              In need of a MODX consult? Try our MODX Developers Experts!
              • 9102 ☆ A M B ☆
              • 318 Posts
              Do you have more than one front-end context? I sometimes get this error when I mistakenly try to create the URL in the wrong context.

              Otherwise, yeah, it's probably a tag typo somewhere, but it doesn't appear to be in the code you pasted. Maybe in your Wayfinder template?