PHP: Error using include_once function. Failed opening 'mysiteURL' for inclusion

1.3k views Asked by At

I have never used PHP and need it just to build my WordPress site with an installed theme.

Every time when I open any pages under my wp-admin, I'm getting a warning:

Warning: include_once(): Failed opening ‘/myURL/public_html/wp-content/plugins/dsidxpress/admin.php’ for inclusion (include_path=’.:/usr/local/php56/pear’) in /myURL/public_html/wp-content/plugins/dsidxpress123/dsidxpress.php on line 90

When opening .php, I see the following code on line 90:

include_once(str_replace("\\", "/", WP_PLUGIN_DIR) . "/dsidxpress/admin.php");

After changing it per the instrucions:

include_once(include_path='.:/usr/local/php56/pear' . “/dsidxpress/admin.php”);

I'm getting new error:

Parse error: syntax error, unexpected ‘=’ in /myURL/public_html/wp-content/plugins/dsidxpress123/dsidxpress.php on line 90

How exactly do I need to change it?

0

There are 0 answers