-
☆ A M B ☆
- 350 Posts
I have been repeatedly getting the following error message when opening any file on my website.
[2011-06-12 12:53:19] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2011-06-12 12:53:19] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2011-06-12 12:53:19] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2011-06-12 12:53:19] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2011-06-12 13:04:07] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2011-06-12 13:04:08] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
So ran a catch code as per post
http://modxcms.com/forums/index.php?topic=52561.0 which returned following results. Not quite sure where to look exactly. I did look in the 2.include.cache.php but not sure what should be changed if anything.
[2011-06-12 12:53:56] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2011-06-12 12:53:56] (ERROR @ /index.php) #0 <--mysite-->/core/cache/includes/elements/modplugin/2.include.cache.php(11): modX->makeUrl(NULL)
#1 <--mysite-->/core/model/modx/modscript.class.php(49): elements_modplugin_2(Array)
#2 <--mysite-->/core/model/modx/modx.class.php(1357): modScript->process(Array)
#3 <--mysite-->/core/model/modx/modresponse.class.php(84): modX->invokeEvent(’OnWebPagePreren...’)
#4 <--mysite-->/core/model/modx/modrequest.class.php(110): modResponse->outputContent(Array)
#5 <--mysite-->/core/model/modx/modrequest.class.php(94): modRequest->prepareResponse()
#6 <--mysite-->/core/model/modx/modx.class.php(1162): modRequest->handleRequest()
#7 <--mysite-->/index.php(81): modX->handleRequest()
#8 {main}
This is the code in the 2.include.cache.php file
<?php
function elements_modplugin_2($scriptProperties= array()) {
global $modx;
if (is_array($scriptProperties)) {
extract($scriptProperties, EXTR_SKIP);
}
$e= & $modx->Event;
switch ($e->name) {
case "OnWebPagePrerender" :
if($modx->documentIdentifier != $modx->config[’site_start’]) {
$modx->documentOutput= str_replace(’href="#’, ’href="’ . $modx->makeUrl($modx->documentIdentifier) . ’#’, $modx->documentOutput);
}
break;
}
}
I’ve updated all packages and I’m running on:
Apache version 2.2.17
PHP version 5.2.16
MySQL version 5.1.54
Any suggestions? Many thanks as ever.
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel
clear cache of your site, delete all files under /core/cache
clear also your cache browser ( for css manager)
coding Java Android and NDS
-
☆ A M B ☆
- 350 Posts
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel
coding Java Android and NDS
-
☆ A M B ☆
- 350 Posts

Bingo - found the plugin - its AnchorsAway which I had originally used in Evo projects and found quite useful. Disable and hey no errors!
Will rethink my anchor strategy - thanks for the help.
Update - found this thread
http://modxcms.com/forums/index.php?topic=61207.0 which led me to
https://github.com/Cipa/AnchorsAway for Revo. Followed instructions, all working and NO error messages.
Thanks for help.
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel
Boomerang, thanks for the info. This is a great help!