abdullahthinkun
Forum Replies Created
-
Thanks for your reply. I wasn’t aware of the Events → Help screen. I’ve look at it now and it reports that logging is already disabled on both of the offending sites, which is very odd.
I will try the plugin method.
I’ve implemented a workaround for now on the sites experiencing the issue. functions.php:
if (class_exists('Tribe__Log__File_Logger')) { class New_Tribe__Log__File_Logger extends Tribe__Log__File_Logger { public function get_log_file_name() { return parent::get_log_file_name(); } }; $newtribelogger = new New_Tribe__Log__File_Logger(); $tribelogfile = $newtribelogger->get_log_file_name(); if (getmyuid() == fileowner($tribelogfile)) { chmod($tribelogfile, 0777); } unset($newtribelogger); unset($tribelogfile); }As you can see it isn’t even easy to get the log file name from the plugin since that function is protected. My script has to try retrieve the current log filename, check if the current user owns it, and then make it world readable/writable so that the other sites don’t throw an error.
I found a kinda related issue online: https://theeventscalendar.com/support/forums/topic/warning-file_exists-open_basedir-restriction-in-effect-2/ which said to add a filter for “tribe_file_logger_directory”. I tried adding filters for several of the filtered strings in ‘File_Logger.php’ with no luck because the logging action is executed before functions.php.
Yeah, so this won’t really affect the site in any way. It will only print debug errors when logged in as the admin+wholesale.
Thanks!
Yep we have User Role Editor and it is only happening on the wholesale user who has multiple roles. That user’s primary role is Administrator.
Thanks for your quick response. It only seems to happen when logged in to a user with the wholesale role, you are right. The error appears multiple times under each product.
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] Enable sticky based on minimum heightYeah that’s true. Thanks again.
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] Enable sticky based on minimum heightWow thanks a lot! It works great. So do I keep both plugins installed and this one just overrides the other one? That seems to be what it’s doing now. Would there be any point updating the main plugin if this one overrides it though?