Have you a test online of the problem, or it is possible for you to check the browser console, and see what kind of error it report?I have installed 1.0.3 with phpbb 3.3.1 under php 7.3 and have a problem.
I can activate the ext. properly and when loading an ipg photo, I can see the small icon for rotation in the attachement list.
Clicking on the icon opens the black window with the photo.
However there is no reaction when I click at the photo. Nothing happens when I click on save. No way to close that window.
The black window only disappears when I open another topic.
Any idea?
I will send you login data for the testforum in a minute.
Code: Select all
I opened the console in Chrome and got:
[code]Uncaught ReferenceError: Cannot access 'w3Delta' before initialization
at w3rotateByDeg (file.php?mode=rImg&id=24552:10)
at HTMLImageElement.onclick (file.php?mode=rImg&id=24552:113)
file.php?mode=rImg&id=24552:10 Uncaught ReferenceError: Cannot access 'w3Delta' before initialization
at w3rotateByDeg (file.php?mode=rImg&id=24552:10)
at HTMLImageElement.onclick (file.php?mode=rImg&id=24552:113)
w3rotateByDeg @ file.php?mode=rImg&id=24552:10
onclick @ file.php?mode=rImg&id=24552:113
file.php?mode=rImg&id=24552:20 Uncaught ReferenceError: Cannot access 'countW3' before initialization
at w3sendThis (file.php?mode=rImg&id=24552:20)
at HTMLButtonElement.onclick (file.php?mode=rImg&id=24552:114)
w3sendThis @ file.php?mode=rImg&id=24552:20
onclick @ file.php?mode=rImg&id=24552:114
Yes, this has been doneaxe70 wrote: Fri Oct 02, 2020 10:15 pm did you deleted old ext data deactivating it, before to overwrite files, and then re-activate?
Yes, I enabled recompile, tried the extension without success and disabled it again.
/ext/w3all/imageattachrotation/language/en/common.php
'W3IMAGEROTATION_PHPBBCOOKIEDOMAIN' => $config['cookie_domain'],
'W3IMAGEROTATION_PHPBBCOOKIEDOMAIN' => 'fc4.der-räuchermysite.de',
Nice question.I am afraid that many boards have the cookie domain empty. It would be helpful if your extension could handle such cases.
Can your extension check if the cookie domain is empty, and use the domain which was opened by the browser instead?
Your cookie domain really shouldn't be empty, that is a incorrect configuration, and might even cause issues with sessions not being working correctly.HaioPaio wrote: Sun Oct 04, 2020 9:06 am Success!!!
My cookie domain was empty, as suggested by phpbb for cases when an admin is not sure about cookie settings.
Would you agree?In most cases the cookie domain is optional. Leave it blank if you are unsure.
English is my second language. Are you sure the I misinterpret?In most cases the cookie domain is optional. Leave it blank if you are unsure.
this because, when the request is like thisUncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
at posting.php?mode=edit&f=2&p=6:347
(anonymous) @ posting.php?mode=edit&f=2&p=6:347
https://subdomain.localhost/phpbb3/posting.php?mode=edit&f=2&p=6
Code: Select all
// Only if in 'posting, edit or reply mode'
var w3ReqMode = "{{ lang('W3IMAGEROTATION_REQMODE') }}";
if( w3ReqMode == 'edit' || w3ReqMode == 'post' || w3ReqMode == 'reply' ){
Code: Select all
// Only if in 'posting, edit or reply mode' and the user is logged in
var w3ReqMode = "{{ lang('W3IMAGEROTATION_REQMODE') }}";
var w3_u_logged = "{S_USER_LOGGED_IN}";
if( w3_u_logged > 0 && w3ReqMode == 'edit' || w3_u_logged > 0 && w3ReqMode == 'post' || w3_u_logged > 0 && w3ReqMode == 'reply' ){
if( w3_u_logged > 0){
i assume, that it is not possible!? by the way, i will checkphpBB allow to edit posts to a guest? It is possible to setup this way phpBB permissions?
If yes, then this code should be little improved to accomplish, because this way, the whole code run only for logged in users!
Code: Select all
const w3observer = new MutationObserver(w3callback);
w3observer.observe(w3targetNode, w3config);
Code: Select all
if( w3targetNode !== null ){
const w3observer = new MutationObserver(w3callback);
w3observer.observe(w3targetNode, w3config);
}