Author Topic: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!  (Read 8374 times)

srikkanthan

  • Tadpole
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hi, I am using GAC for my blog page. It was working alright but stopped working when I upgraded to Wordpress 3.1. Please help. You can see my webpage here: http://www.sangatham.com/simple-sanskrit/flowers-and-fruits

It is throwing error like this:
Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: Unexpected end tag : p in Entity, line: 1 in /f5/sangatham/public/wp-content/plugins/gallery-and-caption/gallery-and-caption.php  on line 317

Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: Empty string supplied as input in /f5/sangatham/public/wp-content/plugins/gallery-and-caption/gallery-and-caption.php on line 317

Warning: simplexml_import_dom() [function.simplexml-import-dom]: Invalid Nodetype to import in /f5/sangatham/public/wp-content/plugins/gallery-and-caption/gallery-and-caption.php on line 318

Fatal error: Call to a member function xpath() on a non-object in /f5/sangatham/public/wp-content/plugins/gallery-and-caption/gallery-and-caption.php on line 319

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!
« Reply #1 on: February 25, 2011, 02:58:06 PM »
Ok I'm on it. Can you post your shortcode as well?

srikkanthan

  • Tadpole
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!
« Reply #2 on: February 25, 2011, 03:31:01 PM »
That was quick  :)  I am attaching my code.

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!
« Reply #3 on: February 25, 2011, 05:23:12 PM »
Thx. I'll plow through this and hope to get something before Monday.  Hope 3.1 doesnt throw too big a curve  :P

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!
« Reply #4 on: February 26, 2011, 12:29:58 PM »
Ok looks like 3.1 is fine.  You forgot to close a caption tag:
Code: [Select]
<p><br class="spacer_" /></p>
 [caption id="attachment_966" align="aligncenter" width="125" caption="मल्लिका (மல்லிகை)"]<a href="http://www.sangatham.com/wp-content/uploads/jasmine.jpg"><img class="size-full wp-image-966" title="jasmine" src="http://www.sangatham.com/wp-content/uploads/jasmine.jpg" alt="मल्लिका (மல்லிகை)" width="125" height="125" /></a>
^^^^ Close this guy


[caption id="attachment_968" align="aligncenter" width="125" caption="पाटलपुष्पम् (ரோஜா)"]<a href="http://www.sangatham.com/wp-content/uploads/rose2.jpg"><img class="size-full wp-image-968" title="rose2" src="http://www.sangatham.com/wp-content/uploads/rose2.jpg" alt="पाटलपुष्पम् (ரோஜா)" width="125" height="125" /></a>[/caption]


In 3.1 I was able to use all of our plugins without issue.  Please tell me if you still have problems or not though, because every install has different plugins, and every user has slightly different habits.  I may not be replicating your problem.

srikkanthan

  • Tadpole
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!
« Reply #5 on: February 26, 2011, 03:20:53 PM »
yes, my bad. That was because the tag was not closed. I can get the page working after I closed the tag. Earlier I had this page up and running for a good period, donno how the close tag disappeared. I think it must be wordpress maligning my tags, you see I never added these "<br class="spacer_" />"  code.

Anyway,  I really appreciate your prompt help.

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Gallery And Caption Plugin - Not working in Wordpress 3.1!! Please Help!!
« Reply #6 on: February 26, 2011, 04:35:23 PM »
No worries. Coincided with 3.1 so I would have assumed the same

Any issues just shout