Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Blog in dashboard

15 Mar 2013, 12:03

I upgraded a clients installation to v2.8.8.1 last week and the main site is working fine, but logging in to admin today, I see that there are no imagevue blog posts in the dashboard... I can see the twitter feed, but the blog to its right is blank (heading and rss logo are there, but no content below)... i'm pretty sure there was content there when I upgraded, so just wondering if there is a problem with the feed or if its something that i've done... or if my memory is failing and its always been blank!

I did add a .htaccess file that blocked all IPs from logging in apart from myself and the client to the admin folder, but I don't think it can be this as even when disabled, the blog section of dashboard is still blank.

it's not important to the functionality of the site, i'm just curious to find out what's causing it and how to fix it.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Blog in dashboard

17 Mar 2013, 01:17

This I am not sure, but it does work here at least, also in latest version:
Image
Could be some kinda server blocking somehow, as it brings in RSS data from a remote server.
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Re: Blog in dashboard

17 Mar 2013, 09:34

Hi Karl,

thanks for the reply and for confirming that memory is still working (well more or less!) and that is what I remember seeing.

I've found the problem and think i've solved it - there's a small out of date line of code in one of the files.. on line 35 of dashboard.index.phtml
Code
<script src="http://feed2js.org//feed2js.php?src=http%3A%2F%2Ffeeds.feedburner.com%2FImagevue&num=5&desc=400&html=p"  type="text/javascript"></script>
if I put 'www' into the start of that URL it then works...
Code
<script src="http://www.feed2js.org//feed2js.php?src=http%3A%2F%2Ffeeds.feedburner.com%2FImagevue&num=5&desc=400&html=p"  type="text/javascript"></script>
going directly to http://feed2js.org just gives a 503 Service Temporary Unavailable error.

if you run their "Build A Feed" form, the link it now generates starts 'www.feed2js.org' - so maybe they've tweaked their server settings it in the last few days and only 'www' works now.

hope that helps and you can include it in future updates.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Blog in dashboard

17 Mar 2013, 13:07

Seems like its something with your internet connection perhaps DNS ... Because it certainly works fine from here non-www:
Image
It happens because I see now this is javascript called from the client, and since your internet for some reason has problems calling that URL, the JS just dies and the dashboard does not get populated. It is nothing with neither feed2js or Imagevue ... :/
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Re: Blog in dashboard

17 Mar 2013, 19:56

mjau-mjau wrote:It happens because I see now this is javascript called from the client, and since your internet for some reason has problems calling that URL, the JS just dies and the dashboard does not get populated. It is nothing with neither feed2js or Imagevue ... :/
perhaps it has a greater chance of working for you as imagevue and feed2js are both hosted at cloudflare...

anyway, I googled for others seeing the same problem and found the following link...

http://cogdogblog.com/2011/09/27/red-alert-for-feed2js/

it's a quote from Alan Levine (feed2js author) from a couple of days ago... from the bottom of the page of comments.
The outages are not everywhere, it seems to be a regional issue with the content distribution network we began using.

I would suggest finding an alternative service anyhow; I am likely going to phase out the service by June and/or convert it to a fee based one. I cannot sustain support for a wide open one. The code is always free to download and install on your own server.
so I suspect for future versions, you're going to have to host your own version of the script.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Blog in dashboard

18 Mar 2013, 23:56

I it resolved in Imagevue X2.8.8.2
firedev.com
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Re: Blog in dashboard

19 Mar 2013, 07:13

updated to the new version and i'm now getting the following error when going to the dashboard...

Fatal error: Call to a member function getElementsByTagName() on a non-object in /iv-admin/controllers/DashboardController.php on line 39

other parts of admin appear to be working fine, so have disabled the dashboard in settings for now until this is resolved.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Blog in dashboard

20 Mar 2013, 00:48

Hmm this is a sad news, looks like you might have something specific configuration on your server preventing requests to RSS field to be made.

Unfortunately with PHP you often find that things do not work as planned everywhere. Might I ask you for an ftp login to see what is going on and patch it up for the next update?
firedev.com
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Re: Blog in dashboard

20 Mar 2013, 11:41

Nick,

I think the URL may be the problem... I ran another php parser script to access the rss file and it threw up the following error -

Document is empty in https://www.photo.gallery/rss/, line: 1

assuming that the above link is just a redirect, I edited the original dashboardcontroller.php file and changed the URL to either -

https://www.photo.gallery/feed/
or
[LINK REMOVED]/Imagevue

either will work for me.
imagevuex.png
imagevuex.png (31.19 KiB) Viewed 9784 times
this is what i'm now seeing in Firefox v19.02 (though as the titles are slightly larger, I've reduced the listed posts from 5 to 4)... also looks the same in Chrome too.

hope this helps.

Brian
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Blog in dashboard

21 Mar 2013, 22:16

Good job, thanks, I'll change the code in Imagevue as well according to your findings.
firedev.com
 
dollknoll
Posts: 11
Joined: 04 Jul 2011, 07:07

Re: Blog in dashboard

05 May 2013, 12:12

Same (dashboard) problem here (version 2.8.10). I get the following message:
Fatal error: Call to a member function getElementsByTagName() on a non-object in /var/www/web1/html/bw-peterrees-com/iv-admin/controllers/DashboardController.php on line 39

I change the link in DashboardController.php from
https://www.photo.gallery/feed/
to
[LINK REMOVED]/Imagevue
but nothing happens.

Peter



http://blackandwhite.peterrees.com
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Blog in dashboard

05 May 2013, 12:49

Hmm, sounds like this is something local to your installation, I could take a look to see if there is a way to solve this for other people who might have this issue if you PM me your ftp login.

Are all the files from the new version uploaded properly?
firedev.com
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Re: Blog in dashboard

05 May 2013, 19:44

if it helps Nick, i've just upgraded my clients installation from v2.8.8.2 to v2.8.10 and the dashboard is working fine for me.

dollknoll, i'd suggest following Nick's advice and reuploading and seeing if that works..

Brian
 
Dr_Leeb
Posts: 6
Joined: 29 Dec 2010, 15:33

Re: Blog in dashboard

12 May 2013, 00:47

Hello, I just upgraded to the latest version and my gallery reports the same error.

Fatal error: Call to a member function getElementsByTagName() on a non-object in /iv-admin/controllers/DashboardController.php on line 39
 
User avatar
janus
Topic Author
Posts: 15
Joined: 20 Nov 2012, 11:32

Re: Blog in dashboard

12 May 2013, 07:09

Dr_Leeb wrote:Hello, I just upgraded to the latest version and my gallery reports the same error.

Fatal error: Call to a member function getElementsByTagName() on a non-object in /iv-admin/controllers/DashboardController.php on line 39
from experience (unless Nick tells you differently!), that error usually means it can't find the RSS feed - either because it was down when you logged into dashboard or there is a network issue between your hosting company (Yahoo) and the imagevue feed server.

you could try putting another RSS feed from a different site in the dashboardcontroller.php code below:
Code
private function getRSSFeed($feedURL='https://www.photo.gallery/feed/')
I just tested mine by changing it to a BBC News feed and it works fine, but you should choose one that you know works for you (probably from your own country).

if imagevue shows this new feed, then you'll know that imagevue script is fine... and the problem is between Yahoo and the imagevue feed server... if imagevue doesn't show the new RSS feed, and you KNOW the RSS is working, then that would indicate a script or installation error.

our dashboard is still working with the imagevue feed, so I don't think it's an error with imagevue, but more likely network issues at your end (or imagevue's).