- Link Screenshot enabled
- WSSE Bluga enabled
- WSSE Thumbalizr disabled
- on node submission (node includes CCK Link field) the following error is reported:

PHP Fatal error:  Call to undefined function wss_thumbalizr_status() in /var/www/drupal/sites/all/modules/website_screenshot/website_screenshot.module on line 249

No error if both WSEE's are enabled

Comments

puravida’s picture

Assigned: Unassigned » puravida
Issue summary: View changes
Status: Active » Needs work

Hello!

I set my 6.x-5.x-dev module up exactly as you have described, but I was unable to reproduce the error you highlighted. Are you running on the latest 6.x-5.x-dev code?

I have read through all of the code, and I do not see any way that this error could happen. That is, unless you made requests originally with Thumbalizr enabled and THEN switched to Bluga. In that case, it looks like the code does not account for changes to the screenshot engine.

Possible scenario:

  • Set screenshot engine to Thumbalizr
  • Create a node to make a request in the database
  • Switch screenshot engine to Bluga
  • Disable Thumbalizr engine
  • Code pulls existing database entry by URL and assigns the original screenshot engine (Thumbalizr)
  • Could result in the error you noted, since Thumbalizr is disabled

This is something that should be handled, so I'm going to leave this issue open until I figure out a good way to handle this and push an updated release.

On a side note, I got the following error:
warning: include(./modules/website_screenshot/node_screenshot/theme/node-website_screenshot.tpl.php) [function.include]: failed to open stream: No such file or directory in /home/_____/public_html/includes/theme.inc on line 1079.

That file does not exist in the 6.x-5.x branch, so I will have to take a look at that and create a new issue.

I was not, however, able to get a screenshot from Bluga. The request was never sent, so I have to investigate that as well.