Delete button doesn't work
-
Thomasinho
Delete button doesn't work
Hi,
i use Phoca Guestbook 3.0.4 with Joomla 3.4.3.
I noticed that the Delete button doesn't work. It happens in the log section and also in the posts section.
I mark the entry and then click on "Delete" but nothing happens.
Greetings
i use Phoca Guestbook 3.0.4 with Joomla 3.4.3.
I noticed that the Delete button doesn't work. It happens in the log section and also in the posts section.
I mark the entry and then click on "Delete" but nothing happens.
Greetings
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Delete button doesn't work
Hi, hmm, testing now and both are working OK for me - deleting posts and deleting items in logging just deletes the items.
Which message you get there? When you click on delete button, do you get any javascript error there? See:
https://www.phoca.cz/documents/16-joomla ... -conflicts
Jan
Which message you get there? When you click on delete button, do you get any javascript error there? See:
https://www.phoca.cz/documents/16-joomla ... -conflicts
Jan
If you find Phoca extensions useful, please support the project
-
Thomasinho
Re: Delete button doesn't work
Ok, i have tested a little bit:
1. FF39 (Firebug):
When i try to delete posts or log entries i get:
2. IE11 (Development tools):
When i open the posts page, i get:
When i open the log entries page, i get:
3. Chrome 44.0.2403.89 m (64-bit) (Development tools):
When i try to delete posts i get:
When i try to delete log entries i get:
So, in all 3 browsers it does not work and seems like a problem with the closing of the div tag of the delete button. Code looks ok (but i'm no pro-coder).
1. FF39 (Firebug):
When i try to delete posts or log entries i get:
Code: Select all
SyntaxError: unterminated string literal
st eine Auswahl in der Liste vornehmen!');}else{if (confirm('\
http://www.teichwirtschaft-koselitz.de/Joomla/administrator/index.php?option=com_phocaguestbook&view=phocaguestbooks
(Row 1, Column 121)
When i open the posts page, i get:
Code: Select all
SCRIPT1015: Not closed string constant
File: index.php, Row: 473, Column: 2Code: Select all
SCRIPT1015: Not closed string constant
File: index.php, Row: 435, Column: 2When i try to delete posts i get:
Code: Select all
index.php?option=com_phocaguestbook&view=phocaguestbooks:470 Uncaught SyntaxError: Unexpected token ILLEGALCode: Select all
index.php?option=com_phocaguestbook&view=phocaguestbooklogs:433 Uncaught SyntaxError: Unexpected token ILLEGAL- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Delete button doesn't work
Hi, unclosed tag should not be a problem, this seems like something renders the javascript error which then breaks all the javascript functions (e.g. for deleting). Only to be 100%, try to switch to English language so we know there is no problem in german language string (the first code you have pasted)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Thomasinho
Re: Delete button doesn't work
The language was the solution!
When switching to english the deletion of posts and log entries works like it should.
I have exported the Transifex files, renamed them correctly and then uploaded them at the correct folders. I think the problem is that the german word for "Delete" is "Löschen" which contains the "ö", a special character. Maybe a problem with the encoding of the language file?
When switching to english the deletion of posts and log entries works like it should.
I have exported the Transifex files, renamed them correctly and then uploaded them at the correct folders. I think the problem is that the german word for "Delete" is "Löschen" which contains the "ö", a special character. Maybe a problem with the encoding of the language file?
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Delete button doesn't work
Hi, yes, when there is a problem with ö, or ü or ä then this seems like wrong encoding, the language file should be encoded with UTF-8 without BOM 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Thomasinho
Re: Delete button doesn't work
But the problem is just with the "Löschen" (Delete). The german word for "Publish" is "Veröffentlichen" and there it works perfect.Jan wrote:Hi, yes, when there is a problem with ö, or ü or ä then this seems like wrong encoding, the language file should be encoded with UTF-8 without BOM
Jan
The downloaded file from transifex is in utf-8 without bom (checked with notepad ++). I just rename the file and upload it and it does not work. I tried Bennos file, copied the content from the downloaded file and it also does not work. But Bennos file is working and he had the same translation for this string.
I'm totally confused.
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Delete button doesn't work
Hi, please let me know the wrong string in INI file (or the line), so I can inform Benno.
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
christine
- Phoca Hero

- Posts: 2938
- Joined: 28 Nov 2010, 17:20
Re: Delete button doesn't work
Hello,
concerning; "UTF-8 without BOM" > https://github.com/joomla/joomla-cms/pull/6584 since: J 3.4.(2)
regards: Christine
concerning; "UTF-8 without BOM" > https://github.com/joomla/joomla-cms/pull/6584 since: J 3.4.(2)
regards: Christine
- Benno
- Phoca Hero

- Posts: 9964
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Delete button doesn't work
@Jan,
I understand Thomasinho this way, that the problem exists only in his translation, not in mine.
please correct me, if I'm wrong.
I am not able to reproduce the problem with my installed German translation.
See images:
1.)

2.)

3.)

@Thomasinho,
1.) Do you receive any errors, if you enable language debugging?
2.) Perhaps the problem is, why ever, not the language but the manifest file.... ??
OT. Hi Christine
Kind regards,
Benno
I understand Thomasinho this way, that the problem exists only in his translation, not in mine.
@Thomasinho,But Bennos file is working and he had the same translation for this string.
please correct me, if I'm wrong.
I am not able to reproduce the problem with my installed German translation.
See images:
1.)

2.)

3.)

@Thomasinho,
1.) Do you receive any errors, if you enable language debugging?
2.) Perhaps the problem is, why ever, not the language but the manifest file.... ??
OT. Hi Christine
Kind regards,
Benno