Sleepybear84
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Attempting to filter eventsI think you’re confused. I’m trying to apply a filter when a different plugin (TEC Elementor Widget) or the main events page loads, so I was trying to hook into tribe_get_events filter (
apply_filter('tribe_get_event'), but the way it’s called is weird. I’m not trying to get the events directly.I have since figured it out, but I had to apply a whole bunch of conditions to see exactly what scenario the filter was being called from because it’s done differently. Also, returning null for a particular event in get_tribe_event seems to explode other parts of the plugin, while sometimes it works fine.
- This reply was modified 3 years ago by Sleepybear84.
Forum: Installing WordPress
In reply to: Blank Page on install.php?step=2So I did some more testing… Hopefully someone else can help figure this out. I removed my old PHP installation and installed a fresh copy of PHP 5.6.5 with PEAR.
I set MySQL General log to on and PHP logging to E_ALL. I have WP_DEBUG and SCRIPT_DEBUG both set to true in wp-config.ini.
I ran install 3 different times. Each time I was using the modified populate_roles_160(), shown here:
http://pastebin.com/ynEsWb5J
Attempt 1:
Result HTML: http://pastebin.com/ELNjzCFF
SQL Log: http://pastebin.com/bpE654LbAttempt 2:
Result HTML: http://pastebin.com/e6e0aitt
SQL Log: http://pastebin.com/z2UDncxrAttempt 3:
Result HTML: http://pastebin.com/YpjGCfrv
SQL Log: http://pastebin.com/Xf1f6cp5Each time the IIS log shows the same set of GET/POSTS: http://pastebin.com/jyuwDcg5
and the PHP_error.log is blank.I am at a complete loss… It doesn’t make sense that part of the PHP/MySQL is working, and then just randomly stops without any sort of error…. I must be missing something.Forum: Installing WordPress
In reply to: Blank Page on install.php?step=2Ok, this makes no sense…
I found out it’s getting stuck in populate_roles_160(), but it’s random on where it gets stuck.
I added a printout above each group of caps, such as
?><!-- add caps for Administrator --> <?phpThis way I could figure out where it was getting stuck, but after 3 different install attempts, it gets stuck in 3 different locations. I’ve run it a few times now and It’s always getting stuck somewhere in that function, but in different parts…
This is really frustrating with no built in error messages on crashes!!
EDIT: http://pastebin.com/ynEsWb5J here is the whole function. I’ve seen it crash on each role, but never get past this function… I cannot explain why.Forum: Installing WordPress
In reply to: Blank Page on install.php?step=2I have been able to determine that it is dying somewhere in the pupulate_roles(); function 46 on line of upgrade.php. I added a printout of a comment before and after both of those functions and the html source I get when install.php?step=2 finally prints shows the following:
<h1 id="logo"><a href="https://wordpress.org/" tabindex="-1">WordPress</a></h1> <!-- ENTERING populate_options(); --><!-- EXITTED populate_options(); --> <!-- ENTERING populate_roles(); -->I am just not sure what in there is crashing and not putting an error out to the php log or this debug log….
Forum: Installing WordPress
In reply to: Blank Page on install.php?step=2I deleted my wp-config.php and let the install script create it, still failed. I added those two define statements to the generated wp-config.php and dropped my database and redid my installation, same result and no file called /wp-content/debug.log was created…
Forum: Installing WordPress
In reply to: Blank Page on install.php?step=2I am installing it on an IIS Server that is in my living room. I suppose you could call that a local install? The server is live to the outside world though, but I am the admin.
I manually did the wp-config.php file because when I don’t have it, the install script tells me it can’t create the file so I have to do it.
I also have the php memory limit at 128MB, so I know that’s not the issue. I am getting no errors in PHP log or IIS logs….