Fatal error: Class 'MoreLikeThisGoogleVideo' not found
Divisive Cottonwood - February 4, 2009 - 14:33
| Project: | More Like This |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | emackn |
| Status: | active |
Jump to:
Description
hmm... I'm getting a fatal error whenever I activate one of the modules...
Such as:
Fatal error: Class 'MoreLikeThisGoogleVideo' not found in /home/cotton/public_html/rss001.com/sites/all/modules/morelikethis/morelikethis.module on line 210

#1
Can you provide any other information about your setup that might help with debugging?
Are you only getting the MLT Google video message or other messages as well?
#2
I've just completely uninstalled it and reinstalled it again.
Every time I activate one of the modules I receive similar error messages:
Fatal error: Class 'MoreLikeThisYahooBossImages' not found in /home/cotton/public_html/rss001.com/sites/all/modules/morelikethis/morelikethis.module on line 210Fatal error: Class 'MoreLikeThisGoogleVideo' not found in /home/cotton/public_html/rss001.com/sites/all/modules/morelikethis/morelikethis.module on line 210Fatal error: Class 'MoreLikeThisYahooBoss' not found in /home/cotton/public_html/rss001.com/sites/all/modules/morelikethis/morelikethis.module on line 210Fatal error: Class 'MoreLikeThisTaxonomy' not found in /home/cotton/public_html/rss001.com/sites/all/modules/morelikethis/morelikethis.module on line 210#3
Do you have the autoload module installed? Autoload handles the proper inclusion of the MLT provider class.
#4
Yeah it's installed
#5
Just installed this as well. Same problem when i view a node and have the more like this blocks enabled
Fatal error: Class 'MoreLikeThisGoogleVideo' not found in C:\xxxxx\sites\all\modules\morelikethis\morelikethis.module on line 210
#6
Same for flickr
Fatal error: Class 'MoreLikeThisFlickr' not found in C:\xxxxxxx\sites\all\modules\morelikethis\morelikethis.module on line 210
#7
Can you provide a list of installed modules, php version, mysql version, and drupal version. Also is this during a new install out of the box, or onto an existing site. What are the exact steps you are doing to get this error. Do you see anything odd in any of your server log files? The more information you can provide, the faster I can find a fix, read this for other helpful things to add to the issue, http://drupal.org/node/73179
Regards,
Eric Mckenna
#8
Status Page
Drupal 6.9
Access to update.php Protected
Calais RDF Parser ARC2 2009-02-09 is installed
Configuration file Protected
Cron maintenance tasks Last run 15 min 39 sec ago
You can run cron manually.
Database updates Up to date
Drupal core update status No update data available
No information is available about potential new releases for currently installed modules and themes. To check for updates, you may need to run cron or you can check manually. Please note that checking for available updates can take a long time, so please be patient.
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
HTTP request status Fails
Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.
MySQL database 5.0.67
PHP 5.2.6
PHP memory limit 128M
PHP register globals Disabled
RDF library ARC2 2009-02-09
SimplePie Parser Installed correctly
The current installed version of SimplePie is 1.1.3
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6
Installed Modules
Administration Menu 6.x-1.1
Ajax 6.x-1.12
Content 6.x-2.1
Node Reference 6.x-2.1
Number 6.x-2.1
Option Widgets 6.x-2.1
Text 6.x-2.1
User Reference 6.x-2.1
Calais 6.x-2.2
Calais API 6.x-2.2
Color 6.9
Comment 6.9
Database logging 6.9
Help 6.9
Menu 6.9
Path 6.9
Taxonomy 6.9
Update status 6.9
Common syndication parser 6.x-1.6
FeedAPI Inherit 6.x-1.6
FeedAPI Mapper 6.x-1.0-beta4
FeedAPI 6.x-1.6
FeedAPI Node 6.x-1.6
SimplePie parser 6.x-1.6
MLT - Taxonomy 6.x-1.0
More Like This 6.x-1.0
Autoload 6.x-1.2
Pathauto 6.x-1.1
Taxonomy hide 6.x-1.02
Taxonomy Manager 6.x-1.0-beta2
Token 6.x-1.11
RDF API 6.x-1.0-alpha5
Views 6.x-2.2
Views UI 6.x-2.2
This is on a fresh install locally. Just dropped in these modules enabled them and setup a feed to consume via feedapi h aving calais tag my feeds as the come in. Everything works fine until i enable the morelike this block (taxonomy for example) and i get the stated error. I actually just created a brand new site from scratch again and its still happening....
#9
Thanks,
Can you run this query and post back what you get.
select cid, data from {cache} where cid = 'morelikethis_providers';Don't forget your table prefix if you are using them.
#10
One other thing, If you could install the Devel module and then open up morelikethis.module and
make this change to print out the stack trace.
<?php
/**
* Display the More Like This blocks.
*/
function _mlt_block_view($delta){
...
if($service) {
$class = $service['#class']; // this is line 209
ddebug_backtrace(); // add this line
$impl = new $class;
?>
Then just post back the results.
#11
Here is the result from the query
a:1:{s:8:"taxonomy";a:6:{s:6:"#title";s:8:"Taxonomy";s:12:"#description";s:45:"Find other content based on Taxonomy matching";s:6:"#class";s:20:"MoreLikeThisTaxonomy";s:10:"#classfile";s:31:"morelikethis_taxonomy.class.inc";s:9:"#settings";s:30:"morelikethis_taxonomy_settings";s:7:"#module";s:21:"morelikethis_taxonomy";}}I disabled the other morelike this modules which is why its only showing the taxonomy one... working on the devel stuff next
#12
Never really used the devel module, any specific instructions on how to "open up morelikethis.module and
make this change to print out the stack trace" would be make things quicker :)
#13
OK here it is ( i think ) oddly enough i dont get that error anymore nor does it load related content like it should ( via taxonomy ). I tried to enable the other modules to try them but after enabling them they are not even showing up in the morelike this settings screen....
... (Array, 8 elements)
*
_mlt_block_view (Array, 4 elements)
o
file (String, 103 characters ) C:\xxxxx\drupal\ins...
+
C:\xxxxx\drupal\instance\sites\all\modules\morelikethis\morelikethis.module
o
line (Integer) 178
o
function (String, 15 characters ) _mlt_block_view | (Callback) _mlt_block_view();
o
args (Array, 1 element)
+
0 (String, 8 characters ) taxonomy
*
morelikethis_block (Array, 2 elements)
o
function (String, 18 characters ) morelikethis_block | (Callback) morelikethis_block();
o
args (Array, 2 elements)
+
0 (String, 4 characters ) view
+
1 (String, 8 characters ) taxonomy
*
call_user_func_array (Array, 4 elements)
o
file (String, 71 characters ) C:\xxxxx\drupal\ins...
+
C:\xxxxx\drupal\instance\includes\theme.inc
o
line (Integer) 658
o
function (String, 20 characters ) call_user_func_array | (Callback) call_user_func_array();
o
args (Array, 2 elements)
+
0 (String, 24 characters ) template_preprocess_page | (Callback) template_preprocess_page();
+
1 (Array, 2 elements)
#
0 (Array, 13 elements)
*
template_files (Array, 0 elements)
*
content (String, 2170 characters ) <div class="typepage "> <div class="node">...
o
<div class="typepage "> <div class="node"> <div class="content"><p><img src="http://d.yimg.com/img.news.yahoo.com/util/anysize/130,http%3A%2F%2Fd.yimg.com%2Fa%2Fp%2Fap%2F20090213%2Fcapt.20a4779287cc464aad94c107c63e589a.congress_stimulus_dcsw103.jpg?v=2" align="left" height="75" width="130" alt="House Speaker Nancy Pelosi of Calif., center, flanked by House Majority Leader Steny Hoyer of Md., left, and Rep John Larson, D-Conn., right, speaks during a news conference on Capitol Hill in Washington, Friday, Feb. 13, 2009, after the House passed the stimulus legislation. (AP Photo/Susan Walsh)" border="0" />AP - In a major victory for President Barack Obama, Democrats muscled a huge, $787 billion stimulus bill to the brink of final passage Friday night in hopes of combating the worst economic crisis since the Great Depression. Republican opposition was nearly unanimous. The vote in the House was 246-183 for the package of tax cuts and federal spending that Obama made the centerpiece of his plan for economic recovery.</p> </div> <div class="taxonomy"> <strong style="color: #30424e">Tags:</strong><ul class="links inline"><li class="taxonomy_term_8 first"><a href="/sandbox/xxxxx/topic/person/barack-obama" rel="tag" title="">Barack Obama</a></li> <li class="taxonomy_term_543"><a href="/sandbox/xxxxx/topic/medical-condition/depression" rel="tag" title="">depression</a></li> <li class="taxonomy_term_632 last"><a href="/sandbox/xxxxxx/topic/calais-document-category/other" rel="tag" title="">Other</a></li> </ul></div> <div class="links-readmore">»<ul class="links inline"><li class="comment_add first"><a href="/sandbox/xxxxxx/comment/reply/1036#comment-form" title="Share your thoughts and opinions related to this posting.">Add new comment</a></li> <li class="feedapi_feed"><a href="/sandbox/xxxxxx/content/yahoo-news">Feed: Yahoo News</a></li> <li class="feedapi_original last"><a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090214/ap_on_go_co/congress_stimulus">Original article</a></li> </ul></div> </div> </div><div id="comments"></div>
*
show_blocks (Boolean) TRUE
*
show_messages (Boolean) TRUE
*
zebra (String, 3 characters ) odd
*
id (Integer) 1
*
directory (String, 23 characters ) sites/all/themes/addari
*
is_admin (Boolean) TRUE
*
is_front (Boolean) FALSE
*
logged_in (Boolean) TRUE
*
db_is_active (Boolean) TRUE
*
user (Object) stdClass
o
uid (String, 1 characters ) 1
o
name (String, 5 characters ) admin
o
pass (String, 32 characters ) 15cdbcb1952c7d40e3e93d602ee9429b
o
mail (String, 27 characters ) xxxx@xxxx.com
o
mode (String, 1 characters ) 0
o
sort (String, 1 characters ) 0
o
threshold (String, 1 characters ) 0
o
theme (String, 0 characters )
o
signature (String, 0 characters )
o
created (String, 10 characters ) 1234476457
o
access (String, 10 characters ) 1234572380
o
login (String, 10 characters ) 1234555276
o
status (String, 1 characters ) 1
o
timezone (NULL)
o
language (String, 0 characters )
o
picture (String, 0 characters )
o
init (String, 27 characters ) xxx.xx@xxx.com
o
data (String, 6 characters ) a:0:{}
o
sid (String, 32 characters ) 0c9d0be860a9d29cd423865d8b0a6d16
o
hostname (String, 9 characters ) 127.0.0.1
o
timestamp (String, 10 characters ) 1234572513
o
cache (String, 1 characters ) 0
o
session (String, 28 characters ) dblog_overview_filter|a:0:{}
o
roles (Array, 1 element)
+
2 (String, 18 characters ) authenticated user
*
header (String, 0 characters )
#
1 (String, 4 characters ) page
*
module_invoke (Array, 4 elements)
o
file (String, 79 characters ) C:\xxxx\drupal\ins...
+
C:\xxxxx\drupal\instance\modules\block\block.module
o
line (Integer) 473
o
function (String, 13 characters ) module_invoke | (Callback) module_invoke();
o
args (Array, 4 elements)
+
0 (String, 12 characters ) morelikethis
+
1 (String, 5 characters ) block
+
2 (String, 4 characters ) view
+
3 (String, 8 characters ) taxonomy
*
block_list (Array, 4 elements)
o
file (String, 71 characters ) C:\xxxxx\xxxxx\drupal\ins...
+
C:\xxxxxx\drupal\instance\includes\theme.inc
o
line (Integer) 1569
o
function (String, 10 characters ) block_list | (Callback) block_list();
o
args (Array, 1 element)
+
0 (String, 11 characters ) content_top
*
theme_blocks (Array, 2 elements)
o
function (String, 12 characters ) theme_blocks | (Callback) theme_blocks();
o
args (Array, 1 element)
+
0 (String, 11 characters ) content_top
*
theme (Array, 4 elements)
o
file (String, 62 characters ) C:\xxxx\drupal\ins...
+
C:\xxxx\drupal\instance\index.php
o
line (Integer) 36
o
function (String, 5 characters ) theme | (Callback) theme();
o
args (Array, 2 elements)
+
0 (String, 4 characters ) page
+
1 (String, 2170 characters ) <div class="typepage "> <div class="node">...
#
<div class="typepage "> <div class="node"> <div class="content"><p><img src="http://d.yimg.com/img.news.yahoo.com/util/anysize/130,http%3A%2F%2Fd.yimg.com%2Fa%2Fp%2Fap%2F20090213%2Fcapt.20a4779287cc464aad94c107c63e589a.congress_stimulus_dcsw103.jpg?v=2" align="left" height="75" width="130" alt="House Speaker Nancy Pelosi of Calif., center, flanked by House Majority Leader Steny Hoyer of Md., left, and Rep John Larson, D-Conn., right, speaks during a news conference on Capitol Hill in Washington, Friday, Feb. 13, 2009, after the House passed the stimulus legislation. (AP Photo/Susan Walsh)" border="0" />AP - In a major victory for President Barack Obama, Democrats muscled a huge, $787 billion stimulus bill to the brink of final passage Friday night in hopes of combating the worst economic crisis since the Great Depression. Republican opposition was nearly unanimous. The vote in the House was 246-183 for the package of tax cuts and federal spending that Obama made the centerpiece of his plan for economic recovery.</p> </div> <div class="taxonomy"> <strong style="color: #30424e">Tags:</strong><ul class="links inline"><li class="taxonomy_term_8 first"><a href="/sandbox/xxxxx/topic/person/barack-obama" rel="tag" title="">Barack Obama</a></li> <li class="taxonomy_term_543"><a href="/sandbox/xxxxxx/topic/medical-condition/depression" rel="tag" title="">depression</a></li> <li class="taxonomy_term_632 last"><a href="/sandbox/xxxxxx/topic/calais-document-category/other" rel="tag" title="">Other</a></li> </ul></div> <div class="links-readmore">»<ul class="links inline"><li class="comment_add first"><a href="/sandbox/xxxxxx/comment/reply/1036#comment-form" title="Share your thoughts and opinions related to this posting.">Add new comment</a></li> <li class="feedapi_feed"><a href="/sandbox/xxxxxx/content/yahoo-news">Feed: Yahoo News</a></li> <li class="feedapi_original last"><a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090214/ap_on_go_co/congress_stimulus">Original article</a></li> </ul></div> </div> </div><div id="comments"></div>
*
template_preprocess_page (Array, 2 elements)
#14
Honestly.. Nothing stands out as something that could cause the error. The issue seems pretty simple really, Drupal is looking for something that is physically there, but for some reason, cannot find it. I think this could be related to the issue described when some of the settings pages did not display.
If you are no longer getting the errors, but do not see any content in the block, check the calais tab on the content and make sure there are suggestions. Then edit your node and drop down to the MLT fieldset and pick which terms to use as the criteria for filling the MLT taxonomy block.
Also make sure the threshold for calais terms are not set too high.
#15
Ok.. might have found something.. You haven't by chance moved the module from its original install location?
Run this on your DB
select name, status, filename from drupal_system where name like '%morelikethis%';and see if the filename location is the same as your physical location.
#16
Ok well looks like things are working now...however having to go into the node to check the box to enable the contributed modules seems a bit cumbersome if I have hundreds of nodes.... Is there a way to default the services that are enabled for a node to be enabled?
#17
Ugh moving from one problem to the next. Dunno if its related but i enabled the other modules ( google video and flickr) and i dont see the settings tab for them on the more like this settings page...taxonomy is there... i swore i saw those before when i was having the auto load problems..
#18
yeah.. we are looking into that now. As a workaround, run the update.php page as admin. The settings are saved in a cache that isn't cleared when you save the modules page.
#19
sweet! that worked! what about setting the nodes to use the morelike this modules by default rather than enabling it one by one on each node?
#20
Any update on my other question ?
#21
Can you add this in a new issue and mark it as a feature request?
Thanks :)
#22
Sure thing!