D-Mack Media Forums

Full Version: Warning: Include Once () problem... Please help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have this problem when I publish that component. It says:

Code:
Warning: include_once(D:\Joomla!\xampp\htdocs\fmsdp\components\com_recommendfriends\includes\en_GB.php)
[function.include-once]: failed to open stream: No such file or directory in D:\Joomla!\xampp\htdocs\fmsdp\components\com_recommendfriends
\recommendfriends.php on line 57

Warning: include_once() [function.include]: Failed opening 'D:\Joomla!\xampp\htdocs\fmsdp\components\com_recommendfriends\includes\en_GB.php' for
inclusion (include_path='.;D:\Joomla!\xampp\php\pear\') in D:\Joomla!
\xampp\htdocs\fmsdp\components\com_recommendfriends\recommendfriends.php on
line 57


And language file doesnt work. I have this kind of names:
_DM_TITLE

_DM_USER_INSTRUCTIONS_DM_USER_INSTRUCTIONS_CAPTCHA_DM_
USER_INSTRUCTIONS_THANKS

_DM_YOUR_NAME
...
I hope you can help me, because I really like that component.
Thanks!
P.S. I am using Joomla 1.5.3. and component doesnt work local on XAMPP and doesnt work on server online.

Hi darioklc, Welcome to the Forums!

From the look of the errors you posted, there appears to be an issue with the 'include' path to the component itself. I also assume the errors are from your local version of Joomla!

It is the Language file itself that is not getting included, that is why none of the strings are getting translated and you just see _DM_TITLE instead of 'D-Mack RecommendFriends'.

Unfortunately I don't run a local copy of Joomla! so I cannot test it out that way. But here are a few questions for you:

Does the component install properly?

Can you confirm that there is the en-GB.php file in components/com_recommendfriends/includes directory - not in Admin, but the Front End of your local server?

What other components have you installed that are working? (maybe I can look and see what they did...)

I'm afraid that's about all I can suggest right nowSad

You also mentioned these is a problem on a live/remote server. Can you provide some details for that as well? Server type, PHP version, etc. I would also need to know the exact error message(s) you receive from the remote server.

Thanks!

D-Mack
I think I've found problem. As you said it might have something with other components. I've tried to install RecommendFriends on fresh Joomla! and it worked.

Problem is obviously that this component is clashing with some other component.
This is list od other components:
Community Builder
JEvents
Fireboard
JCE
Jom Comment
ninjaXplorer
PhocaGallery
uddeIM
Xmap
I will try to find out which one is to blame for this problem. But even if I find that, I dont know solution of the problem. :-)
If you find the other extension that clashes with the RecommendFriends Component, I might be able to look at it and see where the problem occurs - just let me know what you find!!

Try loading 1 of the other extensions on the fresh Joomla! install and then test RecommendFriends. Then load another extension and re-test RecommendFriends, and so on...

We might be able to narrow it down and find the culprit(s)!!

Thanks for your help!

D-Mack
Finally I've found problem... :-D
After one day work with various components, installing and uninstalling them, problem was with something else. I really have luck that I saw that. :-)

So here is problem. Error is when I have croatian language for front end. When I change to english, problem is solved.

I've made solution to this.
I've made copy of en-BG.php file and named it to hr-HR.php and put it in com_recommendfriends\includes folder.
In recommendfriends.php I've changed line 57:
include_once($includes_path."en-GB.php");
to
include_once($includes_path."hr-HR.php");
And now it works with croatian front end. Only thing I must do now is translate that en-GB.php file to croatian. :-)
Hi darioklc,

Hmmmmm, seems very strange that you would have to do that.

The component has a routine in it that is 'suppose' to default to the en-GB.php file if there is not a matching 'your-LANG.php' in the includes folder. 'your-LANG' is whatever your site language is set to (looks like hr-HR in your case).

If your site IS set to the hr-HR language, you should have just been able to 'copy' the en-GB.php file, save/rename the copy as hr-HR.php and then put it in the component includes directory. You can then edit the complete text of the hr-HR.php file through the online language file editor... You really shouldn't have had to change any of the source code for the component - but glad you got it working anyway!!Wink

Cheers!

P.S. Wanna share a link to your site so we can have a peek?
hmm. Now I have another problem, with known bug
notice

* PHPMAILER_RECIPIENTS_FAILED

I use SMTP server, and it is configured well. Because default Joomla! Contact form works fine. I can receive messages and send them through that component. I dont lnow what could be problem with Recommendfriends component.

Edit: But it worked when I've changed to php mailer.
I'll post link when I translate component and all that.
Hi darioklc,

We've had a couple other users mention the PHPMAILER_RECIPIENTS_FAILED error. I did some checking and found where the problem was.

If you want you can just replace the recommendfriends.php file in the front end /components/com_recommedfriends/ directory with the one I've attached to this post. If that doesn't work for you, give me your email addres via Private Mail and I will send you a zip for the entire component (with the new file in it).

Also for your info I will be releasing the next version of the entire component in the next day or 2 that will have this issue fixed.

ADMIN EDIT
**Attachment Removed**
I have just uploaded a new version (v2.0.1) of the entire component that resolved the issue you mention in your post. Please try to uninstall the old version then re-install the newest version of the component. Let us know if it works!! ...or if you still have issues.
With you version SMTP server works!

Edit:
Just one small bug...
When you check option to send back bcc copy mail to your adress it sends you that bcc copy and it sends also to your friend that bcc copy of that recommendation mail. That way, you friend receive 2 emails.
Can someone confirm that bug?
Hi darioklc,

I've spotted the problem of multiple emails being sent and it is now fixed in the v2.0.1 zip. Please re-downlaod the v2.0.1 and test it out - I believe it should be good to go!

Let me know if that works for you!

Thanks!

P.S. I will actually issue a new version of the component - just to be 100% 'version correct' - but until then, go ahead and re-download the v2.0.1 on the the downloads page.
Reference URL's