-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path issue on Windows #536
Comments
@Yiannistaos Thanks for the report. Seen this specific issue before, it's a Windows path problem related to your server setup. I'm afraid I do not have a Windows machine at my disposal to test and fix this issue, so will need your help a bit. Can you please do the following:
var_dump($_SERVER['DOCUMENT_ROOT']);
echo '<br />';
var_dump(JPATH_ROOT);
echo '<br />';
var_dump(Koowa::getInstance()->getRootPath());
echo '<br />';
var_dump( KObjectManager::getInstance()->getObject('com://site/pages.config')->getSitePath('cache')); below the last line of code: // Execute the application.
$app->execute(); The result would be ....
// Execute the application.
$app->execute();
var_dump($_SERVER['DOCUMENT_ROOT']);
echo '<br />';
var_dump(JPATH_ROOT);
echo '<br />';
var_dump(Koowa::getInstance()->getRootPath());
echo '<br />';
var_dump( KObjectManager::getInstance()->getObject('com://site/pages.config')->getSitePath('cache')); Then go to your home page and you should get 4 lines rendered at the bottom of the page as so: Please provide me those 4 lines, this gives me an idea about your paths and what could be wrong. |
With the "System - Joomlatools Framework" plugin enable it doesn't display anything after $app->execute();, only the error I've mentioned in the previous message.
I've disable the plugin "System - Joomlatools Framework" and I've added the below code in the index.php file. // Execute the application.
$app->execute();
$path = JPATH_LIBRARIES.'/joomlatools/library/koowa.php';
require_once $path;
var_dump($_SERVER['DOCUMENT_ROOT']); // string(22) "C:/laragon/www/joomla/"
var_dump(JPATH_ROOT); // string(21) "C:\laragon\www\joomla"
var_dump(Koowa::getInstance()->getRootPath()); // string(21) "C:\laragon\www\joomla"
# var_dump( KObjectManager::getInstance()->getObject('com://site/pages.config')->getSitePath('cache')); // ERROR: 0 Cannot load object from identifier: com://site/pages.config |
@johanjanssens "Seen this specific issue before, it's a Windows path problem related to your server setup." |
@Bodge-IT @Yiannistaos I still don't have access to a Windows system, so a bit hard for me to work on this bug. Would love to get this one out of the way though. Re-reading the initial report. It seems that pages cannot create the cache path and then errors out, which is to be expected. This could be a problem with the path, which was my initial hunch, or a problem with the folder permissions. Can you try to following, add the cache path manually and see if that gets you past the error, you need to manually create this folder: |
My colleague had similar problem on windows. Created paths for cache folders manually, still never got it to work.
|
This my error log from Windows machine: RuntimeException: 'The template cache path "/C:\laragon\www\joomla3/joomlatools-pages/cache/templates" does not exist' thrown in C:\laragon\www\joomla3\libraries\joomlatools\library\template\engine\abstract.php on line 143 while handling exception RuntimeException: 'The page registry cache path "/C:\laragon\www\joomla3/joomlatools-pages/cache" does not exist' thrown in C:\laragon\www\joomla3\libraries\joomlatools-components\pages\page\registry.php on line 590 Stacktrace I've noticed additional slash in the beginning of the path: /C:\laragon\www\joomla3/joomlatools-pages/cache |
Machine
Steps to reproduce the behavior
It seems that something goes wrong with the first slash in front of C:\ => "/C:\laragon".
Please, see the error below.
Result
`
RuntimeException: 'The page registry cache path "/C:\laragon\www\joomla/joomlatools-pages/cache/pages" does not exist' thrown in C:\laragon\www\joomla\components\com_pages\page\registry.php on line 550
while handling exception
RuntimeException: 'The page registry cache path "/C:\laragon\www\joomla/joomlatools-pages/cache/pages" does not exist' thrown in C:\laragon\www\joomla\components\com_pages\page\registry.php on line 550
Stacktrace
#0 C:\laragon\www\joomla\components\com_pages\page\registry.php(526): ComPagesPageRegistry->storeCache('/C:\laragon\www...', Array)
#1 C:\laragon\www\joomla\components\com_pages\page\registry.php(33): ComPagesPageRegistry->loadCache('/C:\laragon\www...', false)
#2 C:\laragon\www\joomla\libraries\joomlatools\library\object\manager\manager.php(723): ComPagesPageRegistry->__construct(Object(KObjectConfig))
#3 C:\laragon\www\joomla\libraries\joomlatools\library\object\manager\manager.php(161): KObjectManager->_instantiate(Object(KObjectIdentifier), Object(KObjectConfig))
#4 C:\laragon\www\joomla\libraries\joomlatools\library\object\object.php(290): KObjectManager->getObject(Object(KObjectIdentifier), Array)
#5 C:\laragon\www\joomla\components\com_pages\dispatcher\router\pages.php(16): KObject->getObject('page.registry')
#6 C:\laragon\www\joomla\libraries\joomlatools\library\object\object.php(73): ComPagesDispatcherRouterPages->_initialize(Object(KObjectConfig))
#7 C:\laragon\www\joomla\components\com_pages\dispatcher\router\abstract.php(42): KObject->__construct(Object(KObjectConfig))
#8 C:\laragon\www\joomla\libraries\joomlatools\library\object\manager\manager.php(723): ComPagesDispatcherRouterAbstract->__construct(Object(KObjectConfig))
#9 C:\laragon\www\joomla\libraries\joomlatools\library\object\manager\manager.php(161): KObjectManager->_instantiate(Object(KObjectIdentifier), Object(KObjectConfig))
`
The text was updated successfully, but these errors were encountered: