Weird problem → google picasa feed & nette.ajax
- Václav Novotný
- Member | 13
Hi,
I want to load photos from google picasa albums via XML feed. I load data from
all public photos from one user and then I want display only albums related
with viewing content. At some pages/views, it works well, but I have problem
with one case, where i get error 500 - Internal Server Error
, and
I cannot solve it for quite couple of hours now.
Strangely, when I write test code outside of nette, without using of ajax etc., just the pure PHP processing mechanism, it works good. Unluckily, I'm begginer, so I dont have much experience with debuging tools and now I even have no clue, where might be the problem. So any advice is welcome.
I'll put here my problematic code (only problematic part) as is
,
even with link to user albums. It contains pictures of some glass products etc.
== no sensitive data.
PRESENTER
TEMPLATE
For dynamic loading of tab content I use jQuery 1.9.1 and nette.ajax 1.2.2. When I load tab with images from other albums, than (albumID: 5927213289295143921), it works, so I have problems with this one album, but, if i rewrite processing mechanism into single PHP file, it runs without problem, you can try it with this code:
Do you have suspicion, what could cause that
error 500: internal server error
? Because I'm out of bullets.
Thanks in advance
Last edited by Václav Novotný (2013-10-02 17:15)
- Václav Novotný
- Member | 13
Wow, so laděnka works like in production mode when ajax call is triggered.
That's cool! I looked in log folder (that didn't cross my mind before) and
I found that problem was in custom helper in combination with czech
filename – I used preg_match and metacharacter \w
for all
‘word characters’, but this metacharacter is english only, so id didn't
match czech word. No it's solved. Thank YOU!