• Closed by: Alex
  • Closed on: 30.12.15, 13:21
  • Reason: Closed
  • Comment: Glad to help!

Ticket #8898 - errors in pk_themesettings.php

Hello,

I have changed the link of the cookies disclaimer by changing the id of this Context::getContext()→link→getCMSLink(11) in the file /modules/pk_themesettings/pk_themesettings.php however as you discribed in ticket 7672

I did this using notepad, I have saved the file and overwritten the file in the servers, but now when I open prestashop I get an error (see image attached) and I cannot edit any more the themesetting module anymore.
Could you please help me to fix the file?

Comments

Kate Support 27 Nov 2015, 15:14

Hi, I cannot connect to your FTP to check the issue. Please update the access info in your profile.
Also I see some Db Prestashop error in your FO http://clip2net.com/s/3qWnSvY
Do you know what can cause it? When did this error appear?

matteo cirio 27 Nov 2015, 16:00

Sorry I had to change the passwords of the ftp and I have forgotten to update the deatails in my account. Now I have updated them. Could you please have a look at the file?

MRegarding the DB error you have noticed I am a bit concerned, and I have noticed another error when I turn on the debug mode (see image attached). I hope I am not been hacked. May be it’s just that file who is causing all these errors but if it is not, I need some help to understand what is causing them and how to fix them. Could you please help me to understand what’s going on? If you don’t think this is in the scope of the theme support may be we can do it as a custom activity. Let me know.
Regards
M

Kate Support 27 Nov 2015, 16:21

I will try to check the second error as well.
But the FTP access still doesn’t work. Seems like password is not correct.

matteo cirio 27 Nov 2015, 17:41

thanks. I have updated again the ftp details now they are exact, I have tested them.

Kate Support 27 Nov 2015, 21:22

Still cannot connect http://c2n.me/3qXs52E
Please check if you have some country restrictions on your server

matteo cirio 28 Nov 2015, 14:46

Hello,

I am sorry I had changed the username in the helpdesk backend but probably I didn’t save so it was not the right username. In any case now I have updated all my data and I have done test doing copy paste of the details in the promokit back end and it worked. So I am quite confident you have the right details now. Could you please check again?
Regards
Matteo

Kate Support 30 Nov 2015, 11:07

Hi,
I have restored the original pk_themesettings.php file and changed getCMSLink(11) into getCMSLink(2)
Everything is working fine. There’re no errors in the BO :)

Regards!

matteo cirio 30 Nov 2015, 12:27

Thanks a lot.
you can close the ticket

Kate Support 30 Nov 2015, 12:32

You’re welcome! Best regards!

matteo cirio 30 Dec 2015, 09:40

Hello,

I am writing because the main issue highlighted in the ticket (the db error) has been solved, but the link to the privacy policy page still doesn’t work.
Basically the ticket was opened to support me with the change of the link to privacy policy in the cookies disclaimer.
Since last time I have tried to do this, I have created a major issue and the db error I was wondering if you could do this change for me?
I would need the link of the cookies disclaimer to point to this page: https://www.finebarrel.com/en/content/privacy-policy for the english version (and for the other languages to the related language pivacy page)
Please let me know if you can do this small change for me.

Alex 30 Dec 2015, 11:45

Hi.
the change of the link to privacy policy in the cookies disclaimer. The link in cookies directs to CMS page. You can change the ID of CMS page in the file /modules/pk_themesettings/pk_themesettings.php
find the line:

Context::getContext()->link->getCMSLink(11) 

and change 11 to ID of your page

matteo cirio 30 Dec 2015, 11:58

Thanks yes that’s what I did last time, but as you can see from the previous discussion on this ticket, this created a major problem and I have been unavailable to update the site for 3 days. I supect I was not using the right software to open the php file and save it. Since my software equipment hasn’t changed, I was wondering if you could change that for me. The ID of the page I would like to link is “2” please let me know

Alex 30 Dec 2015, 12:42

Made a correction and everything is ok http://c2n.me/3spx6yx

Best wishes

matteo cirio 30 Dec 2015, 13:17

thanks. you can close the ticket and wish you a happy new year :-)

Alex 30 Dec 2015, 13:20

Happy New year as well our dear customer :-)