Page 1 of 2

Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Sun Dec 13, 2009 1:56 am
by Stark Raving
Well, this is strange. I added the gallery tag to my gallery page (latest Px install) then clicked on save and the screen went blank. White as snow. I tried reloading the page, using the browser bookmark for the login (using latest Firefox) but still white. No source code shows. Nada.

What have I done?! Likely this isn't an extension problem, but that's what I was doing when it happened.

http://nirvanabyinstallments.com

I checked out the rest of the forum, tried clearing cache, but still a blank. Can't check the log either to see what may have happened.

I looked into my files on ftp and saw htaccess files that I didn't add in my template and internal template folders. Are they suppose to be there? They both are:

Code: Select all
<Files ~ ".(htaccess|htpasswd|inc|html|htm|php|tpl)$">
deny from all
</Files>


Well, I deleted them, but it didn't do anything. I think I need to send login details to someone. Who would like to tackle this?

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Sun Dec 13, 2009 1:34 pm
by hansfn
This is actually documented - read Troubleshooting PivotX - If nothing works, and you can't get into the backend.

PS! The .htaccess files you deleted is part of PivotX.

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Sun Dec 13, 2009 10:41 pm
by Stark Raving
Thanks, Hans. I managed to get into the backend and delete the gallery extension last night. All is right again. I even re-installed the gallery extension to see if it was in fact the problem. I got the white screen again when I placed the gallery tag in the page and hit the post button. Guess I'll have to think of something else for posting photos. C'est domage.

Cheers

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Sun Dec 13, 2009 11:00 pm
by hansfn
Are you running PivotX 2.0.0 and downloading the latest gallery extension from SVN? If so, that won't work - they aren't in sync. You better grab a new version of PivotX from http://pivotx.net/files/unstable-development/ - it includes the gallery extension.

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Mon Dec 14, 2009 12:10 am
by Stark Raving
Hans,

Ah. Yes, it's Px 2.0.0, etc. Will download the newer Px with synched gallery extension. Thank you.

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Mon Dec 14, 2009 7:14 pm
by Stark Raving
Hans,

Updated to 2.1.0 alpha 3, added the gallery tag to my page and received the following:

Smarty error: [in db:tpl_adf32f44ce line 1]: syntax error: unclosed tag {gallery} (opened line 1). (Smarty_Compiler.class.php, line 317): 256

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Mon Dec 14, 2009 7:47 pm
by Schop
There is probably a typo or something in your template code. Can you show us the template code you're using?

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Mon Dec 14, 2009 10:44 pm
by hansfn
That error message is very clear. You have inserted [[gallery]] without [[/gallery]] ... Please look at the start of the file extensions/gallery/hook_gallery.php - everything is documented there. An example:

Code: Select all
  <div class="gallery">
  [[gallery popup="thickbox"]]
    <a href='%imageurl%%filename%' class="thickbox" title="%title%" rel="gallery-%uid%" >
    <img src="%pivotxurl%includes/timthumb.php?src=%filename%&amp;w=106&amp;h=80&amp;zc=1" alt="%alttext%" />
    </a>
  [[/gallery]]
  </div>

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Tue Dec 15, 2009 1:27 am
by Stark Raving
Hmmm. The info in the hook_gallery file says I can put the code in a template. What if I want to put it on a page? Sorry for the dumb questions. I'm not even sure how this extension is suppose to work. Let me see if there are any examples that others have posted using this extension. Thanks.

Re: Uh Oh! Gallery Extension Made Web Site Disappear?

PostPosted: Tue Dec 15, 2009 8:45 am
by hansfn
Just try ... but this is really meant for people that use image galleries in many posts. If you only need it once, you might as well just use the fancybox extension and insert many popups.