Attempted to load class "JFactory" from the global namespace. Did you forget a "use" statement?
- Dominant language
- PHP
- Stars
- 45
- Forks
- 36
- Avg merge
- 17h 54m
- Merged PRs (30d)
- 3
Description
Attempting to use the cv command on a Joomla 5 installation. I'm calling the command as follows using the www-data user:
`$ cv api job.execute --user=cronuser cwd=/var/www/joomla
`
and receiving the following error:
```
In Joomla.php line 651:
Attempted to load class "JFactory" from the global namespace.
Did you forget a "use" statement?
```
Please advise, as this is putting a hold on the implementation.
Thank you
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `cv api job.execute --user=cronuser cwd=/var/www/joomla` on Joomla 5 and inspect Joomla.php at line 651, where the reported JFactory error occurs. Determine the compatibility change needed and verify that the command completes without the global-namespace error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100