By Haim Barad on Wednesday, 07 October 2015
Posted in Technical Issues
Replies 13
Likes 0
Views 802
Votes 0
Perhaps this is a simple matter of upgrading an EasyBlog plugin, but I get errors now when logged into the site and when the user goes to the "Profile" in ES.

Suggestions? The errors are below...


Notice: Undefined variable: userId in /var/www/administrator/components/com_easyblog/includes/gallery/gallery.php on line 150 Call Stack: 0.0001 248352 1. {main}() /var/www/index.php:0 0.0158 982560 2. JApplicationCms->execute() /var/www/index.php:45 0.0158 982760 3. JApplicationSite->doExecute() /var/www/libraries/cms/application/cms.php:252 0.2598 9469984 4. JApplicationSite->dispatch() /var/www/libraries/cms/application/site.php:230 0.2612 9485480 5. JComponentHelper::renderComponent() /var/www/libraries/cms/application/site.php:191 0.2614 9486936 6. JComponentHelper::executeComponent() /var/www/libraries/cms/component/helper.php:372 0.2614 9504528 7. require_once('/var/www/components/com_easysocial/easysocial.php') /var/www/libraries/cms/component/helper.php:392 0.5582 12216480 8. EasySocialController->execute() /var/www/components/com_easysocial/easysocial.php:82 0.5583 12216672 9. JControllerLegacy->execute() /var/www/components/com_easysocial/controllers/controller.php:66 0.5583 12217192 10. EasySocialController->display() /var/www/libraries/legacy/controller/legacy.php:728 0.5587 12231048 11. EasySocialViewProfile->display() /var/www/components/com_easysocial/controllers/controller.php:143 0.6471 13311240 12. SocialStream->get() /var/www/components/com_easysocial/views/profile/view.html.php:229 0.6827 13658728 13. SocialStream->format() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:1723 0.7774 15677128 14. SocialStream->onPrepareStream() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:740 0.7774 15677176 15. SocialStream->onPrepareEvent() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:2043 0.7775 15677744 16. SocialDispatcher->trigger() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:2100 0.7776 15683016 17. SocialAppItem->update() /var/www/administrator/components/com_easysocial/includes/dispatcher/dispatcher.php:137 0.7776 15683848 18. call_user_func_array() /var/www/administrator/components/com_easysocial/includes/apps/dependencies.php:169 0.7776 15683880 19. SocialUserAppBlog->onPrepareStream() /var/www/administrator/components/com_easysocial/includes/apps/dependencies.php:169 0.7882 15698560 20. SocialUserAppBlog->prepareUpdateBlogStream() /var/www/media/com_easysocial/apps/user/blog/blog.php:298 0.9221 18048800 21. EasyBlogPost->getIntro() /var/www/media/com_easysocial/apps/user/blog/blog.php:498 0.9222 18062976 22. EasyBlogTruncater->truncate() /var/www/administrator/components/com_easyblog/includes/post/post.php:3430 0.9226 18082480 23. EasyBlogGallery->getItems() /var/www/administrator/components/com_easyblog/includes/truncater/truncater.php:71 0.9307 18533272 24. EasyBlogGallery->getImages() /var/www/administrator/components/com_easyblog/includes/gallery/gallery.php:110 Notice: Trying to get property of non-object in /var/www/administrator/components/com_easyblog/includes/gallery/gallery.php on line 150 Call Stack: 0.0001 248352 1. {main}() /var/www/index.php:0 0.0158 982560 2. JApplicationCms->execute() /var/www/index.php:45 0.0158 982760 3. JApplicationSite->doExecute() /var/www/libraries/cms/application/cms.php:252 0.2598 9469984 4. JApplicationSite->dispatch() /var/www/libraries/cms/application/site.php:230 0.2612 9485480 5. JComponentHelper::renderComponent() /var/www/libraries/cms/application/site.php:191 0.2614 9486936 6. JComponentHelper::executeComponent() /var/www/libraries/cms/component/helper.php:372 0.2614 9504528 7. require_once('/var/www/components/com_easysocial/easysocial.php') /var/www/libraries/cms/component/helper.php:392 0.5582 12216480 8. EasySocialController->execute() /var/www/components/com_easysocial/easysocial.php:82 0.5583 12216672 9. JControllerLegacy->execute() /var/www/components/com_easysocial/controllers/controller.php:66 0.5583 12217192 10. EasySocialController->display() /var/www/libraries/legacy/controller/legacy.php:728 0.5587 12231048 11. EasySocialViewProfile->display() /var/www/components/com_easysocial/controllers/controller.php:143 0.6471 13311240 12. SocialStream->get() /var/www/components/com_easysocial/views/profile/view.html.php:229 0.6827 13658728 13. SocialStream->format() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:1723 0.7774 15677128 14. SocialStream->onPrepareStream() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:740 0.7774 15677176 15. SocialStream->onPrepareEvent() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:2043 0.7775 15677744 16. SocialDispatcher->trigger() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:2100 0.7776 15683016 17. SocialAppItem->update() /var/www/administrator/components/com_easysocial/includes/dispatcher/dispatcher.php:137 0.7776 15683848 18. call_user_func_array() /var/www/administrator/components/com_easysocial/includes/apps/dependencies.php:169 0.7776 15683880 19. SocialUserAppBlog->onPrepareStream() /var/www/administrator/components/com_easysocial/includes/apps/dependencies.php:169 0.7882 15698560 20. SocialUserAppBlog->prepareUpdateBlogStream() /var/www/media/com_easysocial/apps/user/blog/blog.php:298 0.9221 18048800 21. EasyBlogPost->getIntro() /var/www/media/com_easysocial/apps/user/blog/blog.php:498 0.9222 18062976 22. EasyBlogTruncater->truncate() /var/www/administrator/components/com_easyblog/includes/post/post.php:3430 0.9226 18082480 23. EasyBlogGallery->getItems() /var/www/administrator/components/com_easyblog/includes/truncater/truncater.php:71 0.9307 18533272 24. EasyBlogGallery->getImages() /var/www/administrator/components/com_easyblog/includes/gallery/gallery.php:110
Also - on an unrelated issue... how does a user setup his simple URL (new feature in 1.4.x)? Where is this "permalink" that I see written about? How is it done? I've enabled simple URLs in the settings... but I don't see how it's actually specified.
·
Wednesday, 07 October 2015 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Haim,

May I know where did you get this error? Perhaps, you can provide us the exact URL to that page.
·
Wednesday, 07 October 2015 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
https://drinkedin.net/registration/profile.html - but that doesn't tell you anything.

1. You need to be logged in.
2. You then go to "My Profile" in EasySocial
3. This is what I see... http://d.pr/i/1h4Wi

Also - can you answer the question about the simple URL setting by the user (permalink)?
·
Wednesday, 07 October 2015 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
OK - I found that I neglected to put the "Permalink" field into the profiles - doh! OK - that answered my minor question.

Still - I'm having the errors/warnings on the profile page.
·
Wednesday, 07 October 2015 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Haim,

Glad that you found it. As for the profile page, please replace the attached file in: ../administrator/components/com_easyblog/includes/gallery/gallery.php and see how it goes.
·
Wednesday, 07 October 2015 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Not quite. It got rid of some errors/warnings...

Now I see:

Notice: Trying to get property of non-object in /var/www/administrator/components/com_easyblog/includes/gallery/gallery.php on line 151 Call Stack: 0.0001 248280 1. {main}() /var/www/index.php:0 0.3216 987240 2. JApplicationCms->execute() /var/www/index.php:45 0.3216 987440 3. JApplicationSite->doExecute() /var/www/libraries/cms/application/cms.php:252 0.5785 9473368 4. JApplicationSite->dispatch() /var/www/libraries/cms/application/site.php:230 0.5795 9488848 5. JComponentHelper::renderComponent() /var/www/libraries/cms/application/site.php:191 0.5796 9490304 6. JComponentHelper::executeComponent() /var/www/libraries/cms/component/helper.php:372 0.5797 9507896 7. require_once('/var/www/components/com_easysocial/easysocial.php') /var/www/libraries/cms/component/helper.php:392 0.8505 12194352 8. EasySocialController->execute() /var/www/components/com_easysocial/easysocial.php:82 0.8506 12194544 9. JControllerLegacy->execute() /var/www/components/com_easysocial/controllers/controller.php:66 0.8506 12195064 10. EasySocialController->display() /var/www/libraries/legacy/controller/legacy.php:728 0.8511 12208920 11. EasySocialViewProfile->display() /var/www/components/com_easysocial/controllers/controller.php:143 0.9315 13288848 12. SocialStream->get() /var/www/components/com_easysocial/views/profile/view.html.php:229 0.9648 13638200 13. SocialStream->format() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:1723 1.0884 15816656 14. SocialStream->onPrepareStream() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:740 1.0884 15816704 15. SocialStream->onPrepareEvent() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:2043 1.0885 15817272 16. SocialDispatcher->trigger() /var/www/administrator/components/com_easysocial/includes/stream/stream.php:2100 1.0886 15822224 17. SocialAppItem->update() /var/www/administrator/components/com_easysocial/includes/dispatcher/dispatcher.php:137 1.0886 15823144 18. call_user_func_array() /var/www/administrator/components/com_easysocial/includes/apps/dependencies.php:169 1.0886 15823176 19. SocialUserAppBlog->onPrepareStream() /var/www/administrator/components/com_easysocial/includes/apps/dependencies.php:169 1.1064 15837680 20. SocialUserAppBlog->prepareUpdateBlogStream() /var/www/media/com_easysocial/apps/user/blog/blog.php:298 1.2382 18187752 21. EasyBlogPost->getIntro() /var/www/media/com_easysocial/apps/user/blog/blog.php:498 1.2383 18201928 22. EasyBlogTruncater->truncate() /var/www/administrator/components/com_easyblog/includes/post/post.php:3430 1.2390 18285488 23. EasyBlogGallery->getItems() /var/www/administrator/components/com_easyblog/includes/truncater/truncater.php:71 1.2453 18736232 24. EasyBlogGallery->getImages() /var/www/administrator/components/com_easyblog/includes/gallery/gallery.php:110
·
Wednesday, 07 October 2015 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Haim,

Hm, it is a bit tricky because I need to troubleshoot your site but since the procedure to edit your file is a bit complicated, it is a bit tedious. However, as you can see, it is just a Notice error which I believe did not affect the component. If you don't mind, you can turn off the Error Reporting in your Joomla Configuration page in backend.
·
Wednesday, 07 October 2015 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
If it's a bug... it's a bug... and even if it's not critical, something like this can affect performance.

I have turned off sync on our cluster... so you can go ahead and test, debug and edit. Please let me know when you've finished and what change(s) you made.

Thanks.
·
Wednesday, 07 October 2015 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
OK - for the time being (since I think it's nighttime where you are), I've set Error Reporting to none. However, it would be useful to track this down and squash it. Please alert me when you'll be able to address it and I'll disable our syncing mechanism again.
·
Wednesday, 07 October 2015 17:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Haim,

I've checked your site and I found out that this post that causing the issue: Dubai Clubs & Bars - These will Redefine Nightlife for You. Seems like the gallery is missing. Can you update the gallery and see how it goes?
·
Wednesday, 07 October 2015 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Haim,

I've updated the gallery for you and that has fixed the issue.
·
Wednesday, 07 October 2015 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks - can you please send (or attach) the new gallery file? Since I did turn back on synchronization, I want to make sure that the correct file is indeed synchronized on our servers.

Thanks.
·
Wednesday, 07 October 2015 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Here the gallery file.
·
Wednesday, 07 October 2015 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post