RSS
Home Forum v3
Welcome, Guest
Please Login or Register.    Lost Password?

I can´t upload pictures from the frontend
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: I can´t upload pictures from the frontend
#2646
I can´t upload pictures from the frontend 1 Year, 12 Months ago Karma: 0
English:

Hello, My name is Carlos. Congratulations and thanks for this component. Is very easy for management and the better, is non-commercial

I have a problem when I try upload a image from the frontend, but from the backend the images uploads good.

I see the same topic in the forum but, here don´t have a solution.

www.com-property.com/es/forum-v3/17-imag...-using-frontend.html

I change my joomla template for the basic "rhuk_milkyway" but this no solve my trouble.

You can help me to solve this problem?

First, Thank you for your help and again thank´s for this excellent component.

____________________

Español:

Hola, Mi nombre es Carlos. Felicitaciones y gracias por este componente. Es muy fácil de utilizar y mejor, es gratuito

Tengo un problema cuando intento cargar una imagen desde el Frontend. Pero desde la sección administrativa (BackEnd) si funciona correctamente.

Ví este mismo tema en el foro, pero, aquí no tienen una solución.

www.com-property.com/es/forum-v3/17-imag...-using-frontend.html

Cambié mi plantilla de joomla por la más simple de todas "rhuk_milkyway", pero esto no resolvió mi problema.

Ustedes podrian ayudarme a resolver este problema?

En primer lugar, gracias por su ayuda y gracias de nuevo por este excelente componente.

carlosan_1
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/19 22:42 By carlosan_1.
The administrator has disabled public write access.
 
#2721
Re: I can´t upload pictures from the frontend 1 Year, 12 Months ago Karma: 0
HOLA!, PUES MIRA A MI ME PASABA LO MISMO Y FUE POR QUE UN ARCHIVO PHP.INI ESTABA DANDO PROBLEMAS APARTE DE LAS CONFIGURACIONES DE PERMISOS EN LA CARPETA IMAGES A 755

ESPERO QUE PUEDA DARTE ALGUNA LUZ SI ES EL MISMO PROBLEMA.

SALUDOS!.
d3digital
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2723
Re:I can´t upload pictures from the frontend 1 Year, 12 Months ago Karma: 0
Español:

Gracias por tú respuesta d3gigital.

Lamentablemente no tengo acceso a mi archivo php.ini ya que mi servicio de alojamiento es compartido. Por otro lado. no imagino que parámetro podría estár mal desde allí ya que las imagenes que trato de cargar son muy pequeñas como para imaginar un exceso de límites de tamaño.

Por otro lado, verifique los permisos CHMOD de la carpeta de imagenes y ambas tiene permisos 777.

Tienes alguna otra idea?

De nuevo gracias por tú ayuda.

__________________________

English:

Sorry but I don't have permissions for change my php.ini file because my Web hosting is shared with other users.

I checking the permissions CHMOD, but this parameters is ok (777).

Thank you for your help.
carlosan_1
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2724
Re:I can´t upload pictures from the frontend 1 Year, 12 Months ago Karma: 26
I have the same problem, and like you I can not find a solution.
Do you use 'jos_' as prefix to your database?
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2727
Re:I can´t upload pictures from the frontend 1 Year, 12 Months ago Karma: 0
Yes, 'jos_' as prefix to my database.

What is the real problem with this?
carlosan_1
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2728
Re:I can´t upload pictures from the frontend 1 Year, 12 Months ago Karma: 0
esto es lo que tenia en mi PHP.INI

register_globals=Off
safe_mode=Off
allow_url_fopen=Off
allow_url_include=Off
disable_functions=show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
open_basedir=/home/c/public_html:/home/portal-tmp:/home/portal-logs


revisa si en tu root de tu joomla tienes un archivo php.ini normalmente cuando no lo tienes lo puedes poner tu en raiz. pero el codigo que te pongo arriba era el que me hacia que no jalara lo de las fotos..

espero que pueda servirte. saludos!
d3digital
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2750
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
Hello.
Is there someone for whom this function works.
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2751
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
Here is the error message that I have in my 'php_errors.log' when I try to send a photo by fronend.

Code:

[24-May-2010 20:36:28] PHP Notice:  Undefined variable: itemid in C:\wamp\www\fresh\components\com_properties\views\panel\view.html.php on line 333

[24-May-2010 20:36:39] PHP Notice:  Undefined variable: totalImagenes in C:\wamp\www\fresh\components\com_properties\controllers\images.php on line 204

[24-May-2010 20:36:39] PHP Warning:  getimagesize(C:\wamp\www\fresh\images\properties\images\\1\107_1.) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in C:\wamp\www\fresh\components\ com_properties\controllers\images.php on line 339

[24-May-2010 20:36:39] PHP Warning:  Division by zero in C:\wamp\www\fresh\components\com_properties\controllers\images.php on line 345

[24-May-2010 20:36:39] PHP Warning:  Division by zero in C:\wamp\www\fresh\components\com_properties\controllers\images.php on line 346

[24-May-2010 20:36:39] PHP Warning:  getimagesize(C:\wamp\www\fresh\images\properties\images\\1\107_1.) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in C:\wamp\www\fresh\components\ com_properties\controllers\images.php on line 339

[24-May-2010 20:36:39] PHP Warning:  Division by zero in C:\wamp\www\fresh\components\com_properties\controllers\images.php on line 345

[24-May-2010 20:36:39] PHP Warning:  Division by zero in C:\wamp\www\fresh\components\com_properties\controllers\images.php on line 346

[24-May-2010 20:36:40] PHP Notice:  Undefined variable: itemid in C:\wamp\www\fresh\components\com_properties\views\panel\view.html.php on line 333


Note this adress ! \images\properties\images\\1\107_1.) and no extension...
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2756
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
I made a change that works for me. Tell me if it's works also on your sites.
Edit file ' yourSite / components / com_properties / controllers / images.php'

Line 196:
Change:
$destino_imagen = JPATH_SITE.DS.'images'.DS.'properties'.DS.'images'.DS;
with:
$destino_imagen = JPATH_SITE.DS.'images'.DS.'properties'.DS.'images';

Line 202:
change:
$name = $_FILES['files']['name'][$i];
with:
$name = $_FILES['files']['name'];

Line 204:
change:
$totalImagenes++;
with:
// $totalImagenes++;

Line 213:
change:
$thumb= $destino_imagen.'thumbs'.DS.$post['parent'].DS.$nameImage;
with:
$thumb= $destino_imagen.DS.'thumbs'.DS.$post['parent'].DS.$nameImage;
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2758
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
Another change, to have the button 'Subir Fotos' in your language. In the file 'YourSite / components / com_properties / views / panel / tmpl / default_images.php' replace the line 229 '<input class="save" type="submit" name="boton" value="Subir Fotos" />
' with '<input class="save" type="submit" name="boton" value="<?php echo JText::_( 'Upload Images' ); ?>" />
And added, if necessary:
UPLOAD IMAGE = Your translation in your language file.
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2829
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 1
sigouil wrote:
I made a change that works for me. Tell me if it's works also on your sites.
Edit file ' yourSite / components / com_properties / controllers / images.php'

Line 196:
Change:
$destino_imagen = JPATH_SITE.DS.'images'.DS.'properties'.DS.'images'.DS;
with:
$destino_imagen = JPATH_SITE.DS.'images'.DS.'properties'.DS.'images';

Line 202:
change:
$name = $_FILES['files']['name'][$i];
with:
$name = $_FILES['files']['name'];

Line 204:
change:
$totalImagenes++;
with:
// $totalImagenes++;

Line 213:
change:
$thumb= $destino_imagen.'thumbs'.DS.$post['parent'].DS.$nameImage;
with:
$thumb= $destino_imagen.DS.'thumbs'.DS.$post['parent'].DS.$nameImage;


Thanks!! But it don.t work

I trying to change tempates - no results.

Also multi upload work only in admin panel - in frontend need to uploads file by file.

How fix it??
romagromov
Senior Boarder
Posts: 53
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2830
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
Try with this:
File Attachment:
File Name: images.txt
File Size: 11648

Renam it to 'images.php' and copy in dir.
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
Last Edit: 2010/05/30 12:41 By sigouil.
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2832
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 1
Yes Sigouil! Great work. This really fix this problem! BIG THANKS!

See result:



Why developer don't fix it? This is great component, I like it, but so many bugs, hmmm.

But we have another bug - with multiupload pics.

So, what we have in admin panel? Everything ok!
See please:



But in frontend we have problem - only one file by file...

See please:



I trying change standart templates (may be js conflict) - no results...

May be it different templates for upload pics page?

How fix it?
romagromov
Senior Boarder
Posts: 53
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/30 16:46 By romagromov.
The administrator has disabled public write access.
 
#2834
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
This is not a bug. The pages do not call the same script.
But this goes beyond my little competence in php.
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2835
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 1
May be you right.
But if the pages do not call the same script - it's mean script have bug - I think.

So, question: why user can't make multiupload his pics?
Is it normal?
romagromov
Senior Boarder
Posts: 53
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/30 17:25 By romagromov.
The administrator has disabled public write access.
 
#2836
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 1
Is it real developer sometimes fix bugs and answer for questions
romagromov
Senior Boarder
Posts: 53
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2837
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 0
sigouil wrote:
Try with this:
File Attachment:
File Name: images.txt
File Size: 11648

Renam it to 'images.php' and copy in dir.


Thank you very much, i had the same problem!!!!!!
oliver70
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2838
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 1
oliver70 wrote:


Thank you very much, i had the same problem!!!!!!


Are you have same problem with multi upload pics in frontend???
romagromov
Senior Boarder
Posts: 53
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2840
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 26
romagromov wrote:
Is it real developer sometimes fix bugs and answer for questions
yes, but it must be very busy.
I prefer he does not answer all the posts, but it still improves this component.
sigouil
New job => Less time :(
Platinum Boarder
Posts: 411
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthday: 12/31
The administrator has disabled public write access.
Sorry for my English. It is a Google translation.
 
#2842
Re:I can´t upload pictures from the frontend 1 Year, 11 Months ago Karma: 0
romagromov wrote:
oliver70 wrote:


Thank you very much, i had the same problem!!!!!!


Are you have same problem with multi upload pics in frontend???

I don't know if it works, because i havan't multi upload pics button!!!!
oliver70
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123