One of our clients has a site that gets around 15,000 views a day. Over the past few weeks the server load has jumped to about 150 (normally around 4). I think part of the problem was with either phpThumbOf and/or AutoFixImageSize. I've disabled AFIS and things got better for a while, but now the load has been jumping up again seemingly randomly. Below is what's in the MODX error log. Can anyone help me with what the issues might be?
Currently the site is running 2.1.0-rc4 (traditional), but there are plans to upgrade very soon to 2.2.4-pl. Thanks for any help you can give!
[2012-07-12 18:23:11] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/befed3acf62030b5dfc1370631f28efb.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 18:23:11] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 392 is not a valid Directory resource
[2012-07-12 18:41:34] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 18:41:38] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 18:41:41] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 19:00:22] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 19:36:22] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/e962e23c139e7252904b9221d9967442.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 19:36:22] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 122 is not a valid Directory resource
[2012-07-12 19:48:04] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/bb80c524b8e9f48ec713794a2324e77f.cache.php
[2012-07-12 19:57:58] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/25aff4e200bbe9eb1905199e474c8a43.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 19:57:58] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 116 is not a valid Directory resource
[2012-07-12 20:29:17] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 20:40:31] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 20:42:10] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 20:43:43] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/25aff4e200bbe9eb1905199e474c8a43.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 20:43:43] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 122 is not a valid Directory resource
[2012-07-12 20:47:06] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 20:48:46] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 20:56:02] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ASC LIMIT 7, 1' at line 1
)
[2012-07-12 20:56:02] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ASC' at line 1
)
[2012-07-12 20:56:03] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ASC LIMIT 7, 1' at line 1
)
[2012-07-12 20:56:03] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ASC LIMIT 7, 1' at line 1
)
[2012-07-12 21:05:54] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 21:06:04] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 21:15:23] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/1c5d3e079a7654d11877796dc7c7bd1c.cache.php
[2012-07-12 21:30:15] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/bb80c524b8e9f48ec713794a2324e77f.cache.php
[2012-07-12 21:35:14] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/753cc77d3f5269e3f0be4a3b1a11a60f.cache.php
[2012-07-12 21:42:01] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/7b98d2564df78c56a60805f6e8e11a86.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 21:42:01] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 122 is not a valid Directory resource
[2012-07-12 21:50:05] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/305e165177682f5f4400f57d83bd93ef.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 21:50:05] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 431 is not a valid Directory resource
[2012-07-12 21:55:40] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 22:00:39] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/bb80c524b8e9f48ec713794a2324e77f.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 22:00:39] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 141 is not a valid Directory resource
[2012-07-12 22:01:10] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 22:04:50] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 22:08:30] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 22:10:44] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 22:13:59] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 22:19:07] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/907e541421c3d7108a017bb2ee701acc.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 22:19:07] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 665 is not a valid Directory resource
[2012-07-12 22:33:59] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/f1408ebd82fd67336652d5c488a81ca4.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 22:33:59] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 668 is not a valid Directory resource
[2012-07-12 22:37:28] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 22:37:28] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 22:37:28] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 22:37:28] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 22:40:32] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/bb80c524b8e9f48ec713794a2324e77f.cache.php
[2012-07-12 23:05:16] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 23:08:24] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVar/910c64a6a2907f5dae2837e015c7afde.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 23:08:24] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 159 is not a valid Directory resource
[2012-07-12 23:10:43] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/70424501dfcc96073598aa7b1a558ddf.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 23:10:43] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 133 is not a valid Directory resource
[2012-07-12 23:17:21] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/05900fa35f9d2207c3d8f766fd0f9b01.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 23:17:21] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 351 is not a valid Directory resource
[2012-07-12 23:17:31] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 23:17:36] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 23:17:41] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 23:23:30] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/b842e5c71349f2e7b5bd418c5ebb8ead.cache.php
[2012-07-12 23:43:30] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 23:43:30] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 23:43:30] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 23:43:30] (ERROR @ /home/username/public_html/core/components/simplesearch/model/simplesearch/simplesearch.class.php : 247) PHP warning: mb_strpos() [<a href='function.mb-strpos'>function.mb-strpos</a>]: Offset not contained in string
[2012-07-12 23:44:56] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') DESC LIMIT 6' at line 1
)
[2012-07-12 23:59:32] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modTemplateVarResource/753cc77d3f5269e3f0be4a3b1a11a60f.cache.php
[2012-07-12 23:59:32] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/86348889d90929d032d1ede29ce45f20.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-12 23:59:32] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 141 is not a valid Directory resource
[2012-07-13 02:31:23] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/b842e5c71349f2e7b5bd418c5ebb8ead.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-13 02:31:23] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/bb80c524b8e9f48ec713794a2324e77f.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-13 02:31:23] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 141 is not a valid Directory resource
[2012-07-13 03:06:12] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/default/wayfinder/cache-98adbdd0118df1bfb4f0f9599c48115a.cache.php
[2012-07-13 03:09:45] (ERROR @ /index.php) Error writing file: /home/username/public_html/core/cache/db/objects/modSession/10ced66874fde08382d63dce0588166f.cache.php
[2012-07-13 03:40:38] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 452) PHP warning: unlink(/home/username/public_html/core/cache/db/objects/modTemplateVarResource/f8248890b826f77ee167124e68473a50.cache.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
[2012-07-13 03:40:38] (ERROR @ /home/username/public_html/core/xpdo/cache/xpdocachemanager.class.php : 460) PHP warning: closedir(): 141 is not a valid Directory resource