Jump to content

(SOLVED) basic changes in the code of html or php in prestashop


Recommended Posts

my site got hacked a week ago and I complained to the hosting company who managed to resolve the issue by scanning the whole site.

 

Now the site is functional again but it has come up with some HTML errors on the page. I have located that on the front page the error is coming because the 150 for the width attribute is not surrounded by quotes and similarly there is an error when you try to do a checkout.

 

I need your help how can i change these code errors they are just basic errors. I need your help please as i am about to start the marketing of my website.

 

I will appreciate your help in this matter.

Edited by amkashif (see edit history)
Link to comment
Share on other sites

Hi amkashif,

In order to provide you with help, we will need information on the specific errors on your site.

 

-Mike

 

Mike please help me I need your help.

Thank for the quick reply. Here is the link to my site www.snkfurniture.co.uk you will find the errors on the first page and on the checkout page. The errors are coming on Google Chrome.

Thanks for your help.

Link to comment
Share on other sites

Hi amkashif,

This is likely pretty easy to fix as it is simply a missing punctuation mark in the code, but there's no way of identifying to which file that error message refers without more information. In your config/config.inc.php, can you please set "display_errors" to "on" and then reload the page and let me know what specific error message(s) you receive?

 

-Mike

Link to comment
Share on other sites

Hi amkashif,

This is likely pretty easy to fix as it is simply a missing punctuation mark in the code, but there's no way of identifying to which file that error message refers without more information. In your config/config.inc.php, can you please set "display_errors" to "on" and then reload the page and let me know what specific error message(s) you receive?

 

-Mike

 

Thanks Mike, I have changed the "display_errors" to "on" and reloaded the page the home page is still giving the same error

 

This page contains the following errors:

error on line 609 at column 26: AttValue: " or ' expected

Below is a rendering of the page up to the first error.

 

 

and the checkout order page is giving this error

 

 

This page contains the following errors:

error on line 537 at column 27: Comment not terminated <!-- <td class="cart_ref">

Below is a rendering of the page up to the first error.

 

 

Thanks for helping me out i will wait for your reply

 

A M Kashif

Link to comment
Share on other sites

FYI on Mozilla it gives an error aswell:

<div style="text-align:center;"><img src="http://www.prestashop.com/images/logo_partners/logo-skrill.png" width=150 /></div>

----------------------------------------------------------------------------------------------------------------^

 

This is your <!-- /MODULE Banner Mannager right -->

 

Try deleting this module via your FTP program and check if your website continue to have problems..

Let me know if it works!

Link to comment
Share on other sites

FYI on Mozilla it gives an error aswell:

<div style="text-align:center;"><img src="http://www.prestashop.com/images/logo_partners/logo-skrill.png" width=150 /></div>

----------------------------------------------------------------------------------------------------------------^

 

This is your <!-- /MODULE Banner Mannager right -->

 

Try deleting this module via your FTP program and check if your website continue to have problems..

Let me know if it works!

 

Thanks for your help. I tried to disable the skrill logo and now the error has gone from the homepage but there is still an error on the checkout page http://www.snkfurniture.co.uk/order

 

error on line 519 at column 27: Comment not terminated <!-- <td class="cart_ref">

 

How will this error go. is there any way we could change modify the code so that this error could be solved.

 

 

 

Best Regards

 

Kashif

Link to comment
Share on other sites

Delete these lines and tell me what happened after:

<!-- <td class="cart_ref">--</td>
<td class="cart_availability">
 <img src="http://www.snkfurniture.co.uk/themes/prestashop_new/img/icon/available.gif" alt="Available" width="14" height="14" />
  </td> -->

 

<!-- blabla --> (This way you can comment out text but it seems it does not work on your host/server..

Let me know if it worked out!

Link to comment
Share on other sites

Delete these lines and tell me what happened after:

<!-- <td class="cart_ref">--</td>
<td class="cart_availability">
 <img src="http://www.snkfurniture.co.uk/themes/prestashop_new/img/icon/available.gif" alt="Available" width="14" height="14" />
  </td> -->

 

<!-- blabla --> (This way you can comment out text but it seems it does not work on your host/server..

Let me know if it worked out!

 

 

Thanks once again. I can see these lines by going to view source in the browser but I can not locate on which file is this code. The order.php file has just the standard Prestashop text.

 

Thanks for helping me out.

 

A M Kashif

 

 

Link to comment
Share on other sites

There are probably two options you can take a look into.

 

1. themes/prestashop new/modules/order (Take a look into this module and check the php and tpl files)

 

2. themes/prestashop new/ (Open all your order files and see if you can find it in here)

 

If you can't find out just plant the codes in here, so we can take a closer look, don't forget to mention the file you copied the code out..

 

Cheers helldog!

Link to comment
Share on other sites

There are probably two options you can take a look into.

 

1. themes/prestashop new/modules/order (Take a look into this module and check the php and tpl files)

 

2. themes/prestashop new/ (Open all your order files and see if you can find it in here)

 

If you can't find out just plant the codes in here, so we can take a closer look, don't forget to mention the file you copied the code out..

 

Cheers helldog!

 

Thanks for your help I looked into all the files but could not find the error code which was coming. letter on I went through all the modules one by one and found that there were two cart modules installed

 

1. Cart block

v1.2 by

PrestaShop

2. [Prestashop New Theme] Cart block

v1.2 by

PrestaShop

 

i deleted the first one cart block v1.2 now when i wan to add a product to the cart it give me popup error saying that it can not add a the item. I think it the problem is in the cart module somewhere.

 

no I only have one cart module installed and that is the [prestashop new theme] cart block v1.2

 

Sorry to give you this trouble but i am very greatful that you are helping me

 

 

Kashif

Link to comment
Share on other sites

I think I found the problem, it is probably not the cart but one of the .xml files.

It gives me an error called XML-parsefout which means somewhere it is using < > or []

I think it is using the <> somewhere in the .xml file, you might want to take a look into this or send the .xml file to the forum so we can take a closer look into it.

 

If you want to do it yourself make a unicode for it, you can find the unicodes in here

Unicode must always start with a & and then the digitis!

 

Cheers helldog!

Link to comment
Share on other sites

I think I found the problem, it is probably not the cart but one of the .xml files.

It gives me an error called XML-parsefout which means somewhere it is using < > or []

I think it is using the <> somewhere in the .xml file, you might want to take a look into this or send the .xml file to the forum so we can take a closer look into it.

 

If you want to do it yourself make a unicode for it, you can find the unicodes in here

Unicode must always start with a & and then the digitis!

 

Cheers helldog!

 

Dear Helldog

 

Where will i find .xml file there is one on the root folder which is a sitemap.xml and there is one in /themes/prestashop new/config.xml which one should I send on the forum.

 

Thanks

Kashif

Link to comment
Share on other sites

I (THINK) it is the config.xml file, just send that one.

 

If I can't find it in there you can always send an other one.

No problem at all ;)

 

Cheers Helldog

 

Dear Helldog

 

I was trying to find how to upload the file to the forum but could not find therefore i have just pasted the text of the file.

 

1. Config.xml

 

 

<?xml version="1.0" encoding="UTF-8"?>

-<theme> -<version value="1.4"> <ccc available="true"/> <guest_checkout available="true"/> <one_page_checkout available="true"/> <store_locator available="true"/> </version> </theme>

 

 

Please let me know how to upload the file so that i could even send you the other file that has is a quite big file in code.

 

Best Regards

 

Kashif

Link to comment
Share on other sites

You can always send the .tpl files to me via [email protected]

 

cheers Helldog

 

Dear Helldog

 

 

 

Waooooo....................... You are a Super Hero.The cart is working fine but it is just that when we click on add to cart it gives a technical error message and when you go to the checkout next step without logging in it gives this error

 

 

error on line 446 at column 5: Opening and ending tag mismatch: input line 0 and p

I am very greatful to you.

If this could be sorted our too please..

Thanks Kashif.

Link to comment
Share on other sites

Dear Helldog

 

 

 

Waooooo....................... You are a Super Hero.The cart is working fine but it is just that when we click on add to cart it gives a technical error message and when you go to the checkout next step without logging in it gives this error

 

 

error on line 446 at column 5: Opening and ending tag mismatch: input line 0 and p

 

I am very greatful to you.

 

If this could be sorted our too please..

 

Thanks Kashif.

 

You remember i told you there were two cart blocks i the modules section and i deleted one do you think it might be because of that.

 

Kashif.

Link to comment
Share on other sites

I have disabled the [Prestashop New Theme] Cart block

v1.2 by

PrestaShop

now the error which used to come when we press the add to cart has gone but is it ok to disable it or there is another option to make the error disappear :)

Link to comment
Share on other sites

If you could send me the site where this error appears I can take a closer look, it is probably that you have a <div> tag somewhere inside a <p> tag

 

It seems you can't have div's in paragraphs ;)

 

Chears, and I am glad you think my help was usefull ;)

Link to comment
Share on other sites

If you could send me the site where this error appears I can take a closer look, it is probably that you have a <div> tag somewhere inside a <p> tag It seems you can't have div's in paragraphs ;)

 

Chears, and I am glad you think my help was usefull ;)

 

 

Your help was was great favour to me.

 

When you add an item in the cart and then proceed to the checkout process you will find the error just when you click the next button.

 

Thanks for your help

Link to comment
Share on other sites

×
×
  • Create New...