Forums

I got failed to open stream!

mbnoimi 10 Mar, 2009
I'm not sure exactly if this is a bug, but I can give you links to test them by yourselves.

The error message is:
Warning: file_put_contents(/home/alyarmoo/public_html/components/com_chronocontact/uploads/support-ar/index.html) [function.file-put-contents]: failed to open stream: No such file or directory in /home/alyarmoo/public_html/libraries/joomla/filesystem/file.php on line 29


The following form create the above error message when you try to attach a file to the form:
http://al-yarmook.com/test/index.php?option=com_chronocontact&chronoformname=support-ar

Where the following form is copy from this, but it doesn't any error messsage!
http://al-yarmook.com/test/index.php?option=com_chronocontact&chronoformname=support-en

Could you please tell me why?!
mbnoimi 10 Mar, 2009
I forgot to tell about the installed packages with ChronoForsm

* Apache2 (Version 2.2.11)
* MySQL5 (Version 5.0.67)
* PHP5 (Version 5.2.9)
* Joomla (Version 1.5.8 )
* PHPMyAdmin (Version 2.11.9.4)
* zend optimizer (Version 3.3.3)
* Linux i686 (Kernel version 2.6.18-92.el5)
Max_admin 11 Mar, 2009
Hi mbnoimi,

when does the error happen ? try to change the form name from support-ar to support_ar

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
mbnoimi 11 Mar, 2009

try to change the form name from support-ar to support_ar


It couldn't fix the problem. Any way in the attachment file you'll see the backup of the form, could you plz check it if there something wrong?
Max_admin 12 Mar, 2009
I tested it but it works fine here, try to create a new simple form in Arabic and see if the problem will stay the same ?

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
mbnoimi 19 May, 2009
Sorry for delay.

Actually I catched the problem. It's because of Arabic chars. So I edited all Arabic strings to the English thus the problem solved.

For that I can tell you clearly that there is a problem in chars. encoding (usually I'm using UTF-8 or Windows-1252), so could you please fix it.

Note:
In the following post you can find that somebody suffered from this bug before:
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=13909&p=29856&hilit=arabic#p29856
Max_admin 20 May, 2009
Hi mbnoimi,

Did you create the form using the wizard or you got your HTML ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
mbnoimi 21 May, 2009

Did you create the form using the wizard or you got your HTML ?


I used the wizard
Max_admin 24 May, 2009
Hi mbnoimi,

I will check the problem but one last thing, does the form upload the file when you get this error ? do you get any emails ? try to rename your form from support-ar to support_ar and see if this makes any changes ?

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
mbnoimi 27 May, 2009

does the form upload the file when you get this error ?


No

do you get any emails ?


Yep I received e-mails with names of attachments.

try to rename your form from support-ar to support_ar and see if this makes any changes ?


Nothing changed !
Max_admin 27 May, 2009
Hi mbnoimi,

Ok, do you have enctype set in the form tag attachment field ?

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
mbnoimi 28 May, 2009
What you mean in

enctype set

?
GreyHead 28 May, 2009
Hi mbnoimi,

In teh form General Tab put enctype="mulitpart/form-data" in the Form Tag Attachment box.

Bob
This topic is locked and no more replies can be posted.