- Posts: 3
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- Simple Image Gallery
- Works but with this error... Undefined property: stdClass::$title
Works but with this error... Undefined property: stdClass::$title
- calx
-
Topic Author
- Offline
- New Member
Less
More
14 years 2 weeks ago #39564
by calx
Works but with this error... Undefined property: stdClass::$title was created by calx
Hi, SIG seems to generate the gallery ok, but posts this error before it. I've searched the forum, and found several references to "Undefined property: stdClass" but none seem to deal with this issue in particular.
I'm running Joomla 1.6 and SIG 2.1
Notice: Undefined property: stdClass::$title in D:\wamp\www\joomla\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\tmpl\Polaroids\default.php on line 14
Call Stack
# Time Memory Function Location
1 0.0006 388056 {main}( ) ..\index.php:0
2 0.1516 6507552 JSite->dispatch( ) ..\index.php:43
3 0.1622 6886704 JComponentHelper::renderComponent( ) ..\application.php:188
4 0.1674 6952384 require_once( 'D:\wamp\www\joomla\components\com_content\content.php' ) ..\helper.php:152
5 0.1742 7359928 JController->execute( ) ..\content.php:19
6 0.1742 7359976 ContentController->display( ) ..\controller.php:649
7 0.1847 8216088 JController->display( ) ..\controller.php:78
8 0.1928 8779144 ContentViewFeatured->display( ) ..\controller.php:616
9 0.2260 9315128 JHtml::_( ) ..\view.html.php:80
10 0.2268 9323672 JHtml::call( ) ..\html.php:119
11 0.2268 9324120 call_user_func_array ( ) ..\html.php:187
12 0.2268 9324304 JHtmlContent::prepare( ) ..\html.php:0
13 0.2408 9992776 JDispatcher->trigger( ) ..\content.php:37
14 0.2408 9993328 JEvent->update( ) ..\dispatcher.php:115
15 0.2409 9993848 call_user_func_array ( ) ..\event.php:46
16 0.2409 9993872 plgContentJw_simpleImageGallery->onContentPrepare( ) ..\event.php:0
17 0.2418 10058184 require( 'D:\wamp\www\joomla\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery_1.6.php' ) ..\jw_simpleImageGallery.php:34
18 1.2595 10248464 include( 'D:\wamp\www\joomla\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\tmpl\Polaroids\default.php' )
Line 14 seems to be....
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b>'.$row->title.'</b>
', ENT_QUOTES, 'utf-8');
Any help would be greatly appreciated, as this plugin seems to be exactly what I'm looking for. If only I could resolve this issue.
Thanks.
I'm running Joomla 1.6 and SIG 2.1
Notice: Undefined property: stdClass::$title in D:\wamp\www\joomla\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\tmpl\Polaroids\default.php on line 14
Call Stack
# Time Memory Function Location
1 0.0006 388056 {main}( ) ..\index.php:0
2 0.1516 6507552 JSite->dispatch( ) ..\index.php:43
3 0.1622 6886704 JComponentHelper::renderComponent( ) ..\application.php:188
4 0.1674 6952384 require_once( 'D:\wamp\www\joomla\components\com_content\content.php' ) ..\helper.php:152
5 0.1742 7359928 JController->execute( ) ..\content.php:19
6 0.1742 7359976 ContentController->display( ) ..\controller.php:649
7 0.1847 8216088 JController->display( ) ..\controller.php:78
8 0.1928 8779144 ContentViewFeatured->display( ) ..\controller.php:616
9 0.2260 9315128 JHtml::_( ) ..\view.html.php:80
10 0.2268 9323672 JHtml::call( ) ..\html.php:119
11 0.2268 9324120 call_user_func_array ( ) ..\html.php:187
12 0.2268 9324304 JHtmlContent::prepare( ) ..\html.php:0
13 0.2408 9992776 JDispatcher->trigger( ) ..\content.php:37
14 0.2408 9993328 JEvent->update( ) ..\dispatcher.php:115
15 0.2409 9993848 call_user_func_array ( ) ..\event.php:46
16 0.2409 9993872 plgContentJw_simpleImageGallery->onContentPrepare( ) ..\event.php:0
17 0.2418 10058184 require( 'D:\wamp\www\joomla\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery_1.6.php' ) ..\jw_simpleImageGallery.php:34
18 1.2595 10248464 include( 'D:\wamp\www\joomla\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\tmpl\Polaroids\default.php' )
Line 14 seems to be....
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b>'.$row->title.'</b>
', ENT_QUOTES, 'utf-8');
Any help would be greatly appreciated, as this plugin seems to be exactly what I'm looking for. If only I could resolve this issue.
Thanks.
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
Less
More
- Posts: 4696
14 years 2 weeks ago #39565
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: Works but with this error... Undefined property: stdClass::$title
Please provide us a link to your site.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- calx
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 2 weeks ago #39566
by calx
Replied by calx on topic Re: Works but with this error... Undefined property: stdClass::$title
I'm afraid I can't, as it's not live right now, just developing it locally. Is there any other information I could provide which might help out?
Thanks for the reply.
Thanks for the reply.
Please Log in or Create an account to join the conversation.
- sianigh
-
- Offline
- New Member
Less
More
- Posts: 1
14 years 2 weeks ago #39567
by sianigh
Replied by sianigh on topic Re: Works but with this error... Undefined property: stdClass::$title
Hello,
I am a newbie to Joomla and this plug-in and also have exactly the same error.
Notice: Undefined property: stdClass::$title in /Applications/MAMP/htdocs/plugins/content/jw_simpleImageGallery/jw_simpleImageGallery/tmpl/Polaroids/default.php on line 14
(fig1.png)
I am currently working through a lynda.com training course and so following their instructions. They were using the beta version of this plug in in feb 2011 though.
What I found is that when I commented out that line that has the issue (line 14)... (fig2.png) then upon refreshing the page it looks fine (fig3.png),
However when you click to enlarge it comes up with a similar error, only underneath (fig4):
Notice: Undefined variable: photoCaption in /Applications/MAMP/htdocs/plugins/content/jw_simpleImageGallery/jw_simpleImageGallery/tmpl/Polaroids/default.php on line 23
The functionality of the plug-in is fine, as in I can go left and right through the gallery but it just has this error. As I had commented out the $photocaption i decided to remove the echo from line 23 and it now works but without any of the information relating to the image.
Before:
<a href="<?php echo $photo->sourceImageFilePath; ?>" class="sig-link" style="width:<?php echo $thb_width; ?>px;height:<?php echo $thb_height; ?>px;" rel="lightbox[gallery<?php echo $galleryID; ?>]" title="<?php echo $photoCaption; ?>" target="_blank">
After:
<a href="<?php echo $photo->sourceImageFilePath; ?>" class="sig-link" style="width:<?php echo $thb_width; ?>px;height:<?php echo $thb_height; ?>px;" rel="lightbox[gallery<?php echo $galleryID; ?>] ?>" target="_blank">
Now I could leave it at that but presumably the whole point of having that piece of code is to offer a caption. Which grabs information on that image from the database?
(on lynda.com tutorial video it has the following as a caption underneath the image:
"Navigation tip: Hover
mouse on top of the
right or left side of the
image to see the next
or previous image
respectively.
You are browsing
images from the
article:
Image 1 of 5"
I would have posted a screengrab only, I'm only allowed to post 4)
I too cannot provide a link online as I am learning this locally on my machine.
I could use this solution as a possible fix but might like it to work as the developer intended it.
Thanks for your help in advance.
Si
I am a newbie to Joomla and this plug-in and also have exactly the same error.
Notice: Undefined property: stdClass::$title in /Applications/MAMP/htdocs/plugins/content/jw_simpleImageGallery/jw_simpleImageGallery/tmpl/Polaroids/default.php on line 14
(fig1.png)
I am currently working through a lynda.com training course and so following their instructions. They were using the beta version of this plug in in feb 2011 though.
What I found is that when I commented out that line that has the issue (line 14)... (fig2.png) then upon refreshing the page it looks fine (fig3.png),
However when you click to enlarge it comes up with a similar error, only underneath (fig4):
Notice: Undefined variable: photoCaption in /Applications/MAMP/htdocs/plugins/content/jw_simpleImageGallery/jw_simpleImageGallery/tmpl/Polaroids/default.php on line 23
The functionality of the plug-in is fine, as in I can go left and right through the gallery but it just has this error. As I had commented out the $photocaption i decided to remove the echo from line 23 and it now works but without any of the information relating to the image.
Before:
<a href="<?php echo $photo->sourceImageFilePath; ?>" class="sig-link" style="width:<?php echo $thb_width; ?>px;height:<?php echo $thb_height; ?>px;" rel="lightbox[gallery<?php echo $galleryID; ?>]" title="<?php echo $photoCaption; ?>" target="_blank">
After:
<a href="<?php echo $photo->sourceImageFilePath; ?>" class="sig-link" style="width:<?php echo $thb_width; ?>px;height:<?php echo $thb_height; ?>px;" rel="lightbox[gallery<?php echo $galleryID; ?>] ?>" target="_blank">
Now I could leave it at that but presumably the whole point of having that piece of code is to offer a caption. Which grabs information on that image from the database?
(on lynda.com tutorial video it has the following as a caption underneath the image:
"Navigation tip: Hover
mouse on top of the
right or left side of the
image to see the next
or previous image
respectively.
You are browsing
images from the
article:
Image 1 of 5"
I would have posted a screengrab only, I'm only allowed to post 4)
I too cannot provide a link online as I am learning this locally on my machine.
I could use this solution as a possible fix but might like it to work as the developer intended it.
Thanks for your help in advance.
Si
Please Log in or Create an account to join the conversation.
- calx
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 2 weeks ago #39568
by calx
Replied by calx on topic Re: Works but with this error... Undefined property: stdClass::$title
Thank you so much sianigh
this has solved my issue. Your a champion!!
Much gratitude, and best wishes!
Much gratitude, and best wishes!
Please Log in or Create an account to join the conversation.
- fredjoom
-
- Offline
- New Member
Less
More
- Posts: 2
13 years 10 months ago - 13 years 10 months ago #39569
by fredjoom
Replied by fredjoom on topic Re: Works but with this error... Undefined property: stdClass::$title
Hello , if it can help , I had the same error , so I changed the line 14 in the php file
from this :
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b>'.$row->title.'</b>
', ENT_QUOTES, 'utf-8');
to this :
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b></b>
', ENT_QUOTES, 'utf-8');
in fact I'd just remove '.$row->title.' from the initial line.
then all the functionalities work fine.
Hope it'll help.
from this :
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b>'.$row->title.'</b>
', ENT_QUOTES, 'utf-8');
to this :
$photoCaption = htmlentities(JText::_('JW_SIG_NAVTIP').' <b></b>
', ENT_QUOTES, 'utf-8');
in fact I'd just remove '.$row->title.' from the initial line.
then all the functionalities work fine.
Hope it'll help.
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- Simple Image Gallery
- Works but with this error... Undefined property: stdClass::$title