Hey guys;
I’m having some issues with Kalender Enhanced; installed following all instructions (my installation can be found at www.deevee.co.uk/null/cms) and then added snippet to my page only to have it return with
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: include(snippets/kalender/themes/gold_enhanced/theme.php) [function.include]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: /home/deevee/public_html/null/cms/assets/snippets/kalender/kalender_enhanced.php
Line: 100
Line 100 source: include($includePath."theme.php");
Parser timing
MySQL: 0.0007 s (1 Requests)
PHP: 0.0150 s
Total: 0.0157 s
Now i know that this error has been seen before so i attempted the solutions provided in this forum and the support forum for "normal" Kalender but at each turn i got spurious PHP errors...
Doing this for example
Quote from: nos at Feb 04, 2008, 08:33 AM
@xrisanthi
I guess you don’t use friendly URLs.
For this case I hacked the Kalender Enhanced script somewhat in lines 88 and 100: commented out
"// $url_prefix = $_SERVER[’REDIRECT_URL’]."?";" and included
"$idDocSource=$modx->documentObject[’id’];
$url_prefix = "index.php?id=" . $idDocSource."&";"
resulted in
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: include(snippets/kalender/themes/gold_enhanced/theme.php) [function.include]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: /home/deevee/public_html/null/cms/assets/snippets/kalender/kalender_enhanced.php
Line: 101
Line 101 source: include($includePath."theme.php");
Parser timing
MySQL: 0.0007 s (1 Requests)
PHP: 0.0154 s
Total: 0.0161 s
which is essentially the same error.
Trying things from the regular Kalendar support thread where people had been having similar problems - such as
Quote from: deevio at Dec 11, 2006, 09:23 AM
hi Ti,
Change your
$pathPrefix = $site_url.$assets_path.$snippetsPath;
to something like:
$pathPrefix = "http://www.pilotes-pyreneens.org/modx/assets/snippets/kalender";
And change
to:
$url_prefix = "index.php?id=36&";
(Obviously i changed the URL to reflect my own installation; in this instance
$pathPrefix = "http://www.deevee.co.uk/null/cms/assets/snippets/kalender";
Anyway - this edit resulted in:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: include() [function.include]: URL file-access is disabled in the server configuration
Error type/ Nr.: Warning - 2
File: /home/deevee/public_html/null/cms/assets/snippets/kalender/kalender_enhanced.php
Line: 102
Line 102 source: include($includePath."theme.php");
Parser timing
MySQL: 0.0007 s (1 Requests)
PHP: 0.0158 s
Total: 0.0165 s
I have tried the various fixes and solutions listed on their own and where it looked sensible, in combination - alas i’m still stuck.
Any guidance on this would be much appreciated
Thanks
D