This module is unlike any other of its kind and just what I am after BUT, we really could use a Drupal 6 release on Drupal.org , even if it's just a DEV version. Any chance of that?

Many thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

raghukr’s picture

I have released a D6 backport of D7 version as dev. It is not very well tested, but at least is a start.

SirClickalot’s picture

FileSize
6.02 KB

Great news!

I Immediately installed the release and went to switch on the module and use it but, when I went to choose Views Ticker as the Style plugin for View (2.12) I got the errors message shown in the attached screenshot.

Any advice?

Thank you

raghukr’s picture

Please wait for a day. The D6 version may be buggy. I will commit a better version tomorrow.

raghukr’s picture

Due to some reason, the dev snapshot of 6.x-2.x is not getting updated in the project page. Here is the latest snapshot http://drupalcode.org/project/views_ticker.git/snapshot/612dc2d.tar.gz

SirClickalot’s picture

As before in #2, when I try to set 'Views ticker' as a Row Style plugin, i am still getting....

'PHP Fatal error: Class 'views_plugin_style' not found in /home/drupalsites/startpoint6/startpoint6/htdocs/sites/all/modules/core/views_ticker/includes/views_ticker_style_plugin.inc on line 13'

Thank you again, keep them coming and I will keep testing!

raghukr’s picture

It is working for me. Can you post details of your drupal version, views version, etc?

raghukr’s picture

From your post

'PHP Fatal error: Class 'views_plugin_style' not found in /home/drupalsites/startpoint6/startpoint6/htdocs/sites/all/modules/core/views_ticker/includes/views_ticker_style_plugin.inc on line 13'

Can you put the views_ticker module under sites/all/modules instead of sites/all/modules/core and try?

SirClickalot’s picture

Tried that and it made no difference I'm afraid.

To be honest though, it would be wrong for your module to 'assume' that modules did not live in sub-folder. Granted, my use of the word 'core' is bad and ideally I'd like it be 'contrib' but can't for the life of me find a way to change it without killing my site!

raghukr’s picture

Looking at the error, there may be some issue with the views module in your installation. It is able to load views_ticker but is not able to find the views_plugin_style present in the plugins\views_plugin_style.inc of views module. Try disabling/enabling the views & running update on drupal.

mmcintosh’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

I just installed your 612dc2d.tar.gz version listed on this issue and have it working. It seems to only have the style of the ticker not any of the other possible styles fade etc..... Also I am not sure what I am doing wrong; even though the view returns more than one result, only one is passed to the block it does not cycle between results as I expected it to do. The block style options only contain start delay and place holder.

Drupal version 6.22 on ubuntu 10.04

Regards
Mark

raghukr’s picture

@mmcintosh,

In the views edit page, click on the views ticker settings (wheel icon next to style: "views ticker"). Scroll down and you will see a dropdown for changing ticker type.

mmcintosh’s picture

FileSize
23.91 KB
32.49 KB

I have attached screen shots there is no drop down. I do not have any idea why as it throws no error just no drop down or selection. I will uninstall and reinstall today to see if somehow I have done something wrong.

raghukr’s picture

@mmcintosh
in the first screenshot, click on the "Update defaults display". Then click on the settings icon next to views ticker. Then upload the screenshot of entire page.
BTW, Which views version are you using?

CinemaSaville’s picture

I upgraded from 6.1 dev to 6.2 and I'm also getting the same error message:

Error Description:
Fatal error: Class 'views_plugin_style' not found in /home/placemea/public_html/sites/all/modules/views_ticker/includes/views_ticker_style_plugin.inc on line 13

I deleted my original view, and just try to choose this as the style plugin and get this error.

I'm using the latest version of views 6.x-2

raghukr’s picture

I am using views 6.x-2.12. It works for me, no errors. Can you check if this error occurs for other views plugins (like jCarousel)? If it does, then the issue might be with views. Also you could try the dev version of views.

mmcintosh’s picture

Just wanted to report back that I reinstalled and it now works version 612dc2d.tar.gz listed above I was able to get fade to work properly after the re-installation. Thanks

Mark

gracian’s picture

Sorry, but "612dc2d.tar.gz" is not working for me on Drupal 6.22 :(

PHP Fatal error: Class 'views_plugin_style' not found in /sites/all/modules/views_ticker/includes/views_ticker_style_plugin.inc on line 13, referer: http:///admin/build/views/edit/Hot_News

raghukr’s picture

I have tried hard to reproduce "PHP Fatal error: Class 'views_plugin_style' not found" issue, but not successful. If you people can provide more information about your setup, php/apache logs if any, etc, it will be easier for me to debug. Also, you could export your view and upload it.

gracian’s picture

FileSize
113.06 KB
2.52 KB

Thanks a lot for your time. I'm sure, that the mistake is on my side, but ... I have attached my view export.

mbasfour’s picture

subscribing

vsl’s picture

FileSize
28.75 KB
101.43 KB

Thanks for yours time. I have passed this error by

include ("path to... /views_plugin_style.inc");

BUT i don't manage to make it work... it doesn't display any fields. I keep trying and i give you feedback if i manage to go further.

If you have any idea please help me.

vsl’s picture

it works with this release ...

http://drupalcode.org/project/views_ticker.git/snapshot/1d711e0.tar.gz

and with this add in views_ticker_style_plugin.inc

if(!class_exists('views_plugin_style')) {
include ("/path ... /views/plugins/views_plugin_style.inc");
}

raghukr’s picture

That is a bit strange. It is a views plugin & views files need not be explicitly included. I am not able to reproduce it on my end. Since include works for you, here is the correct way of including module files.

if(!class_exists('views_plugin_style')) {
include (drupal_get_path('module', 'views_ticker').'/plugins/views_plugin_style.inc');
}

If somebody who is facing the "class not found" can provide me a zip of their sites directory with db dump along with php/drupal version info, it will be easier for me to try reproduce it.

OR

You could try disabling all the modules, enable only views/views_ticker & see if the problem still occurs. If not, then enable other modules in batches (3-4 at a time) & figure out which module might be interfering. I can then use that info to debug.

Without this help from people facing the issue, I will not be able to provide an official fix since I am not able to reproduce it in my env.

ajdonnison’s picture

Had the same issue, but uninstalled, commented out the files[] lines in the views_ticker.info file, reinstalled and the error went away. No need to edit anything else. This is with the official release.

Confirmed by re-enabling the files[] lines and reinstalling, problem came back.

It would appear that putting the includes in the files[] array causes Drupal core to load these _before_ the views module gets to load it, hence the error.

raghukr’s picture

@ajdonnison

Thanks for the analysis. I will make changes, do a little testing and commit. But what I don't understand is why this error is not consistent in all installations. Also, nobody has complained about this issue on 7.x.

benwei’s picture

I was experiencing the 'class not found' issue with 6.x-2.x, but after upgrading to 6.x-2.x-dev, I'm no longer seeing it.

SchwebDesign’s picture

i was having this error as well with VIews 3 and after updating to the latest DEV of views-ticker this stopped happening for me.
my problem specifically was the " Fatal error: Class 'views_plugin_style' not found in " error when attempting to select this style as the views display.

kongoji’s picture

just a little improvement to comments #22 and #23

if(!class_exists('views_plugin_style')) {
	module_load_include('inc', 'views', 'plugins/views_plugin_style');
}

I'll try to provide a patch as soon as I got time to.

raghukr’s picture

Dev version already contains fix for this. I will push it to official release in a week or so.

brunodbo’s picture

Issue summary: View changes

Confirming that the current dev version fixes this issue. For me, it came up when adding the autoload module to my Pressflow installation.

Would it be possible to roll a new stable release with this fix? Thanks!