mypbaph
Member
PHP:$post['rating_cache'] = is_array($post['rating_cache']) ? json_encode($post['rating_cache']) : $post['rating_cache'];
hi! did this code solve the issue between Sticky First Post and Post Ratings?
PHP:$post['rating_cache'] = is_array($post['rating_cache']) ? json_encode($post['rating_cache']) : $post['rating_cache'];
as I said in my previous message, I'm not sure it's a problem with Sticky First Post and I didn't have much time to figure it out. However, that hack simply fixed the problem I was having. If you forum is reporting the same error as mine did, you may try that piece of code and try to fix it. However, that's a temporal solution and you should dig deeper to find the root of the problem.hi! did this code solve the issue between Sticky First Post and Post Ratings?
@Luke Foreman
just purchased this, received this error (many of them)
Error Info
ErrorException: json_decode() expects parameter 1 to be string, array given - library/Dark/PostRating/Model/Post.php:86
Generated By: marclouie, 2 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'json_decode() e...', '/home/hoopsph/p...', 86, Array)
#1 /home/hoopsph/public_html/forum/library/Dark/PostRating/Model/Post.php(86): json_decode(Array, true)
#2 /home/hoopsph/public_html/forum/library/LiamW/StickyFirstPost/Extend/ControllerPublic/Thread.php(63): Dark_PostRating_Model_Post->preparePost(Array, Array, Array, Array)
#3 /home/hoopsph/public_html/forum/library/XenForo/FrontController.php(347): LiamW_StickyFirstPost_Extend_ControllerPublic_Thread->actionIndex()
#4 /home/hoopsph/public_html/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /home/hoopsph/public_html/forum/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
["url"] => string(87) "Things to do this off-season for the Hotshots?"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
is it in conflict with the Sticky First Post addon? I disabled it and error messages stopped, but i also need it. please HELP!
Luke,
For other addons developers, you should provide a way not to have your ratings loaded when FETCH_USER is present.
For one of my mods I wanted to get post data using Post Model existing function, that led to tremendous query times due to the impossibility to avoid to get all your select count(*), which weren't necessary for the purpose of my query.
Clément
Never mind - it was attached to the email. My bad ;-;Anything I can do here? I paid for this and am using it but wish to update it, yet I am being told to "purchase for £20".
You have a big forum ? Try increasing memory_limit in php.ini.Update planned for 1.5 beta 2? Won't install...................
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 256 bytes) in /home/user/public_html/xxxx.com/library/XenForo/Model/StyleProperty.php on line 145
33554432 bytes is ~33mb.You have a big forum ? Try increasing memory_limit in php.ini.
Or maybe the new update has a php memory leak somewhere ?
No, just a brand new, super-small forum. On shared hosting. My php.ini says...............You have a big forum ? Try increasing memory_limit in php.ini.
Or maybe the new update has a php memory leak somewhere ?
Not sure on any of that stuff. Shared hosting. Xenforo running fine, just this add-on that won't install on 1.5 beta 2.@Rusty Snippets XenForo requires at least 128mb per php process. Not ~32mb.........
Is there a way to use the like system by Xenforo parallel to yours?
Not sure on any of that stuff. Shared hosting. Xenforo running fine, just this add-on that won't install on 1.5 beta 2.
Is there a way to use the like system by Xenforo parallel to yours?
Thanks! That worked perfectly! Installed and using now!You need to raise the PHP memory_limit setting to at least 256MB. Some bits of XF will also fail once your forum gets more busy
Yes.Hello,
I'm curious if there's a way to turn off certain ratings such as the "dislike", "dumb", and "old".
If there is, how would I go about doing that?
Thanks!
We use essential cookies to make this site work, and optional cookies to enhance your experience.