Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › PHP Warning include_once after server migration
- This topic has 6 replies, 2 voices, and was last updated 10 years, 9 months ago by damz.
-
AuthorPosts
-
February 11, 2014 at 3:02 pm #10521damzMember
Hello,
I meet a small trouble after server migration, I get a PHP warning on all pages of the plugin and in WP admin area too:
Code:Warning: include_once(affiliates/lang/fr.php) [function.include-once]: failed to open stream: No such file or directory in /home/…/public_html/…/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 29Warning: include_once() [function.include]: Failed opening ‘affiliates/lang/fr.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/…/public_html/…/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 29
Would you know what’s wrong?
Can I just comment “include_once($language_file);” (line 29) without disturbing the whole plugin?
Everything was working perfectly in the past and I do have a example.com/affiliates/lang/fr.php file.
People access to the affiliate are via example.com/affiliates/ (files are placed on that folder, it’s not a WP post or page URL)
Thanks for your help,
Damz
February 11, 2014 at 3:10 pm #60811wzpModeratorBecause you redacted the error messages, there is not enough information to make an interpretation.
February 11, 2014 at 3:19 pm #60812damzMemberHum no, I just removed my real folders. OK, let’s change that, here is the full message:
Code:Warning: include_once(affiliates/lang/fr.php) [function.include-once]: failed to open stream: No such file or directory in /home/damz/public_html/mywebsite/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 29Warning: include_once() [function.include]: Failed opening ‘affiliates/lang/fr.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/damz/public_html/mywebsite/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 29
February 11, 2014 at 3:38 pm #60813wzpModeratorAnd just why do you have the “affiliates/lang/fr.php” file in the document root folder of your website? It ***should*** be in the “wp-content/plugins/wp-affiliate-platform” directory for the Affiliate Platform.
February 11, 2014 at 3:55 pm #60814damzMemberBecause I wanted a cuter login/register URL, and so I followed the second option here (The Copy Method): http://www.tipsandtricks-hq.com/wordpress-affiliate/how-to-changecustomize-the-url-of-the-affiliate-view-42
February 11, 2014 at 3:57 pm #60815wzpModeratorOkay, the key word is “Copy,” not “Move.” Did you leave the originals behind?
And did you remember to perform “Step 2?”
February 11, 2014 at 4:03 pm #60816damzMemberWoops, OK, I moved and not duplicated the folder, you’re totally right, my bad.
I don’t know why it was working with the other hosting company but it doesn’t matter, thanks for your help wzp!
-
AuthorPosts
- You must be logged in to reply to this topic.