PhpMyNewsLetter 2.0

Support et annonces PhpMyNewsLetter.

Vous n'êtes pas identifié(e).

Annonce

Pour me permettre de mieux vous aider au mieux, merci d'être le plus précis possible en donnant :
- la version de phpmynewsletter utilisée
- votre hébergement : personnel, dédié, mutualisé
- votre hébergeur (OVH, free, Infomaniak, 1and1,...)
- votre OS : linux, windows
- version de PHP (5.3, 5.6, 7.0, hhvm...)
Toutes les réponses à mes questions qui sont sans retour de votre part seront considérées comme résolues !

#1 03-04-2020 13:53:15

andrewsdg
Membre

Missing Message Box

Hi, I'm trying v2.05

When I try to create a message using the classical editor, the message box flashes up then disappears, as the page loads.

Anything I should check?

Regards
Don

Hors ligne

#2 03-04-2020 19:29:44

Arnaud
Administrateur

Re : Missing Message Box

Hello and welcome
Please have a look at the relative path in your configuration
JavaScript is not loaded
Tell me more please I will be happy to help you
Arnaud


Je prends le temps de créer un outil pour tous, de niveau professionnel, mais simple !
Il n'est pas encore parfait, soyez indulgents, ça vient...
Si vous avez des questions, n'hésitez pas ! Mais soyez précis pour une réponse plus rapide  wink

Hors ligne

#3 04-04-2020 11:41:03

andrewsdg
Membre

Re : Missing Message Box

Hi Arnaud,
Thanks for your quick response. I have checked the source for the compose page and confirmed all .js links are present. I had to add "I18N_LNG"=>"en_US" to the english.php array to pick up the language file but this made no difference.

The whole structure is exactly as per the download.

Looking at the source in Firefox Developer Tools, I note that the text area is hidden: <textarea name="message" id="redac" rows="20" cols="70" style="visibility: hidden;">

Following the id='redac', I have single stepped through the code from the line containing tinymce.init({ at line 191 in compose.php

When the code breaks at tinymce.init, the textarea is visible. However when I step onto the </script> tag from line 328 in compose.php, it disappears.

I have checked the skin and all the .js seems accessible.

This is happening on localhost and my planned production site.

I appreciate any further guidance, thank you in advance!

Hors ligne

#4 04-04-2020 12:44:38

Arnaud
Administrateur

Re : Missing Message Box

Hello Andrewsdg
No, don't look a t your source page.
Go to Managements > Global configuration > Other settings
There, you have the Base URL, must not have some slahs at end, egg : https://www.phpmynewsletter.com
And you have the Path oh phpMyNewsLetter, egg : my_path/
Look and tell me what you have please.

You're welcome  wink


Je prends le temps de créer un outil pour tous, de niveau professionnel, mais simple !
Il n'est pas encore parfait, soyez indulgents, ça vient...
Si vous avez des questions, n'hésitez pas ! Mais soyez précis pour une réponse plus rapide  wink

Hors ligne

#5 04-04-2020 17:11:19

andrewsdg
Membre

Re : Missing Message Box

Hi Arnaud

I have checked my production site and removed the final /, with no change in behaviour:
1586016491_production.jpg

And my development environment on my local PC:
1586016597_development.jpg

I made no change to development on localhost

Any further guidance?

Regards
Don

Hors ligne

#6 04-04-2020 17:45:16

Arnaud
Administrateur

Re : Missing Message Box

Screenshots are really welcome !
Please, for production, in the path, you should have :

newsletter/

For windows, you should have the same, but rename phpmynewsletter-2.0-master to newsletter.

Last thing : don't download from git, i stopped updates.
If you want to download :
https://www.phpmynewsletter.com/telechargement/


Je prends le temps de créer un outil pour tous, de niveau professionnel, mais simple !
Il n'est pas encore parfait, soyez indulgents, ça vient...
Si vous avez des questions, n'hésitez pas ! Mais soyez précis pour une réponse plus rapide  wink

Hors ligne

#7 05-04-2020 11:27:38

andrewsdg
Membre

Re : Missing Message Box

Hi Arnaud
I have downloaded as you suggested from https://www.phpmynewsletter.com/telechargement/ and re-installed.

When I try to use the Classical editor, I now get this error (on localhost. On the production server the errors are suppressed but I still get no message editing textarea):
1586082345_development1.jpg

My configuration is:
1586082365_development2.jpg

Any ideas?

Regards
Don

Hors ligne

#8 05-04-2020 12:54:15

Arnaud
Administrateur

Re : Missing Message Box

Hello,

As i said before, the "path of phpmynewsletter" must be ;

newsletter/

and not

C:/wamp/www/newsletter/

Be careful, you must not use it from home, no send, and test with windows for a production on linux is not a good idea.
Try a VM instead !


Je prends le temps de créer un outil pour tous, de niveau professionnel, mais simple !
Il n'est pas encore parfait, soyez indulgents, ça vient...
Si vous avez des questions, n'hésitez pas ! Mais soyez précis pour une réponse plus rapide  wink

Hors ligne

#9 05-04-2020 13:58:03

andrewsdg
Membre

Re : Missing Message Box

At this stage all I am trying to do is compose a message, I do not intend to send from a Windows environment. However I cannot get the classical editor to open in any environment.

I have now set my localhost to http://localhost and newsletter/, and I get the same error

On the linux webserver, I have set Base URL as http://www.xyz.co.za, and Path of phpMyNewsletter to newsletter/, and still I get the classical editor box appear for 1 second and then disappear as the page completes loading.

Any further ideas Arnaud?

Regards
Don

Hors ligne

#10 05-04-2020 14:03:49

Arnaud
Administrateur

Re : Missing Message Box

It's a config error, sure !
Have you javascript errors ?
(egg, in chrome, go to console by F12, and tell me if red cross ? If one, so tell me about error)
And please tell me :
php version ?
your browser ? name and version


Je prends le temps de créer un outil pour tous, de niveau professionnel, mais simple !
Il n'est pas encore parfait, soyez indulgents, ça vient...
Si vous avez des questions, n'hésitez pas ! Mais soyez précis pour une réponse plus rapide  wink

Hors ligne

#11 05-04-2020 14:28:12

andrewsdg
Membre

Re : Missing Message Box

php version 7.2.4 localhost and linux

Ah, the errors pointed the way. TinyMCE was looking for en_US.js in the lang folder, but this was not there. So I copied en_GB.js to en_US.js and voila it works!

Thanks you for the guidance...I shall now test further and will surely let you know what happens.

Regards
Don

Hors ligne

#12 05-04-2020 14:33:07

Arnaud
Administrateur

Re : Missing Message Box

andrewsdg a écrit :

php version 7.2.4 localhost and linux

Ah, the errors pointed the way. TinyMCE was looking for en_US.js in the lang folder, but this was not there. So I copied en_GB.js to en_US.js and voila it works!

Thanks you for the guidance...I shall now test further and will surely let you know what happens.

Regards
Don

Nice Job cool


Je prends le temps de créer un outil pour tous, de niveau professionnel, mais simple !
Il n'est pas encore parfait, soyez indulgents, ça vient...
Si vous avez des questions, n'hésitez pas ! Mais soyez précis pour une réponse plus rapide  wink

Hors ligne

Pied de page des forums

Propulsé par FluxBB