[Pro] Protaculous error

Hi all, Since upgrading to FW Pro 6, I am getting the following error when I try to publish my site? I have updated & installed the latest protaculous action. Is anyone else having this issue and has advice on how to clear it?

Also, is there an easy way of telling which elements in your site are using this action? I am not sure I am using it as a single action but wonder if it is bundled with the carousel2 action perhaps?

Any help would be very much appreciated :o).

The file Hard Drive:Users:user:Library:Application Support:Freeway Pro:Actions:General:Protaculous.fwactionb:Contents:Resources:Actions:Support Files~:prototype1610packer.js for this resource cannot be found.
The file Hard Drive:Users:user:Library:Application Support:Freeway Pro:Actions:General:Protaculous.fwactionb:Contents:Resources:Actions:Support Files~:scriptaculous183packer.js for this resource cannot be found.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It sounds as though you opened a document containing an instance of Protaculous without installing that Action in the new Freeway Actions folder. Freeway documents cache a copy of each Action used within the document itself, but this cache does not extend to the external files bundled within that Action. Since Protaculous is a “bundle” Action, it requires a specific installation, and won’t work reliably when pulling from the cache like this. Here’s how to fix this.

First, close all documents in Freeway, then locate your Library folder. (On Lion or Mountain Lion, hold down the Option key in Finder and choose Go / Library from the main menu.) In your Library folder, find Application Support / Freeway Pro / Actions and start hunting for the “file” Protaculous.fwactionb. (It’s a bundle – a folder masquerading as a single file, hence the scare-quotes around file.) If you don’t see it there, or if it is named something other, delete it and replace it with a freshly-downloaded copy. Make sure that you don’t have Protaculous-1.fwactionb or similar, since your browser will rename files it downloads that have the same name as another file in your Downloads folder. There should only be one, and it should be named as above. Once you do this, switch back into Freeway and open the Edit / Actions menu item. Look through that list and confirm that Protaculous is installed and loaded (it will have a checkbox next to its name). Now, re-open your document and look again in Edit / Actions. Make sure that a second version of Protaculous doesn’t pop up at the top of the list. (This is where cached Actions appear. Their names may be italicized – I think – meaning they are transient and not part of your local Freeway install.) If you see two versions of Protaculous, then you will need to go through the document, remove all instances of Protaculous from every page (and this includes any Carousel elements, too), publish once, then go back through and re-apply the Actions. This clears the cache, and you won’t have this problem any longer with this document. You may still have it with other documents that share the same provenance.

Protaculous 2 is written in a different manner, without using bundles at all, and so it will not suffer from this problem. But Protaculous 2 is not a drop-in replacement for Protaculous (it has a different interface entirely). Carousel 2 has been separated from Protaculous, and is also a single-file Action, so it won’t have this bundle issue either.

Walter

On Apr 9, 2013, at 7:35 AM, gfel wrote:

Hi all, Since upgrading to FW Pro 6, I am getting the following error when I try to publish my site? I have updated & installed the latest protaculous action. Is anyone else having this issue and has advice on how to clear it?

Also, is there an easy way of telling which elements in your site are using this action? I am not sure I am using it as a single action but wonder if it is bundled with the carousel2 action perhaps?

Any help would be very much appreciated :o).

The file Hard Drive:Users:user:Library:Application Support:Freeway Pro:Actions:General:Protaculous.fwactionb:Contents:Resources:Actions:Support Files~:prototype1610packer.js for this resource cannot be found.
The file Hard Drive:Users:user:Library:Application Support:Freeway Pro:Actions:General:Protaculous.fwactionb:Contents:Resources:Actions:Support Files~:scriptaculous183packer.js for this resource cannot be found.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter,

When I upgraded to FW6 I removed the Protaculous and Carousel actions from the actions folder and replaced them with the Protaculous2.fwaction and Carousel2 so these are the ones I now have in the actions folder. I tried to follow the release notes Softpress issued with FW 6 in regard to updating the actions.

So do I need to use and reinstall an older action in FW6 to remove this error? I am slightly confused when you say Protaculous2 is written in a completely different manner…as this is probably why I am getting the error. Is Protaculous part of the new Carousel2 action which I have installed? Although my carousels seem to be working in preview?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A bit of history: The first versions of the “Scripty” Actions (mine and Softpress’s and Paul Dunning’s – probably some others I have forgotten here, sorry) did not use the Google CDN to get their library code. Instead, everything was bundled inside the Action itself. There are two major libraries in these Actions – Prototype.js and Scriptaculous. These are toolkits of programming shortcuts for building JavaScript applications, and they let you write very neat and tidy code and have it work across all the wild range of different browsers and platforms.

When we decided to start using the Google CDN to deliver these libraries, we left all of that library code where it was, as a backup in case you were building your site on a desert island away from any network. (Even if you get that error that you did, if the Action still completes its publish pass, the page it generates will work, since it is still linking to the Google CDN for Prototype and Scriptaculous.) This decision introduced a subtle issue, which only came to light in the past year or so: if your network was just slightly imperfect, you would get time-outs while publishing, as Freeway would send a ping to Google to see if you had a live network connection, and if that single ping didn’t come back, Freeway would wait for it so long that the Action would time out and publishing would fail. The Action would be marked as degraded and wouldn’t run any more.

To fix this problem, I decided last year to completely give up on the bundled libraries, and always link to the CDN. This allowed me to build more complex Actions without polluting the head of the page with acres of JavaScript, and to ship single-file Actions that had no internal dependencies. Protaculous 2 and Carousel 2 were the initial result of that architectural decision.

To upgrade from Protaculous to Protaculous 2, what you need to do is go through your document (maybe duplicate it in Finder so you can open the two versions side-by-side) and copy the JavaScript you have pasted into the Function Body editors in Protaculous and paste it into the DOM Loaded Observer or Window Load Observer editors in Protaculous 2. You will also find that the interface for the “Libraries” picker is gone, replaced with a note that we always link to Prototype, and you can optionally add individual libraries from the Scriptaculous toolkit.

To upgrade from Protaculous to Carousel 2, you need to remove all instances of the Carousel Actions, publish once, then go through and re-apply the Carousel 2 equivalents to each element. The interface is identical, but the Actions work entirely differently from one another, so you can’t just pick one off and add the other without going through that step of publishing without the Actions applied.

Once you have done these steps, you should no longer be sourcing the cached versions of the Protaculous action bundle, and you will have a much leaner page that works across more browsers.

Walter

On Apr 9, 2013, at 8:54 AM, gfel wrote:

Thanks Walter,

When I upgraded to FW6 I removed the Protaculous and Carousel actions from the actions folder and replaced them with the Protaculous2.fwaction and Carousel2 so these are the ones I now have in the actions folder. I tried to follow the release notes Softpress issued with FW 6 in regard to updating the actions.

So do I need to use and reinstall an older action in FW6 to remove this error? I am slightly confused when you say Protaculous2 is written in a completely different manner…as this is probably why I am getting the error. Is Protaculous part of the new Carousel2 action which I have installed? Although my carousels seem to be working in preview?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter very helpful.
Could I ask what actions may be using Protaculous? As I am not sure I have used it independently and therefore am not sure what to remove, publish and then replace? Could it be linked to Sitelok, which I have used on this site? Apart from that I am only really using the carousel2 which I am just removing as per your instructions.
Thanks again :o)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Protaculous contains the Carousel family of Actions and the Observer Action (and the Protaculous Action, naturally). If you have used any of those, and then deleted the Action from your Actions folder, the Protaculous Action will still be cached inside of the Freeway document. To get rid of it, you will need to look through all pages (and master pages) for any instance of those Actions, either attached to the page or to individual elements as they may be. Once you find them, and remove them, and publish once, the cache will be cleared and you will be free to re-enable the new versions of those Actions without issue.

Here’s something to try. Close all documents in Freeway, then open a new document (created fresh, not saved earlier). Look in the Page / Page Actions menu and see if you see Protaculous, or if you only see Protaculous 2 listed there.

Walter

On Apr 9, 2013, at 11:31 AM, gfel wrote:

Thanks Walter very helpful.
Could I ask what actions may be using Protaculous? As I am not sure I have used it independently and therefore am not sure what to remove, publish and then replace? Could it be linked to Sitelok, which I have used on this site? Apart from that I am only really using the carousel2 which I am just removing as per your instructions.
Thanks again :o)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, have just tried a new document and I can only see Protaculous2 in the actions menu?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s good. That confirms what I thought was happening. Now in your broken document, I bet you a beer you see both Protaculous and Protaculous 2 (unless you already cleared the document cache as I described earlier).

Walter

On Apr 9, 2013, at 3:20 PM, gfel wrote:

Thanks, have just tried a new document and I can only see Protaculous2 in the actions menu?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks again, I have ploughed though and removed, republished and replaced and the Protaculous error has cleared :o)

I am still getting one other error saying:

2013:230213.freeway_:index.html for this resource cannot be found.

This seems to be linked to one specific page on my site? Is there an easy way to reattach the index page to this page to clear this last error?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options