Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Warning: include error message
- This topic has 13 replies, 4 voices, and was last updated 13 years, 3 months ago by wzp.
-
AuthorPosts
-
November 4, 2010 at 5:19 am #2122vanMember
Warning: include_once() [function.include]: Failed opening ‘/affiliates/lang/eng.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/mysite/public_html/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 36
I moved the contents of the affiliates folder to a new /affiliates folder in the root. Then I adjusted the misc_func.php to reflect ../wp-lead.php
I double checked and the mysite.com/affiliates/lang/eng.php is definitely there.
Any idea?
November 4, 2010 at 12:57 pm #26071wzpModeratorInstead of the “server’s roor-root” directory, how about trying the “/home/mysite/public_html document root” directory? In other words, it looks like you are trying to access a file that is located outside the web server’s document directory tree.
August 17, 2011 at 11:45 pm #26072sazz3000MemberHello WZP, I’m having the same problem, please can you explain: /home/mysite/public_html document root” directory? so i can fix the problem myself? Thanks
August 18, 2011 at 12:52 am #26073wzpModeratorThere are 2 “root” directories… the server’s SYSTEM root, and the server’s DOCUMENT root. You don’t want to use the SYSTEM “/” root directory, you want the DOCUMENT directory; the one in which wp-content and wp-admin live.
August 18, 2011 at 2:41 am #26074sazz3000Memberi moved the affiliate to /home/mysite/public_html/adv/ however I’m getting this error below:
Warning: include_once(affiliates/lang/eng.php) [function.include-once]: failed to open stream: No such file or directory in /home/mysite/public_html/adv/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 28
please help
Thanks
August 18, 2011 at 11:17 pm #26075adminKeymasterWhy are you moving the affiliates folder?
August 18, 2011 at 11:41 pm #26076sazz3000Memberbecause i want to change the link to something very simple like http://www.mysite.com/adv/affiliates my word press is in tall in folder called adv i also change ../../../../wp-load.php to ../wp-load.php in the misc_func.php and I’m getting the error:
Warning: include_once(affiliates/lang/eng.php) [function.include-once]: failed to open stream: No such file or directory in /home/mysite/public_html/adv/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 28
Thanks
August 20, 2011 at 9:09 am #26077sazz3000Memberany help please?
August 20, 2011 at 11:41 am #26078wzpModeratorIs this what you are looking for?
August 20, 2011 at 8:34 pm #26079sazz3000MemberYes that was what I did and getting the error:
Warning: include_once(affiliates/lang/eng.php) [function.include-once]: failed to open stream: No such file or directory in /home/mysite/public_html/adv/wp-content/plugins/wp-affiliate-platform/wp_affiliate_platform1.php on line 28
Im Still getting the error
August 20, 2011 at 10:01 pm #26080wzpModeratorYou did a “copy” and not a “move?”
August 20, 2011 at 10:39 pm #26081adminKeymasterPlease use option 2 from this documentation, it will be easier for you (the method you followed requires advanced URL structure knowledge… there is a warning on that page about this):
http://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
August 25, 2011 at 8:20 am #26082sazz3000Memberhello any help?
August 25, 2011 at 12:26 pm #26083wzpModeratorDid you understand the last 2 pieces of advice we gave you? In the case of the directory, you were asked if you COPIED, instead of MOVED the directory, per the referenced instructions. In the second (easier) alternative, it was recommended that you simply use the affiliate view short code, instead of trying to alter the URL.
-
AuthorPosts
- You must be logged in to reply to this topic.