Error trying to add a File with Path

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225071

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.7
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Google Chrome 47.0.2526.106 m
-- Error-message(debug-mod must be tuned on) -- : Error trying to add a File with Path

Hi guys. I have a problem in my HikaShop website.

I can't add a file in the product. When I click '+' button > Set file mode > Set file mode.

I write the file path, the file name and click the OK nothing happens. Is like I'm clicking in the X (close) button.

I have set Joomla Error seting to Maximun and the Debug System is ON.

I never used before de Debug System but the only thing I see in red warning is:

removing joomla debug content for SQL

HELP PLEASE!

Last edit: 9 years 8 months ago by Jerome. Reason: removing SQL debug content

Please Log in or Create an account to join the conversation.

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
9 years 8 months ago #225102

Hi,

If you open the console error log of your web browser when you do that, do you get any error ? what error exactly ?
If you upload the image instead, or drag'n'ndrop it, does it work ?

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225105

Hello Nicolas.

The Google Chrome Developers Tools does not give any error in the Console.

For images, if you upload whatever file it works fine. The problem is when you select 'Set file mode' > Specify Location. You click OK and does nothing.

I need that feature because my files are located in other servers.

If you wish, I can send you user login by PM.

Thank you in advance for your help.

Please Log in or Create an account to join the conversation.

  • Posts: 84306
  • Thank you received: 13701
  • MODERATOR
9 years 8 months ago #225116

Hi,

What did you enter in the path for example ?
Could it be that the image is too big ?
Or that your server doesn't have the access to connect with external servers (some hosting companies bock that) ?

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225118

I thought the same because my files are hosted in Google Drive, so the url does not have an extension but I tried as a test to add the logo png of the website itself and the problem continues. When uploading the file, works fine. Adding path, no.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225144

I sent you a PM with the login access. Let me know what you can see there.

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 8 months ago #225129

Hi,

What did you enter in the path for example ?
Could it be that the image is too big ?
Or that your server doesn't have the access to connect with external servers (some hosting companies bock that) ?

Please reply to our questions.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225174

Hi Jerome,
I told you. A google Drive Path, they do not have an extension. I don't want to share my private files over here, if there is a way to send you private information here in the forum, let me know please.
For that reason I also told you that I'm using AS A TEST the the logo hosted in my website. The logo is a PNG file of 4,41 KB
My server is not blocking that because the logo is in the same server.

All the best,

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 8 months ago #225178

Hi,

The field "path" is there to allow you to put a "file path".
A "file path" is a path to a file which is already in your server ; it is a local file.
So a "file path" is really different than an URL ; which is an outside resource.

HikaShop can support URL but it use simple PHP function to retrieve the content behind an URL.
When you use an URL for Google Drive, you have to be sure that you won't have any redirection, or authentication process.
Like I just wrote, HikaShop uses simple PHP function to get the content ; it won't handle complex system or multiple redirections.

But if you give him simple and direct URL, like :

http://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/vacation.jpg
It should work fine even if it is not in the same server (except if your web hosting does not allow the external download).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225206

Hi Jerome, I've got your point. But as I said, I'm using simple URL just as

http://www.hikashop.com/images/logo_hikashop.png

but in my server, internal or external, the 'file path' function does not work in any way.

As I suggested to nicolas, can I give you an user to access to my website in order to see what is wrong?

Thank you

Last edit: 9 years 8 months ago by fernando.alh.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225210

Hi Guys!

I apologize, I've make a mistake.

Reviewing Jerome's message and making respective tests, I've find out that the 'File path' works. As you said Jerome:

Will not work If I add:

http://www.hikashop.com/images/logo_hikashop.png

But if I add this instead, works fine:
images/logo_hikashop.png


What I really need is to add that Google Drive path.

Look what I found out:

If to create a file with images/logo_hikashop.png path, to click OK, it creates successfully the file, so then, I open that file and modify the URL to Google's, it works fine.

What should I do or what should I change to create the file with Google Drive's path at first? Not to make double work.

Thank you for your patience and your kind help.

Regards,

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 0
  • Hikaserial Standard
9 years 8 months ago #225308

Sorry, any suggestions?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
9 years 7 months ago #227179

Hello and sorry for the late reply,

What should I do or what should I change to create the file with Google Drive's path at first? Not to make double work.

It's as Jérome said, HikaShop uses simple PHP function to get the content ; it won't handle complex system or multiple redirections. So in your case, if you really want to put a Google Drive's path at first, the solution will be to directly develop that option which will require development skills.

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum