Skip to content
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

dev/joomla#2 Joomla on Windows cli.php & cron.php fail due to incorrect path #12692

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

andrewpthompson
Copy link
Contributor

Overview

Ref: https://civicrm.stackexchange.com/questions/24867/compatibility-problem-with-joomla-3-8-7-and-civicrm-5-0-1-that-affects-cron

A hard-coded forward slash resulted in incorrect path on Windows, affecting cli.php and cron.php, with this error:

require(C:\Apache24\htdocs\joomla\administrator\components\com_civicrm\civicrm\administrator\includes\defines.php): failed to open stream: No such file or directory in C:\Apache24\htdocs\joomla\administrator\components\com_civicrm\civicrm\CRM\Utils\System\Joomla.php on line 559

This patch changes the / to DIRECTORY_SEPARATOR

Before

The above error will be produced and cron jobs fail.

After

cron jobs run successfully.

Hard-coded forward slash resulted in incorrect path on Windows
@civibot
Copy link

civibot bot commented Aug 20, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

This looks right to me ping @lcdservices @mattwire

@eileenmcnaughton
Copy link
Contributor

yeah - I'm pretty confident that is correct.

@eileenmcnaughton eileenmcnaughton merged commit b0c4809 into civicrm:master Aug 21, 2018
@andrewpthompson andrewpthompson deleted the dev-joomla-2 branch August 21, 2018 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants