Support et annonces PhpMyNewsLetter.
Vous n'êtes pas identifié(e).
Pages :: 1
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
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
Hors ligne
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
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
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
Hors ligne
Hi Arnaud
I have checked my production site and removed the final /, with no change in behaviour:
And my development environment on my local PC:
I made no change to development on localhost
Any further guidance?
Regards
Don
Hors ligne
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
Hors ligne
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):
My configuration is:
Any ideas?
Regards
Don
Hors ligne
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
Hors ligne
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
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
Hors ligne
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
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
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
Hors ligne
Pages :: 1