Attribute Filter - works on one server but not another...

Author Message

steve walker

Wednesday 15 February 2006 10:55:52 am

Hi there,

We have a strange issue that I hope is just a config tweak somewhere.

We have a legacy (shared) server we have developed a site on, its unix based (freebsd I think), php4.3.3, Apache/1.3.28, Mysql 4.0.14.

The url to the site on this box is http://dev2.oneworldmarket.org/ - its all working fine.

We have just setup our new dedicated server (hurray :) which is runnnig linux, php 4.3.1, Apache 2, Mysql 4.1.15 with eaccelerator

We've migrated the site to this new box http://ccb.owmnameserver.com/ - what we've found is that in any situation where an attribute filter is used in a fetvh no data is displayed. You'll see nothing displays on the home page because of this, but if you click to other pages it works fine.

We have sussed the issue is with attribute filter because if you have:

{let front_banners=fetch( 'content', 'tree', hash( 'parent_node_id', 1372,
		class_filter_type, "include", class_filter_array, array(153),
		attribute_filter, array( array( 'adverts/frontpage', '=', 1 ) )
		))|shuffle}

nothing is displayed, but if we change the fetch to:

{let front_banners=fetch( 'content', 'tree', hash( 'parent_node_id', 1372,
		class_filter_type, "include", class_filter_array, array(153)
		))|shuffle}	

the data is displayed fine...

You can view all data from the admin interface fine, so I dont believe this is to do with the change in mysql versions (the import normally errors if there is) and the boxes are pretty similar in spec.

Does anyone know why this is happening and what the fix is?

Many thanks, Steve.

http://www.oneworldmarket.co.uk

Kristof Coomans

Wednesday 15 February 2006 11:36:36 pm

Did you see any errors or warnings (related to the attribute filter) in the debug output?

Take a look in the cache directory (probably var/<i>yoursiteaccessname</i>/cache). Are there two files classattributeidentifiers_<i>yoursiteaccessname</i>.php and classidentifiers_<i>yoursiteaccessname</i>.php? Has the webserver write access to this folder? Remove these two files and try again.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

steve walker

Thursday 16 February 2006 1:51:55 am

Hey Kristof,

Many thanks for helping with this.

Have now got it working - the site.ini file was pointing to var/news and I changed it over to var/ccb and it started working - those files were absent from the var folders.

Why specifiying a different cache folder should make a difference when it worked on the proevious server I dont know, but hey it works!

Kind regards, Steve

http://www.oneworldmarket.co.uk

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.