upload-your-photograph.png not showing

  • Posts: 15
  • Thank you received: 1
9 years 8 months ago #168880

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.24
-- Browser(s) name and version -- : Chrome 36.0.1985.143 m
-- Error-message(debug-mod must be tuned on) -- : Failed to load resource: the server responded with a status of 500 (Internal Server Error) woodencanvas.nwtechworx.com/prints-on-wo...-100/thumbnail_y-100
Uncaught TypeError: undefined is not a function checkout:260
Uncaught ReferenceError: RokBoxSettings is not defined rokbox.js:180
2
Widget configuration is not found. widgets.js:14

<div class="hikashop_image"><a onclick="SqueezeBox.fromElement(this,{parse:'rel'});return false;" href="/prints-on-wood-product-listing/order/download/field_table-order/field_namekey-cGhvdG9ncmFwaA==/name-dXBsb2FkLXlvdXItcGhvdG9ncmFwaC5wbmc=" rel="{handler:'image'}" target="_blank"><img src="/prints-on-wood-product-listing/order/download/field_table-order/field_namekey-cGhvdG9ncmFwaA==/name-dXBsb2FkLXlvdXItcGhvdG9ncmFwaC5wbmc=/thumbnail_x-100/thumbnail_y-100" alt="upload-your-photograph.png"></a><input type="hidden" name="data[order][photograph][name]" value="upload-your-photograph.png"><input type="hidden" name="data[order][photograph][sec]" value="7438ec513b328c65d11c1e4074f4e4ef"></div>

the url for the script and image seam wrong to me. the pre-upload image doesn't show.. the image doesn't show in this box after the image is uploaded.

Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #168882

Hi,

Please check your PHP error log.
If you have a 500 page, it means that their is a PHP fatal error.

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: 15
  • Thank you received: 1
9 years 7 months ago #168901

the error is == from this url in the mentioned code...

woodencanvas.nwtechworx.com/prints-on-wo...-100/thumbnail_y-100

that is a bad URL... I'm not sure where the code is that generates it..If you could tell me where to look, that would be helpful.

not seeing anything in my log file about it. hosted on GoDaddy... if that is relevant.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #168948

Hi,

The URL is right encode in HikaShop.
If I call the url : woodencanvas.nwtechworx.com/prints-on-wo...-100/thumbnail_y-100

I got a page which tell me

YOU HAVE AN ERROR IN YOUR SQL SYNTAX; CHECK THE MANUAL THAT CORRESPONDS TO YOUR MYSQL SERVER VERSION FOR THE RIGHT SYNTAX TO USE NEAR 'AND PHOTOGRAPH = 'UPLOAD-YOUR-PHOTOGRAPH.PNG'' AT LINE 1 SQL=SELECT ORDER_ID FROM WOOD_HIKASHOP_ORDER WHERE ORDER_USER_ID= AND PHOTOGRAPH = 'UPLOAD-YOUR-PHOTOGRAPH.PNG'

Which is partially logicial because I'm not logged in your website.

So the best is to modify the file "administrator/components/com_hikashop/classes/file.php" and replace
$this->database->setQuery('SELECT order_id FROM '.hikashop_table('order').' WHERE order_user_id='.hikashop_loadUser().' AND '.$field_namekey.' = '.$this->database->Quote($name));
By
$this->database->setQuery('SELECT order_id FROM '.hikashop_table('order').' WHERE order_user_id='.(int)hikashop_loadUser().' AND '.$field_namekey.' = '.$this->database->Quote($name));
It order to force the value of hikashop_loadUser and display a 0 if not logged.

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: 15
  • Thank you received: 1
9 years 7 months ago #169120

Ok... so I did that. but in the website it didn't cause any change.

I don't expect the users to be logged in at this point, as that is step 2 of the check out process, and this page is step one.

I did notice an error in javascript -- related tot his area of the page...

(function($){
$('#modal-photograph_uploadpopup').modal({"backdrop": true,"keyboard": true,"show": true,"remote": ""});
/*UnCaught TypeError : undefined is not a function */
})(jQuery);


Also which I click on the box that the image isn't loading it -- I get this error in my console.

Widget configuration is not found. widgets.js:14
Resource interpreted as Image but transferred with MIME type text/html: " woodencanvas.nwtechworx.com/hikashop-men...cGhvdG9ncmFwaC5wbmc= ".

My feeling is this error is occuring because the image it is trying to act on is not loading.

Does the hikashop router interpret '/prints-on-wood-product-listing/' as something? because there isn't a directory like that anywhere in my site.

I expect that the image that should be shown there is the default image I loaded when I setup the custom field.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #169151

Hi,

Your javascript problem and the loading of the order custom field are two different subjects.
The loading is for me more critical than the javascript one (it is just a popup).

About the "widget.js", it's not related to HikaShop.

For the loading (the important part), if I open the link, I got a blank page without content. So it does not provide me a lot of information which will help us to understand what happens.
So, the best will be to have some access to your website, including a FTP account in order to add some debug traces in the "custom field download" section.
Normally, the mime type is right set when the file exists, one reason which could result a blank page is that the file is not more present in your folder.
But it can be other problems, so having the possibility to activate the Joomla debug mode (in the Joomla backend configuration) and adding some traces will help us to help you.

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: 15
  • Thank you received: 1
9 years 7 months ago #169400

Ultimately, I want to replace that AJAX code with a script to do more then just upload... I want to allow the user to crop the image, and be able to verify that the image meets size parameters based on the product they selected. What would be the best place to do this? as a plugin?

I think the custom field loading issue is significant -- I'd be happy to give you credentials... how can I send them to you securely?

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

  • Posts: 15
  • Thank you received: 1
9 years 7 months ago #169415

If I click the Next Button, to go to step 2 of the chick out process, then click the breadcrumb link back to step one - the default image shows.
Here is the code produced.

<div class="hikashop_image">
<a onclick="SqueezeBox.fromElement(this,{parse:'rel'});return false;" href="/hikashop-menu-for-hikashop-registration/order/download/field_table-order/field_namekey-cGhvdG9ncmFwaA==/name-dXBsb2FkLXlvdXItcGhvdG9ncmFwaC5wbmc=" rel="{handler:'image'}" target="_blank">
<img src="/hikashop-menu-for-hikashop-registration/order/download/field_table-order/field_namekey-cGhvdG9ncmFwaA==/name-dXBsb2FkLXlvdXItcGhvdG9ncmFwaC5wbmc=/thumbnail_x-100/thumbnail_y-100" alt="upload-your-photograph.png">
</a>
<input type="hidden" name="data[order][photograph][name]" value="upload-your-photograph.png">
<input type="hidden" name="data[order][photograph][sec]" value="7438ec513b328c65d11c1e4074f4e4ef">
</div>

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #169459

Hi,

how can I send them to you securely?

Using private message.

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: 4
  • Thank you received: 0
9 years 7 months ago #169710

I have the same problem on oploading at jpg file.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #169712

Hi,

Please help us to help you : provide some information :)

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: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #169870

Hi,

@techworx
Thanks for the accesses.
I was able to fix the problem in your website. I will continue to improve the modifications for the integration in the next release.

For other users with the same kind of problem :
You can add the patch by editing the file "components/com_hikashop/controllers/order.php" and replace

		if($field_table == 'item') {
			$app = JFactory::getApplication();
			$itemsData = $app->getUserState(HIKASHOP_COMPONENT.'.items_fields');
			if(empty($itemsData)) $itemsData = array();
			$newItem = new stdClass();
			$newItem->$field_namekey = $ret->name;
			$itemsData[] = $newItem;
			$app->setUserState(HIKASHOP_COMPONENT.'.items_fields', $itemsData);
		}
By
		if($field_table == 'item') {
			$app = JFactory::getApplication();
			$itemsData = $app->getUserState(HIKASHOP_COMPONENT.'.items_fields');
			if(empty($itemsData)) $itemsData = array();
			$newItem = new stdClass();
			$newItem->$field_namekey = $ret->name;
			$itemsData[] = $newItem;
			$app->setUserState(HIKASHOP_COMPONENT.'.items_fields', $itemsData);
		}

		if($field_table == 'order') {
			$app = JFactory::getApplication();
			$orderData = $app->getUserState(HIKASHOP_COMPONENT.'.checkout_fields');
			if(empty($orderData)) $orderData = new stdClass();
			$orderData->$field_namekey = $ret->name;
			$app->setUserState(HIKASHOP_COMPONENT.'.checkout_fields', $orderData);
		}

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.
Last edit: 9 years 7 months ago by Jerome.

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

  • Posts: 4
  • Thank you received: 0
9 years 7 months ago #169886

I have set in the code on the page www.mitkreativehjem.dk . But the problem is still there. If you under menu the "Duge" on the left side uploader at jpg fil you can't use the fil you can download in the order.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
9 years 7 months ago #169936

The code fix that Jerome did for techworx is for custom order fields, and you are using custom item fields, so your problem has nothing to do with the thread that we're handling from the beginning of this thread, so of course, changing the code like Jerome explained won't make a difference for you.
I'm able to download the file I upload on that page when I'm in the checkout so I don't see any problem. As Jerome said, we need more information to help you.

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

  • Posts: 4
  • Thank you received: 0
9 years 7 months ago #169957

What information is relevant to you - what can I sent?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #169962

Hi,

As your problem seems to be different, thanks to create a new topic with your problem in details.

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

  • Posts: 15
  • Thank you received: 1
9 years 6 months ago #173817

OK -- so the other day -- there was an update to Hikashop -- I applied it -- thinking that you had rolled the fix to the uploader into the code... and apparently you haven't.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 6 months ago #173839

Hi,

Sure, the HikaShop 2.3.3 release is just the HikaShop 2.3.2 package with the security and the Joomla 3.3.4 patches.
There is nothing else in this release as you can see in the changelog.
www.hikashop.com/support/support/documen...ashop-changelog.html

So the patch I wrote is not include in the 2.3.3 package but it will be for the next one ; where we will have time to test and validate the all modifications before creating a new version :)

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.

Time to create page: 0.120 seconds
Powered by Kunena Forum