We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37042
    • 384 Posts
    I've upgraded my own site to 2.2.4 from (i think) 2.2.1 and I'm getting the saving loop on templates, resources etc.

    I can see from the error log that there's something wrong with a makeUrl but I'm not sure how that happened or how to fix.


    [2012-06-07 20:30:27] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-07 20:56:18] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-08 04:15:52] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-08 06:31:57] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-09 21:51:37] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-10 06:20:39] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-10 17:22:38] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-11 03:44:43] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-11 08:39:10] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-11 11:52:47] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-12 06:44:18] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-13 07:58:56] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-14 15:01:11] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-15 19:06:09] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-16 09:51:31] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-16 12:24:21] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-17 10:28:07] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-17 10:32:02] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-17 22:58:55] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-18 07:39:43] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    [2012-06-19 18:35:51] (ERROR @ /index.php) `id` is not a valid integer and may not be passed to makeUrl()
    
    [2012-06-26 09:30:12] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:30:12] (ERROR @ /connectors/element/template.php) [OnBeforeTempFormSave][SyntaxChecker] Mismatched square brackets in content. Template 2
    [2012-06-26 09:30:31] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:30:44] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:30:44] (ERROR @ /connectors/element/template.php) [OnBeforeTempFormSave][SyntaxChecker] Mismatched square brackets in content. Template 2
    [2012-06-26 09:30:59] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:30:59] (ERROR @ /connectors/element/template.php) [OnBeforeTempFormSave][SyntaxChecker] Mismatched square brackets in content. Template 2
    [2012-06-26 09:31:45] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:31:45] (ERROR @ /connectors/element/template.php) [OnBeforeTempFormSave][SyntaxChecker] Mismatched square brackets in content. Template 2
    [2012-06-26 09:42:50] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:42:50] (ERROR @ /connectors/element/template.php) [OnBeforeTempFormSave][SyntaxChecker] Mismatched square brackets in content. Template 2
    [2012-06-26 09:43:12] (ERROR @ /connectors/element/template.php) [SyntaxChecker] Event:OnBeforeTempFormSave
    [2012-06-26 09:43:12] (ERROR @ /connectors/element/template.php) [OnBeforeTempFormSave][SyntaxChecker] Mismatched square brackets in content. Template 2
    [2012-06-26 18:15:16] (ERROR in xPDOConnection::connect @ /usr/local/pem/vhosts/107321/webspace/httpdocs/core/xpdo/xpdo.class.php : 2998) SQLSTATE[HY000] [2005] Unknown MySQL server host 'mysql798int.cp.blacknight.com' (2)
    [2012-06-26 18:15:16] (ERROR @ /index.php) Error preparing statement for query: SELECT `modSession`.`id` AS `modSession_id`, `modSession`.`access` AS `modSession_access`, `modSession`.`data` AS `modSession_data` FROM `modx_session` AS `modSession` WHERE `modSession`.`id` = ?  - Array
    (
        [0] => 00000
    )

    [ed. note: eladnova last edited this post 14 years, 3 months ago.]
      ...
      • 37042
      • 384 Posts
      I fixed it.

      Basically, I had been trying to add the modify.com code to the site in order to build a responsive / mobile friendly version of the site. The Syntaxchecker package had a real problem with their code and kept telling me it contained
      'Mismatched square brackets in content'

      I had uninstalled it to get past this error and it must have hosed my site in some way.

      I reinstalled Syntaxchecker and the site works again although I can't add the Mobify code. :-/
        ...