thebrandonallen / edit-author-slug

WordPress plugin that allows an admin (or capable user) to edit the author slug of a user, and change the author base. New development takes place on the 'develop' branch.
http://wordpress.org/plugins/edit-author-slug/
GNU General Public License v2.0
41 stars 8 forks source link

I want to know the reason for this error #20

Closed tartan7 closed 4 years ago

tartan7 commented 5 years ago

Hi

Warning:require(jncludes/classes/class-ba-edit-author-slug.php):failed to open stream:No such file or directory in XXXXXXXXXXXX /edit-author-slug.php on line 38

Fatal error:require():Failed opening required 'jncludes/classes/class-ba-edit-author-slug.php'(include_path',:xxxxxxxxxx') in XXXXXXXXXXXXXXXXXXX/edit-author-slug.php on line 38

I have not edited the plugin. In addition, I would like to know why

defined( 'ABSPATH' ) || exit;

Sincerely yours

chesio commented 5 years ago

Hi,

it seems like the file includes/classes/class-ba-edit-author-slug.php is missing on your WordPress installation - maybe plugin installation broke in the middle of process?

As for defined( 'ABSPATH' ) || exit; bit - this is a de facto standard way how to prevent direct access to PHP files that should be only included/required from other files.

Cheers, Česlav

speedysense commented 4 years ago

I suggest to do this things without plugin checkout this article may be help you.

Cheers