[TaylorJ] Blogs

[TaylorJ] Blogs 1.3.0

No permission to download
This error happens when I try to read a blog post

TypeError: XF\Repository\PostRepository::findPostsForThreadView(): Argument #1 ($thread) must be of type XF\Entity\Thread, null given, called in /home/e4tcom/public_html/forum/src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php on line 37 in src/XF/Repository/PostRepository.php at line 12
  1. XF\Repository\PostRepository->findPostsForThreadView() in src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php at line 37
  2. TaylorJ\Blogs\Pub\Controller\BlogPost->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
  3. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  4. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  5. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  6. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2813
  7. XF\App->run() in src/XF.php at line 802
  8. XF::runApp() in index.php at line 23
 
Will take a further look into that error this morning after my daily work meetings and hopefully get a fix released today as that's the same one reported last night as well. Not sure why it's happening as this is one of the bugs I had to fix to get it ready for release and I tested it on 4 different upgrades/installs and stopped running into it.

Edit:
@Hareon what steps did you take when creating the blog post / what options did you select when creating it to better help re-produce.

I also want to see about packaging this addon with Sentry but need to see if that's allowed first. Sentry sends the errors anyone comes across automatically and also has a step by step play through of how it happened so I wouldn't have to ask for reproduction steps as often/at all in the future.
 
Will take a further look into that error this morning after my daily work meetings and hopefully get a fix released today as that's the same one reported last night as well. Not sure why it's happening as this is one of the bugs I had to fix to get it ready for release and I tested it on 4 different upgrades/installs and stopped running into it.

Edit:
@Hareon what steps did you take when creating the blog post / what options did you select when creating it to better help re-produce.

I also want to see about packaging this addon with Sentry but need to see if that's allowed first. Sentry sends the errors anyone comes across automatically and also has a step by step play through of how it happened so I wouldn't have to ask for reproduction steps as often/at all in the future.
@Enes3078 Whenever you have the time / remember the steps you took would you also be able to provide the steps/options used when creating that blog post?
 
@Enes3078 Whenever you have the time / remember the steps you took would you also be able to provide the steps/options used when creating that blog post?

Here is my blog options:

1729800273674.webp

Then I create a new blog from here:

1729800316671.webp

Here is the blog page:

1729800335197.webp

Crate blog page:

1729800357165.webp

Then I got this error:

Code:
TypeError: XF\Repository\PostRepository::findPostsForThreadView(): Argument #1 ($thread) must be of type XF\Entity\Thread, null given, called in /home/forum/public_html/forum/src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php on line 37 in src/XF/Repository/PostRepository.php at line 12
XF\Repository\PostRepository->findPostsForThreadView() in src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php at line 37
TaylorJ\Blogs\Pub\Controller\BlogPost->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
 
Here is my blog options:

View attachment 312933

Then I create a new blog from here:

View attachment 312934

Here is the blog page:

View attachment 312935

Crate blog page:

View attachment 312936

Then I got this error:

Code:
TypeError: XF\Repository\PostRepository::findPostsForThreadView(): Argument #1 ($thread) must be of type XF\Entity\Thread, null given, called in /home/forum/public_html/forum/src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php on line 37 in src/XF/Repository/PostRepository.php at line 12
XF\Repository\PostRepository->findPostsForThreadView() in src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php at line 37
TaylorJ\Blogs\Pub\Controller\BlogPost->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
Is this taking place after the blog post has been approved?

I haven't been able to replicate this on any of my 5 local installs nor my actual server install since 1.1.0
 
Can you tell me how to find that table via phpMyAdmin? Maybe I was wrong.
It should just be a table with that name in the same database that you have XF using. I don't have a phpmyadmin installed right now to provide a clearer screenshot, sorry.
 
So far I still haven't been able to replicate the issue. I've tried with an admin account (for all of these) with the node permission being only set to private, set to private and also not allowing any user group to be able to view through permissions, and then only having the permissions set to not view while having the private node option unchecked.


As you can see there isn't:

View attachment 313007
Is this your xenforo db where you can see xf_user, xf_activity_summary_definition, xf_activity_summary_section, xf_addon (the last three being the first three you should see at the top of the list).

If it is I would try uninstalling the addon and re-downloading 1.1.0 and attempting again.
 
Edit:
@Hareon what steps did you take when creating the blog post / what options did you select when creating it to better help re-produce.

I also want to see about packaging this addon with Sentry but need to see if that's allowed first. Sentry sends the errors anyone comes across automatically and also has a step by step play through of how it happened so I wouldn't have to ask for reproduction steps as often/at all in the future.
I create a new blog

1729966956742.webp

Then I posted into it.

1729966978481.webp

when I click in to view the complete post:

1729967148830.webp
 
Back
Top Bottom