By Emanuel Rosenzweig on Wednesday, 19 April 2017
Posted in Technical Issues
Likes 0
Views 368
Votes 0
After updating to EasyBLog 5.1.2, it is impossible to get into any item or category.
Error message:

Call to a member function getProfileLink() on null

Also, at the homepage, there is a showcase module, but it seems that the JS doesn't work now.
Hello Emanuel,

Did you perform any template overrides for EasyBlog? You will need to update $post->author to $post->creator as we addressed a conflict issue with Community Builder's content plugin.
·
Wednesday, 19 April 2017 22:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Yes, I do have template override.
Should I change ANY occurrence of the &post->author?

I have it in (many times) the files:
\html\com_easyblog\blogs\entry\default.print.php
\html\com_easyblog\themes\mytemplate\blogs\entry\author.php
\html\com_easyblog\themes\mytemplate\blogs\entry\default.php
·
Wednesday, 19 April 2017 23:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Anyway, I change every occurrence of $post->author including those which have further variables $post->author->etc.
Now, I do get content, but the entire site template is messed up and at the bottom, I get the next error message:

Call to undefined method EasyBlogSocialButtons::enabled

It is also has something to do with the override since there are some posts which are not based on it and there the template looks right.
·
Wednesday, 19 April 2017 23:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Emanuel,

Did you manage to figure this out? I seem to be able to access the post at http://www.sh-taim.co.il/shtaim-new/kitchef/bread-savory-baking/284-paleo-whole-bread just fine.

If you have not modified much, you can just copy the css and theme files over and replace it accordingly.
·
Wednesday, 19 April 2017 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
you are looking at an old site for tests... don't use /shtaim-new/
Go to sh-taim.co.il and use the credentials I provided since I set the site to offline until I'll solve this major issue... you can choose any link with an image of food you'll find in this page.
·
Wednesday, 19 April 2017 23:52
·
0 Likes
·
0 Votes
·
0 Comments
·
You need to replace the social button codes in your overriden files. I tried to login to your ftp but any changes I made doesn't seem to take any effect.

Old codes:

[gist]
<?php if ($this->entryParams->get('post_social_buttons', true)) { ?>
<?php echo $this->output('site/blogs/part.socialbuttons', array('post' => $post)); ?>
<?php } ?>
[/gist]

New codes:

[gist]
<?php if ($this->entryParams->get('post_social_buttons', true)) { ?>
<?php echo EB::socialbuttons()->html($post, 'entry'); ?>
<?php } ?>
[/gist]
·
Thursday, 20 April 2017 00:20
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, we got some progress.
The overall site template is fine and the social buttons error is gone.

I do have many CSS issues now and still the JS problem in the showcase module at the homepage.
If you can check the showcase module, it will be great.
I'll work on the CSS issues and let you know what I found.

Thanks!
·
Thursday, 20 April 2017 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Emanuel,

The FTP access which you have provided I believe is not for the correct site because any changes I made isn't updated. Please update your FTP access at https://stackideas.com/dashboard/site

Anyway, can you try uploading the attached file into /media/com_easyblog/scripts/ and see how this goes? The issue is the usage between left / right because rather than using left, it should be using right on RTL sites.

Also, I believe most of your css issues can be fixed simply by replacing the selectors used. It really depends on what you have been adding / modifying.

In 5.0,

#fd.eb ....

In 5.1,

#eb ...
·
Thursday, 20 April 2017 12:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Sorry for the FTP directory problem. Your FTP account now points to the live site.
I uploaded the file you attached. It solved the JS problem of the ShowCase module. Thanks!!

As for the CSS problem, I understand the issue of the new selectors. This is a major change. I'll dive into it.

But it seems that you also changed the theme's override logic.
What worked for me in the old version:
Since I use an override of an included theme (Vintage), besides adding files to myTemplate\html\com_easyblog\themes\myTheme\... I also had to copy two CSS files from the vintage/styles folder into a new folder I created: components/com_easyblog/themes/myTheme/styles/
The files are:

  • style-min.css
  • style-modules-min.css


In the new version:
There is no call to these CSS files of myTheme, only to the custom.css file which previously you suggested copying into it the code from the files I mentioned, but since there was a huge problem of broken links to many icons, I used the method I described above.

So the question now is:
Which files should I copy from the Vintage theme and where to?

Just to give you more details:
If I go to a post which uses the Vintage theme, two files are called:

  • /components/com_easyblog/themes/wireframe/styles/style-modules-5.1.2-rtl.min.css
  • /components/com_easyblog/themes/vintage/styles/style-5.1.2-rtl.min.css

If I go to a post which uses the override theme (recipe), these files are called:

  • /templates/jsn_dona_pro/html/com_easyblog/themes/recipe/styles/custom.css
  • /components/com_easyblog/themes/wireframe/styles/style-modules-5.1.2-rtl.min.css
·
Thursday, 20 April 2017 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Emanuel,

You will need to copy the new css files generated by vintage over to your template overriden folder.
·
Thursday, 20 April 2017 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
I copied the files:

  • /components/com_easyblog/themes/vintage/styles/style-5.1.2.min.css
  • /components/com_easyblog/themes/vintage/styles/style-5.1.2-rtl.min.css

into to override theme "recipe":
\templates\jsn_dona_pro\html\com_easyblog\themes\recipe\styles

But that doesn't change anything.

The system only calls for the next two files

  • /templates/jsn_dona_pro/html/com_easyblog/themes/recipe/styles/custom.css (which is empty now)
  • /components/com_easyblog/themes/wireframe/styles/style-modules-5.1.2-rtl.min.css
·
Thursday, 20 April 2017 23:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Emanuel,

I am sorry for the delay of this reply as I was reading back all the changes between 5.0 and 5.1. The behavior of this is exactly the same as 5.0.44. If you have a custom.css file, EasyBlog will use that custom.css and it will not render the style-5.1.2-rtl.min.css .

This is the correct behavior because EasyBlog assumes that you would want to move all your changes into the custom.css file.

I have made some modifications temporarily so that your site would look better at least in /administrator/components/com_easyblog/includes/stylesheet/stylesheet.php but you should ideally copy all the style-5.1.2-rtl.min.css into the custom.css file.
·
Saturday, 22 April 2017 17:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, the change you made, brought back the behavior of the CSS override as it was before. Good!!!
Will this change you did be overridden once I'll update the component?

Unfortunately, copying the styl-5.1.2-rtl.css into the custom.css file is very complicated since in the original CSS file there are A LOT of URL definitions pointing relatively back to the MEDIA directory. I should be re-written them if I copy them the custom file...

Three other questions:
Back to the beginning of this issue ( Error: getProfileLink() on null ), I get this also if I browse to a [url=http://sh-taim.co.il/kitchef/meat category page[/url]. I already replaced all the occurrences of $post->author.
Should I do the same with $blog->author and $comment->author?

Another issue, maybe with the RTL and JS situation:

  • In the comment form the editor buttons are missing and also the captcha rotation is not working.
  • Also the rating stars are missing
·
Saturday, 22 April 2017 18:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Emanuel,

The changes that I add was specifically for your site only because this behavior has been the same since the latest version of 5.0.44. The ideal way of creating an override is to copy the css contents into your own custom.css.

Why?
Some site owners doesn't want to render EasyBlog's css at all and they are unable to prevent EasyBlog from rendering it's own stylesheet. The only way around this is to have them create a custom.css which overrides with their own styling.



Three other questions:
Back to the beginning of this issue ( Error: getProfileLink() on null ), I get this also if I browse to a [url=http://sh-taim.co.il/kitchef/meat category page[/url]. I already replaced all the occurrences of $post->author.
Should I do the same with $blog->author and $comment->author?

Yes, you need to replace $post->author and $blog->author but with the latest release 5.1.4, we have already assigned the ->author variable back to have backward compatibility for custom templates created from 5.0.



In the comment form the editor buttons are missing and also the captcha rotation is not working.

Can you please start a new thread on our forums so that I can link it to our issue tracker


Also the rating stars are missing

Can you please start a new thread on our forums so that I can link it to our issue tracker
·
Sunday, 23 April 2017 15:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I followed the method of copying the CSS content into the custom file. As I said, not so simple since I had to fix every occurrence of the URLs pointing to the media folder...
What should we do if we need both RTL and LTR? Currently, I copied the RTL version only...

Now, there is a strange behavior:
Some of the pages, when defined as a single category page, show the listing posts as it was in the (Good) older version. See the example here.
Other menu items, when defined as tag list or author list, use a different design. See example here.
(look at the place of the author avatar, the date format etc...).

I will separate the rest of the questions into different threads.

Thanks a lot!!!
·
Monday, 24 April 2017 06:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Since the original question in this thread has already been resolved, I will mark this as resolved and lock this to avoid confusions between our moderators. Please do start a new thread for any issues that you face.

Also, I do hope that you understand, that it is your responsibility to update the theme file that you have overriden. We cannot be doing this for every customer because eventually we will not have time to do anything else.
·
Monday, 24 April 2017 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post