I am trying to upgrade the PHP our Windows 2012 R2 server from 5.5 to 7.3.29 and have upgraded Woody Snippets to 2.4.1. Now, Woody snippet includes have stopped working. For example, I had a snippet that was simply this:
Now, the content section of the page that used to display a form now displays nothing. Using another plugin, I see these errors being displayed:
The full path on the server to this file is C:\inetpub\site.org\wp-includes\userCreated\classlib3\orig-newcar-manager.php
I've tried every combination of path I can think of in the snippet to get the file included. I've use the full path, added double-backslashes, forward slashes, double forward slashes, adding a dot before the leading slash (which creates a 500 error), and nothing works. Can anyone advise?
PHP:
$user = get_userdata(get_current_user_id());
include('\wp-includes\userCreated\cars3\orig-newcar-manager.php');
The full path on the server to this file is C:\inetpub\site.org\wp-includes\userCreated\classlib3\orig-newcar-manager.php
I've tried every combination of path I can think of in the snippet to get the file included. I've use the full path, added double-backslashes, forward slashes, double forward slashes, adding a dot before the leading slash (which creates a 500 error), and nothing works. Can anyone advise?
Attachments
-
11.8 KB Views: 142