27 Posts
zrinyi
9 years ago
Topic

Dear Sebloders, 

I'm asking you for some help. (Please consider that I'm not a web developer, therefore my technical knowledge is limited.) 

I prepared a site using Joomla + Seblod, but now I have some issue with file uploading through Joomla. 

It must highlight, that probably it is not a Seblod and/or Joomla issue, but hosting provider setup issue. 

When I try to upload file through backend/frontend form, the "Invalid file" error message coming back (and it is not upload the file). The result is the same when I try to use Joomal Media Manager. 

Due to some hosting reason, I must enabled Joomla FTP to upload anything to the site through Joomla (without this setup, I can't upload anything to the database). 

When I checked the directory permissions in Joomla, all is unwritable, but the directories has 755 permissions. 

I checked the following php.ini settings, but based on my knowledge, it is ok. 

file_uploads= (local: on; master: off) 

max_file_uploads= (local: 20; master: 20) 

max_file_uploads= (local: 32M; master: 32M) 

Now, I don't know what should I ask from my hosting provider to change, to make my site 100% usable. 

Please help me if you can. 

Thank you in advance! 

István

Get a Book for SEBLOD
572 Posts
_jrmo
9 years ago
0
Level 1

Hi Istvan,

It *could* be that your file upload field itself has a 5MB restriction on it. If you go in to your field settings, what is the maximum allowed file size by the field?

If that is sufficiently big, I'd say it has something to do with your hosting setup. The fact that you can't upload anything without FTP enabled is concerning... So I'd say try to find a better host who supports Joomla a bit better.

_jrmo

251 Posts
Viktor Iwan
9 years ago
0
Level 1

i once had similiar case, when to hoster company is not allowed their user to upload a file. Try to create a new file and try to upload without seblod/joomla if you still have the issue than the issue happens in The Server

27 Posts
zrinyi
9 years ago
0
Level 1

Dear James, Viktor,

thank you very much for your idea! You are very helpfull!!

I tried to upload files through Joomla Media manager also, but it was failed.

Viktor: If I connect to the file folder via FTP (using FTP client), I can upload anything to everywhere. I am sure, the problem is that this host is not a Joomla friendly one.

James: All of my upload fileds has 5MB restriction.

The following functions are disabled in their php.ini file (maybe the root cause): exec, passthru, shell_exec, system, proc_open, popen, curl_multi_exec, show_source, virtual, http_connect, ftp_connect, connect, socket_*,set_time_limit, diskfreespace, disk_free_space, disk_total_space, phpcredits, ini_alter, ini_get_all, posix_getpwuid, posix_getegid, php_uname

Do you have any proposal which one can cause similar problem?

Thank you for your support!

István

251 Posts
Viktor Iwan
9 years ago
1
Level 1

Hi.. its not the FTP but sometime the file permission issue, in linux files system we usually deal with chmod, but there is chown and that can cause a problem sometime. I'm not linux expert, but try to do this script on a single php file and see if 'file.txt' can be created:

<?php
file_put_contents("test.txt","Hello World. Testing!");
?>

27 Posts
zrinyi
9 years ago
0
Level 2

Hi Viktor,

thank you for your help!

I tried what you proposed, and I received the following error message:

Warning: file_put_contents(test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /xxx.php on line xx

Do you have any idea what should I ask from this hosting provider?

Thank you in advance!

István

251 Posts
Viktor Iwan
9 years ago
2
Level 1

Ok, it's not seblod and even joomla's problem...

My suggestion is for you to submit the url for test.php to your support. Let them know that its only single line of code, and ask them to solved it.

Please also give me update on how they solve the problem. On my case, i move to other host, since this problem is not solved within 2 weeks.. (their tier 1-3 unable to handle this, they even recompile their php... so i'm not sure what cause this problem).

Hope someone who proficient with linux, can give insight as well...

27 Posts
zrinyi
9 years ago
1
Level 2

Hi!

Thank you Viktor! I contacted them today morning. When I receive the solution, I will give you an update.

Thank you for the tip!

István

27 Posts
zrinyi
9 years ago
0
Level 3

Hi Viktor,

the hosting provider proposed to add 775 permission to the folders instead of 755. They said that there is no security issue.

They explained that the files owner is not me on the host, but the server. Unfortunatelly I am not an expert, therefore I accepted their solution and now my problem is solved.

Thank you for your help!

István

9 years ago
0
Level 1

Hi,

Yes, it's a hosting issue.

Your hosting company is not able to configure correctly the permission between the root user (server owner) of your hosting and the FTP user. No problem about the FTP user, it's the easy part. But for the root user which is used by default on PHP scripts (Joomla/SEBLOD) is a little more complex.

That's why there is the FTP layer on Joomla.

We met this issue a ton of times. My conclusion is to say if a hosting company is not able to configure this correctly it's a very poor service and maybe they need to change of job! Let them some days like Vik said and after that do your own conclusion.

Thanks.

Get a Book for SEBLOD