backdrop-contrib / feeds_jsonpath_parser

Feeds JSONPath Parser
GNU General Public License v2.0
0 stars 5 forks source link

Error: Class 'Flow\JSONPath\JSONPath' not found #5

Closed jenlampton closed 3 years ago

jenlampton commented 3 years ago

Parsing a feed using JSONPath fails with fatal error. In the logs I see:

Error: Class 'Flow\JSONPath\JSONPath' not found in FeedsJSONPathParser->jsonPath() (line 116 of backdrop/modules/contrib/feeds_jsonpath_parser/FeedsJSONPathParser.inc).

This use statement is in the first line of FeedsJSONPathParser.inc

use Flow\JSONPath\JSONPath;

It looks like the classes are not properly defined by their namespaces in hook_autoload_info(). PR on the way!

jenlampton commented 3 years ago

I found a related @klonos issue https://github.com/govCMS/dvf/issues/55 :)

klonos commented 3 years ago

@jenlampton FTR, https://packagist.org/packages/flow/jsonpath has a message saying that the package has been abandoned, and is not supported any longer. GovCMS (the DVF module) has switched to using https://packagist.org/packages/softcreatr/jsonpath instead.

Source/releases here: https://github.com/SoftCreatR/JSONPath/releases

bobchristenson commented 3 years ago

Just want to mention that I'd love to see this committed and released. I patched the module with these changes and successfully imported.

jenlampton commented 3 years ago

I've applied to be a temporary maintainer to get a release out.

jenlampton commented 3 years ago

@bobchristenson new release has been cut: https://github.com/backdrop-contrib/feeds_jsonpath_parser/releases/tag/1.x-1.2.0