Skip to content

Attempted to load class "JFactory" from the global namespace. Did you forget a "use" statement?  #192

@lgwapnitsky

Description

@lgwapnitsky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions