When I run admin/reports/swftools, I get an awful display, it looks like it's buggy. Does this indicate a config error?

The following tables show the status of SWF Tools and its supporting modules. This information can help to diagnose an installation that is not working correctly. Warnings indicate an issue that may prevent SWF Tools from performing as expected but are not necessarily an immediate problem. Errors show that there is an issue that will prevent SWF Tools from working.

'); // Get embedding status report $html .= _swftools_status_embedding(); // Get playback and player status report $html .= _swftools_status_players(); // Return markup return $html; } /** * Generate a status report for embedding methods * Called from swftools_status() and returns markup */ function _swftools_status_embedding() { // Initialise requirements array $requirements = array(); // Initialise an empty array in position zero - will need this later. $requirements[0] = array(); // Get player directory $player_directory = swftools_get_player_path() .'/'; // Get list of available embedding methods $methods = swftools_methods_available(SWFTOOLS_EMBED_METHOD); // Retrieve current embedding method and initialise flag to track if we find it later $current_method = variable_get(SWFTOOLS_EMBED_METHOD, SWFTOOLS_NOJAVASCRIPT); $method_found = FALSE; // Iterate through available methods if (count($methods)) { foreach ($methods AS $method => $info) { // If method name is the current method then we found it, and it is available if ($info['name'] == $current_method) { $current_method = $info['title']; $method_found = TRUE; } // If the method defines a shared file then check that it exists if ($info['shared_file']) { // If the file doesn't exist then indicate the shared file to be missing if (!file_exists($player_directory . $info['shared_file'])) { $requirements[] = array( 'title' => $info['title'], 'value' => t('Missing'), 'severity' => ($current_method == $info['title']) ? REQUIREMENT_ERROR : REQUIREMENT_WARNING, 'description' => t('Download the required supporting file and upload it to %path.', array('@url' => $info['download'], '%path' => $player_directory . $info['shared_file'])), ); // If the missing file relates to the current method set the default to a warning if ($current_method == $info['title']) { $requirements[0] = array( 'severity' => REQUIREMENT_ERROR, 'description' => t('The required supporting file is not available. See below for more information.'), ); } } else { $requirements[] = array( 'title' => $info['title'], 'value' => t('OK'), ); } } } } // If the specified embedding method was found then set the default entry to show ok if ($method_found) { $requirements[0] += array( 'title' => t('Default method'), 'value' => $current_method, 'severity' => REQUIREMENT_OK, ); } else { $requirements[0] += array( 'title' => t('Default method'), 'value' => $current_method, 'severity' => REQUIREMENT_ERROR, 'description' => t('This method no longer appears to be available. Check the modules page to ensure that the necessary module is enabled, or choose a different embedding method on the embedding settings page.', array('@modules' => url('admin/build/modules'), '@settings' => url('admin/settings/swftools/embed'))), ); } // Construct output string $html = ''; $html .= t('

...

Comments

carole’s picture

Also, just after running SWF Tools Status, I loaded Site Configuration page and got a warning message:

Site configuration
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'swftools_status' was given in C:\wamp\www\cry\drupal\includes\menu.inc on line 346.

When I reloaded the page, the warning was gone.

phatholz’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
StatusFileSize
new27.63 KB
new11.67 KB
new225.91 KB

Carole,

I actually just experienced the exact error(s) you show above. Which modules within SWF Tools did you enable? Were these the first ones or did you have other parts running normally prior to the issue(s)?

I only enabled SWF Tools & SWF Object.

Although it might be a bit redundant, I have included a few screenshots, for error duplication purposes.

Regards,

Brandon

Stuart Greenfield’s picture

Hmmm, that doesn't look very good!

It looks like the code is being interpreted literally, so you are seeing the source, not the nicely formatted tables.

I'm currently on holiday, so not much time to support, but I'll try to investigate as this looks a bit messy.

As long as the rest of the module is working right...

Stuart Greenfield’s picture

I just tested this locally (which is HEAD) and it works. I did a compare of HEAD to 6.x-1.1 (current official) and branch DRUPAL-6--1 and they match, so it should work too.

Can you try downloading swftools.admin.status.inc from HEAD, replacing your local version with that, and then trying it again?

It may be that the dev package got broken somehow.

pgtremb’s picture

php miss on first line : <? php

Stuart Greenfield’s picture

Oops! That's a slightly embarrassing error - you're right.

Not sure why it is working on my system ok, but I will fix it next time I get back on-line!

Stuart Greenfield’s picture

Status: Active » Fixed

Fixed in release 6.x-1.2, and on corresponding branches (HEAD and DRUPAL-6--1)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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