FreewayTalk

16 replies to this thread. Most Recent

dmrooney

18 Jan 2015, 4:11 am

Feed2js not showing

I had feed2js working properly on my site to show an rss feed I created using the RSS Feed action. Unfortunately, probably in playing around with the Styles Editor, I seem to have done something that has stopped the feed2js feed showing on my page.

I have deleted the original page, deleted all instances of the action throughout the site, deleted the action from my library, deleted my preferences, restarted, re-added the action to Freeway… no joy. I do not even get the “You need a PHP server” placeholder text when previewing in Freeway or in Browser. I have however had success adding a test of the same feed to www.donnarooney.net.

There is an instance of the action on the example page (in the collapsed, black-bordered box) and here is a link to the file… https://www.dropbox.com/s/l5mee9j41v8jmfl/150117-DWHF-Archive.zip?dl=0

http://dontworryhesfriendly.com

waltd

18 Jan 2015, 1:54 pm

The problem isn’t in the feed2js, but the feed you are trying to show — it’s apparently empty. There is a minor validation error in it. How did you make this feed?

http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fdontworryhesfriendly.com%2Flatestnews.xml

Walter

On Jan 18, 2015, at 12:11 AM, dmrooney <email@hidden> wrote:

I had feed2js working properly on my site to show an rss feed I created using the RSS Feed action. Unfortunately, probably in playing around with the Styles Editor, I seem to have done something that has stopped the feed2js feed showing on my page.

I have deleted the original page, deleted all instances of the action throughout the site, deleted the action from my library, deleted my preferences, restarted, re-added the action to Freeway… no joy. I do not even get the “You need a PHP server” placeholder text when previewing in Freeway or in Browser. I have however had success adding a test of the same feed to www.donnarooney.net.

There is an instance of the action on the example page (in the collapsed, black-bordered box) and here is a link to the file… https://www.dropbox.com/s/l5mee9j41v8jmfl/150117-DWHF-Archive.zip?dl=0

http://dontworryhesfriendly.com

Freeway user since 1997

http://www.walterdavisstudio.com

waltd

18 Jan 2015, 2:01 pm

Also, I realize that my previous comment was a little ambiguous. It’s not empty because it has a validation error in it — it’s empty because there are no <item> tags in it. The incorrect date format is just icing on that particular cake.

Walter

On Jan 18, 2015, at 9:54 AM, Walter Lee Davis <email@hidden> wrote:

The problem isn’t in the feed2js, but the feed you are trying to show — it’s apparently empty. There is a minor validation error in it. How did you make this feed?

Freeway user since 1997

http://www.walterdavisstudio.com

waltd

18 Jan 2015, 2:08 pm

It’s too early, and I cannot read yet. There is an item tag in there. My mistake. Take a look in your site folder with an SFTP application, like Transmit or Fetch. Make sure that the file feed2js.php exists in that folder, alongside the index.html file. Also, it looks (from your 404 page) as if there may be a CMS installed there on the same server. Does it have an .htaccess file, and can you post a Gist of its contents it here: https://gist.github.com and paste the URL of the resulting page back here? (.htaccess files can do all sorts of things to a server that make server-side software behave unpredictably, and they are never served to visitors — you can’t just request one by its URL — so we can’t see yours from here.)

Walter

On Jan 18, 2015, at 10:01 AM, Walter Lee Davis <email@hidden> wrote:

Also, I realize that my previous comment was a little ambiguous. It’s not empty because it has a validation error in it — it’s empty because there are no <item> tags in it. The incorrect date format is just icing on that particular cake.

Walter

On Jan 18, 2015, at 9:54 AM, Walter Lee Davis <email@hidden> wrote:

The problem isn’t in the feed2js, but the feed you are trying to show — it’s apparently empty. There is a minor validation error in it. How did you make this feed?

Freeway user since 1997

http://www.walterdavisstudio.com

dmrooney

18 Jan 2015, 6:33 pm

Hi, Walt — Thanks for responding. I made the feed using the RSS Feed Action, and as I’m building the site, it currently only has one item, but as I mentioned that feed was validating and working on the site prior to my mucking it up and it is currently working as it should on www.donnarooney.net.

I poked around further last night and discovered that no, the feed2js.php file is not in my Site Folder on my Mac nor is it on my server (it is there for www.donnarooney.net). As such I don’t even get the temp placeholder text when testing the site locally.

I do have Wordpress on my server at www.dontworryhesfriendly.com/blog (removing is actually next on my list and I can’t wait to get rid of it!). The WP .htaccess is here: https://gist.github.com/f8cc5cfa9e81c61398b2.git

The Freeway site .htaccess is here: https://gist.github.com/75d4bc4c2dec45ec1b75.git

I will double check the feed itself and work towards making sure it validates, though that change is now a new mystery as well.

Thanks!

D

dmrooney

18 Jan 2015, 6:46 pm

Hmm sorry, those links don’t seem to work for me… I’ll try to embed just in case… For the WP .htaccess

For the FP .htaccess

waltd

18 Jan 2015, 6:47 pm

Try using Freeway to upload the site, and if that doesn’t do the trick, then locate your Site Folder on your Mac, delete everything from it, then publish again. (Freeway will replace everything that it created the first time.) Then upload from Freeway again, which will force every file to be uploaded again. The Action ordinarily makes the feed2js.php file and sets it to upload, but there are various conditions where Freeway will “forget” about Action-created files. Your .htaccess looks entirely innocuous, unless you are uploading to the /blog folder, which I don’t think you are.

Walter

On Jan 18, 2015, at 2:32 PM, dmrooney <email@hidden> wrote:

Hi, Walt — Thanks for responding. I made the feed using the RSS Feed Action, and as I’m building the site, it currently only has one item, but as I mentioned that feed was validating and working on the site prior to my mucking it up and it is currently working as it should on www.donnarooney.net.

I poked around further last night and discovered that no, the feed2js.php file is not in my Site Folder on my Mac nor is it on my server (it is there for www.donnarooney.net). As such I don’t even get the temp placeholder text when testing the site locally.

I do have Wordpress on my server at www.dontworryhesfriendly.com/blog (removing is actually next on my list and I can’t wait to get rid of it!). The WP .htaccess is here: https://gist.github.com/f8cc5cfa9e81c61398b2.git

The Freeway site .htaccess is here: https://gist.github.com/75d4bc4c2dec45ec1b75.git

I will double check the feed itself and work towards making sure it validates, though that change is now a new mystery as well.

Thanks!

D

Freeway user since 1997

http://www.walterdavisstudio.com

waltd

18 Jan 2015, 6:55 pm

To add a Gist to the page in FreewayTalk, all you need to do is paste the HTML URL of the page on GitHub, not any of the embed stuff that GitHub provides for you. We do the conversion automatically. This:

https://gist.github.com/anonymous/441a871ab125bfe32d35

becomes this:

Walter

On Jan 18, 2015, at 2:45 PM, dmrooney <email@hidden> wrote:

Hmm sorry, those links don’t seem to work for me… I’ll try to embed just in case… For the WP .htaccess

For the FP .htaccess

Freeway user since 1997

http://www.walterdavisstudio.com

dmrooney

18 Jan 2015, 7:09 pm

Thank you, I did try that, but seems html copy included the .git extension which did not work.

Anyway, I deleted the Site Folder from my Mac and uploaded. No luck. The feed2js.php did not appear. Also I just noticed in the folder for donnarooney.net, where the feed2js is working… in the folder that ends with an underscore on my Mac (style and script libraries?), there is a feed2js.xml file that does not exist in the corresponding dwhf.com file.

D

waltd

18 Jan 2015, 7:18 pm

Remove the Action from where you have applied it on the broken page, and publish once. Then re-apply the Action and publish again. This should fix the issue, but if it does not, you may need to go through the process of uninstalling and re-installing the Action entirely. Actions are cached by the documents that use them, but in the case of an Action that includes files within itself (the “bundle” Actions, recognized by their use of the .fwactionb filename extension) this caching process can be incomplete, leading to an Action that appears to work, but fails to include some critical file or another.

Walter

On Jan 18, 2015, at 3:08 PM, dmrooney <email@hidden> wrote:

Thank you, I did try that, but seems html copy included the .git extension which did not work.

Anyway, I deleted the Site Folder from my Mac and uploaded. No luck. The feed2js.php did not appear. Also I just noticed in the folder for donnarooney.net, where the feed2js is workingÂ… in the folder that ends with an underscore on my Mac (style and script libraries?), there is a feed2js.xml file that does not exist in the corresponding dwhf.com file.

D

Freeway user since 1997

http://www.walterdavisstudio.com

dmrooney

18 Jan 2015, 7:51 pm

Thank you, Walter. I had already previously tried all those efforts prior to posting to the forum, thinking the very thing you explained. I also thought perhaps I deleted or fiddled with a critical style or something of that nature but it seems the issue goes deeper than that.

Is there a way to tell if a FP file is simply corrupt? I have tried deleting preferences, saving and opening from archives and all that with no change. Now I’m concerned there is possibly something more wrong with the file than I can see. Would hate to keep working on what I have only to find out down the road it’s all for naught! Or if not a way to tell if it’s corrupt but rather to start fresh, so to speak, aside from just cutting and pasting into a new file?

Thank you for your efforts!

D

waltd

18 Jan 2015, 7:59 pm

What happens if you create a new site folder, and publish into that? Do you get a new fresh copy of feed2js.php in the site root? (You should, that’s how it is supposed to work.)

Walter

On Jan 18, 2015, at 3:51 PM, dmrooney <email@hidden> wrote:

Thank you, Walter. I had already previously tried all those efforts prior to posting to the forum, thinking the very thing you explained. I also thought perhaps I deleted or fiddled with a critical style or something of that nature but it seems the issue goes deeper than that.

Is there a way to tell if a FP file is simply corrupt? I have tried deleting preferences, saving and opening from archives and all that with no change. Now I’m concerned there is possibly something more wrong with the file than I can see. Would hate to keep working on what I have only to find out down the road it’s all for naught! Or if not a way to tell if it’s corrupt but rather to start fresh, so to speak, aside from just cutting and pasting into a new file?

Thank you for your efforts!

D

Freeway user since 1997

http://www.walterdavisstudio.com

dmrooney

18 Jan 2015, 8:35 pm

How can I force it to publish to a new Site Folder? Incidentally, I deleted the whole Site Folder and it published to the main folder, which is fine, but still no feed2js.php or .xml. I created an archive and uploaded that, which then published a whole new site folder in the archive folder and still nothing. ‘Tis a good and true mystery.

I’m starting from scratch with an Archive file… deleted all instances on pages, removed action from library. Deleted contents of site folder. Is there any harm to deleting all FP files directly from my server? And then I shall republish, then add an instance of the action and then republish again. Sensible?

D

dmrooney

18 Jan 2015, 9:02 pm

Well, before I did that, I poked around and discovered a feed2js.php file on my server in a different directory on the same site… on a temporary blogger template. I went to that url (http://dontworryhesfriendly.com/Blogger/bloggermiscinfo.html) and indeed the feed is working there! However, as I have deleted everything from my original site folder and am now working from an archive, I still do not see this file anywhere on my Mac. And when previewed from FP, I get no placeholder text. I am now hesitant to upload or delete anything as this now might be a missing key!

D

waltd

18 Jan 2015, 9:03 pm

In the Document Setup dialog, on the Output tab, there is a button in the middle of the dialog. Use that to choose (and/or create) a new folder on your Mac to publish into. This is the biggest hammer you could have toward forcing a clean output of the site. By the way, the Feed2JS Action does not create a .xml file. It should create a .php file, and it should upload that to the server for you if you use Freeway to do the uploading.

Walter

On Jan 18, 2015, at 4:34 PM, dmrooney <email@hidden> wrote:

How can I force it to publish to a new Site Folder? Incidentally, I deleted the whole Site Folder and it published to the main folder, which is fine, but still no feed2js.php or .xml. I created an archive and uploaded that, which then published a whole new site folder in the archive folder and still nothing. ‘Tis a good and true mystery.

I’m starting from scratch with an Archive file… deleted all instances on pages, removed action from library. Deleted contents of site folder. Is there any harm to deleting all FP files directly from my server? And then I shall republish, then add an instance of the action and then republish again. Sensible?

D

Freeway user since 1997

http://www.walterdavisstudio.com

dmrooney

18 Jan 2015, 9:17 pm

Ah right, yes, thank you. I have trashed the feed2js action from /library/application support/freeway pro/ actions/general and emptied the trash however in the file it still shows the feed2js action under the Item>Actions menu. Is there some other step I need to take to remove it fully?

I would think the same thing, and can’t explain it, however in simply comparing the file structure between the site where it does not work and the site where it does, in the site folders for the site where it works… there is a php file, and in the named site file that ends with an underscore created upon publish, there is an xml file.

And yes, I am using FP do to the uploading. However is there benefit or harm to deleting the files directly from the server as well before trying to force another publish?

D

Back to Top

dmrooney

18 Jan 2015, 10:13 pm

Holy crap… I think we’ve got it. Starting from an Archive, deleting all instances of the action in FP and my Mac, restarting FP numerous times to clear it from the Actions list, deleting all files in the Site Folder on my Mac, deleting all files from server, forcing republish to a new Site Folder and uploading, adding a new blank page with text and an instance of the action, forcing a full republish again to the new Site Folder and uploading, who knows what else… and I think somewhere in there it worked!

What a way to spend a Sunday! Thank you, Walter for your guidance and patience.

Downside is my Media folder is a shambles!

D