I am getting a fatal error from cron. Fatal error: Cannot use object of type stdClass as array in {...}modules/station/archive/station_archive.module on line 713. This is occurring in both the local archive install and the public install. Suggestions?

Comments

drewish’s picture

ah, yeah you need to make sure you're using the HEAD version of the audio module. note that it requires the token module as well.

mattrock’s picture

That was it, thanks. Now, my local install which rips the stream is producing the following error: Call to undefined function taxonomy_vocabulary_load() in .../modules/token/token_node.inc on line 99 I have updated drupal, audio, token, and station to HEAD on this install.

drewish’s picture

Status: Active » Fixed

make sure you've got the new copy of pathauto.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

mattrock’s picture

Status: Closed (fixed) » Active

Did a completely fresh install, made my ripper mods, and I am still getting the same fatal error.
Fatal error: Call to undefined function taxonomy_vocabulary_load() in .../modules/token/token_node.inc on line 99. I get this every time I try to show a teaser or node for the imported audio. Example: http://buzz.wsum.wisc.edu/?q=station/archives.
Everything is HEAD except PATHAUTO [DRUPAL-5] which says it requires ARRAY with the HEAD version and no such module exists.

drewish’s picture

Status: Active » Fixed

ah, yeah you need pathauto DRUPAL-5--2

mattrock’s picture

Still didn't change the fatal error. Could this be caused by my files folder on the server being represented by a symbolic link?

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

resin’s picture

Title: cron gives a fatal error in station_archive.module » I was able to solve this problem in my setup

I'm using Drupal 5.15, Station 5.x-2.0, and audio 5.x-1.4. There seem to be two statements that can fail because an array is expected instead of stdClass. It's an easy fix, just have to match the names up to those set on $node in audio_api_insert().

line 713:
--- $node->audio_file['downloadable'] = 1;
+++ $node->audio_fileinfo['downloadable'] = 1;

line 721:
--- $node->audio_file['file_name'] = str_replace( ...
+++ $node->audio_file->filename = str_replace( ...

drewish’s picture

sounds like you might have the wrong version of the audio module.