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

"No class specified for loadClass" - hosting environment issue? #30

Open
PuddingtonBeer opened this issue Dec 4, 2015 · 4 comments
Open

Comments

@PuddingtonBeer
Copy link

A problem I'm sure several people have had, and discussed briefly on the modx forum. I imagine it prevents many people using this otherwise ideal extra, as I would, but for some reason nobody has reported it here.

I've installed this extra on two different sites, one hosted on shared hosting from one provider and the other on a custom virtual server of my own configuration (not far from default, but upgraded to PHP 5.4), from a different ISP, and both systems produce the same result. I'm not sure what's common to both configs.

Results from tests on PHP 5.3 from the first provider, shared hosting:

In the manager all is well, editing a term resource shows the resources allocated to the term on the 'Pages' tab, etc., but on term pages using the snippet [[!getPagesByTerm]] produces no content and the following stuff appears in the modx error log each time the page is refreshed on the frontend:


[2015-12-04 14:08:50](ERROR @ /index.php) No class specified for loadClass
[2015-12-04 14:08:50](ERROR @ /index.php) No class specified for loadClass
[2015-12-04 14:08:50](ERROR @ /index.php) Could not load class
[2015-12-04 14:08:50](ERROR @ /index.php) No class specified for loadClass
[2015-12-04 14:08:50](ERROR @ /index.php) Could not load class !
[2015-12-04 14:08:50](ERROR @ /index.php) No class specified for loadClass
[2015-12-04 14:08:50](ERROR @ /index.php) No class specified for loadClass
[2015-12-04 14:08:50](ERROR @ /index.php) No class specified for loadClass
[2015-12-04 14:08:50](ERROR @ /index.php) ::loadCollectionGraph() is not a valid static method.


I used [[!getTaxonomies]] in the content of the parent categories resource which also produced no content, and the following in the modx error log:


[2015-12-04 14:09:27](ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
)


@muzzwood
Copy link

Can confirm. I've got exactly the same problem. PHP 5.4.45
MODX 2.4.3

@rebornmedia1
Copy link

It would appear the default properties aren't set in the snippet.

@gleighfield
Copy link

Same issue here, and the options are being set... Any further details/input on this issue?

@saintsheke
Copy link

Same issue here. Though I have set the properties as so:-->
classname: PageTerm
graph: {"Page":{}}
sort: pagetitle
dir: ASC

I get this error [2017-02-23 18:30:32] (ERROR @ ///core/components/taxonomies/model/Base.php : 301) PHP warning: in_array() expects at least 2 parameters, 1 given

Has anyone found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants