7 – D7 full site loss of style and not save configurations

I recreated a D7 site in EC2 for a client. After importing the database, everything seemed fine until I updated it and all the style had disappeared. I thought it was because I clicked on the HTML purifier configuration Clear cache button (I have never used that module).

After hours of searching on Google and not getting anywhere, I re-imported the database and the site returned to normal.

A few hours later the same loss of style occurred. I read a post from a very old thread that advised to disarm the css and js added buttons. When I did and saved the form, the two checkboxes remained unchanged i: e my configuration was not done. Therefore, I used drush vset preprocess_css 0 and a similar command for js and the changed settings.

However, there are no changes to the css topic. Still only html and without style.

I checked the CSS css tab and found a lot of css files with 200 state. In the network tab, all js files have status 200 except one that is blocked as shown below:
enter the description of the image here

Could this cause the loss of style?

After the previous two steps, my D7 site still has no style.

I have run out of ideas. Please help.

7 – managed_file – get ajax_submit from the Load / Remove button

I have a file form field administered.
Is there any way to add more functionality to the Load / Delete buttons in that field, how to modify the ajax_submit of these buttons?
For example, if you press the Delete button -> also do drupal_set_message (& # 39; File removed. & # 39;).

I just found ways to remove or hide the buttons completely.

7 – Permit reconstruction fails

After installing a test module on my Drupal 7 site, he asked me to rebuild the permissions. when I try to reconstruct it, it throws this error:

enter the description of the image here

I have tried everything I found online, including:

  • increased RAM of the web server
  • max_execution_time = 1600
  • max_input_time = 180
  • max_input_nesting_level = 300
  • memory_limit = 512M
  • disabling batch mode from the main node.module file

nothing seems to work

There are about 600k records in the node table. I know this is a lot, and probably causes my problem, but what is the solution? How can I reconstruct permits with so many nodes easily?

networks – CentOS 7 and network problems bridget VirtualBox

I have some difficulties for the network to work on my CentOS 7 VM.

I need to have my adapter in bridge in virtualbox in order to use DHCP to obtain an IP address.
Virtualbox network configuration

The interface is in centos.
result of ip to

I have enabled the interface with nmtui:
nmtui configuration

And I have no answer when I run a dhclient -v.

At this point, I have no idea and I need your help.

Thank you !

7 – Why d7_user_role needs a db connection configured when the migration group already defines it?

I just made a super basic import of user roles and I am trying to make a user import. Both are in the same migration group and the migration group has a password to specify which db is included in settings.php to use.

I can migrate and reverse the user_role import penalty, but as soon as I try to import the users, I get "Migration mysite_user did not meet the requirements, there is no database connection configured for the source plugin d7_user_role"

migrate_plus.migration_group.basic_migration.yml

uuid: 512c4248-7f60-4b08-9cc2-8d804657262c
langcode: in
state: true
dependencies: {}
id: basic_migration
Tag: basic_migration
Description: & # 39; Basic migrations & # 39;
font_type: & # 39; Drupal 7 & # 39;
module: null
known_configuration
source:
key: legacy  

migrate_plus.migration.mysite_role.yml

uuid: 6e288181-f2fd-4e22-885e-02282cc4d222
langcode: in
state: true
dependencies: {}
id: mysite_role
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags:
- & # 39; Drupal 7 & # 39;
- Configuration
migration_group: basic_migration
Tag: & # 39; Mysite Role & # 39;
source:
plugin: d7_user_role
process:
I.D:
-
plugin: machine_name
name of the source
-
plugin: user_update_8002
Label name
permissions:
-
plugin: static_map
source: permissions
bypass: true
Map:
& # 39; use PHP for block visibility & # 39 ;: & # 39; use PHP for configurations & # 39;
& # 39; Manage contact form throughout the site & # 39 ;: & # 39; Manage contact forms & # 39;
& # 39; Post comments without approval & # 39 ;: & # 39; omit approval comment & # 39;
& # 39; edit own blog posts & # 39 ;: & # 39; edit own blog content & # 39;
& # 39; edit any blog post & # 39 ;: & # 39; edit any blog content & # 39;
& # 39; Delete own blog posts & # 39 ;: & # 39; Remove content from own blogs & # 39;
& # 39; delete any blog post & # 39 ;: & # 39; delete any blog content & # 39;
& # 39; create forum topics & # 39 ;: & # 39; create forum content & # 39;
Remove any forum topic & # 39 ;: delete any forum content & # 39;
& # 39; delete the forum's own themes & # 39 ;: & # 39; delete the content of the forum itself & # 39;
& # 39; edit any forum topic & # 39 ;: & # 39; edit any forum content & # 39;
& # 39; edit the forum's own themes & # 39 ;: & # 39; edit the content of the forum itself & # 39;
-
plugin: flatten
Weight: weight
destination:
plugin: & # 39; entity: user_role & # 39;
dependency_migration: null

migrate_plus.migration.mysite_user.yml
uuid: bd0ef271-9c8f-40d7-9b65-8147e4cdda47
langcode: in
state: true
dependencies: {}
id: mysite_user
class: Drupal  user  Plugin  migrate  User
field_plugin_method: null
cck_plugin_method: null
migration_tags:
- & # 39; Drupal 7 & # 39;
- Content
migration_group: basic_migration
tag: & # 39; User Mysite & # 39;
source:
plugin: d7_user
process:
uid: uid
name name
pass: pass
mail: mail
created: created
Access: access
login: login
state: state
Time zone: time zone
langcode:
plugin: user_langcode
source language
fallback_to_site_default: false
preferred code_lang:
plugin: user_langcode
source language
fallback_to_site_default: true
preferred_admin_langcode:
plugin: user_langcode
source language
fallback_to_site_default: true
init: init
roles:
plugin: migration_lookup
migration: d7_user_role
Source: roles
user image:
-
plugin: default_value
Source: photo
default_value: null
-
plugin: migration_lookup
migration: d7_file
destination:
plugin: & # 39; entity: user & # 39;
dependency_migration:
necessary:
- d7_user_role
- mysite_role
Optional:
- d7_field_instance
- d7_file
- language
- default language
- user_picture_field_instance
- user_picture_entity_display
- user_picture_entity_form_display  

Any pointer where to start looking would be greatly appreciated.

7 – Multiselection variable response form.

I am creating a multiple selection element using a fixed function called by AJAX and in the form reload. Even though the function is the same, the behavior is different.

    & # 39;
& # 39 ;, & # 39; # suffix & # 39; => & # 39;
& # 39 ;, ); $ form['form_wrapper']['properties'] = array ( & # 39; # prefix & # 39; => & # 39;

Filter by sequence properties

& # 39 ;, & # 39; # suffix & # 39; => & # 39;
& # 39 ;, //
& # 39 ;, ); // Location of the sample collection // drupal_set_message (print_r ($ location_li2), true); // $ location_li2 is not read correctly $ country_li = array (); $ state_li = array ("" => ""); foreach ($ location_li2 as $ location_li) { $ country_li[$location_li[0]]= $ location_li[0]; yes (isset ($ _ POST['ddl1b']) && en_array ($ location_li[0], $ _POST['ddl1b']) && sizeof ($ location_li)> 1) { foreach ($ location_li[1] like $ state) { $ state_li[$location_li[0]. & # 39;: & # 39; $ state]= exploit (& # 39; | & # 39 ;, $ state)[0]; // include the country in the value of the state } } } $ form['#state_li'] = $ state_li; $ form['form_wrapper']['properties']['collection_location']['title_wrapper'] = array ( & # 39; # prefix & # 39; => & # 39;Location of the sample collection& # 39 ;, & # 39; # suffix & # 39; => & # 39;& # 39 ;, ); $ form['form_wrapper']['properties']['collection_location']['title_wrapper']['ddl1b'] = array ( & # 39; # prefix & # 39; => & # 39;
& # 39 ;, // width: 49% "> & # 39 ;, & # 39; # suffix & # 39; => & # 39;
& # 39 ;, & # 39; # type & # 39; => & # 39; select & # 39 ;, & # 39; # # multiple & # 39; => TRUE, & # 39; # options & # 39; => $ country_li, & # 39; # id & # 39; => & # 39; ddl1b & # 39 ;, # # Attributes & # 39; => array ( & # 39; autocomplete & # 39; => & # 39; off & # 39 ;, // & # 39; onchange & # 39; => & # 39; & # 39 ;, ) & # 39; # ajax & # 39; => array ( & # 39; callback & # 39; => & # 39; add_state_select & # 39 ;, & # 39; wrapper & # 39; => & # 39; ddl2b_wrapper & # 39 ;, & # 39; progress & # 39; => array (& # 39; type & # 39; => & # 39; none & # 39;), ) ); $ form['form_wrapper']['properties']['collection_location']['title_wrapper']['ddl2b_wrapper'] = array ( & # 39; # prefix & # 39; => & # 39;
& # 39 ;, & # 39; # suffix & # 39; => & # 39;
& # 39 ;, ); $ form['form_wrapper']['properties']['collection_location']['title_wrapper']['ddl2b_wrapper'] = add_state_select ($ form, $ form_state); $ form['form_wrapper']['table_button'] = array ( & # 39; # type & # 39; => & # 39; submit & # 39 ;, & # 39; # value & # 39; => & # 39; Send & # 39 ;, & # 39; # submit & # 39; => array (& # 39; enable_table & # 39;), & # 39; # ajax & # 39; => array ( & # 39; callback & # 39; => & # 39; rebuild_form & # 39 ;, & # 39; wrapper & # 39; => & # 39; form_wrapper & # 39 ;, ) ); if (! empty ($ form_state['table'])) { $ form['form_wrapper']['raw_html'] = array ( & # 39; # type & # 39; => & # 39; markup & # 39 ;, & # 39; # markup & # 39; => & # 39;

PROOF! & # 39 ;, ); } returns $ form; } function rebuild_form ($ form, $ form_state) { return $ form['form_wrapper']; } the enable_table ($ form, & $ form_state) {function $ form_state['table'] = TRUE; $ form_state['rebuild'] = TRUE; } function add_state_select ($ form, & $ form_state) { // drupal_set_message (& # 39; triggeredst_state_select () & # 39;); $ state_li = $ form['#state_li']; $ form['form_wrapper']['properties']['collection_location']['title_wrapper']['ddl2b_wrapper'] = array ( & # 39; # prefix & # 39; => & # 39;
& # 39 ;, & # 39; # suffix & # 39; => & # 39;
& # 39 ;, ); if (sizeof ($ state_li)> 1) { // drupal_set_message (& # 39; build conditional enabled & # 39;); $ form['form_wrapper']['properties']['collection_location']['title_wrapper']['ddl2b_wrapper']['ddl2b'] = array ( & # 39; # type & # 39; => & # 39; select & # 39 ;, & # 39; # # multiple & # 39; => TRUE, & # 39; # options & # 39; => $ state_li, & # 39; # id & # 39; => & # 39; ddl2b & # 39 ;, # # Attributes & # 39; => array ( & # 39; autocomplete & # 39; => & # 39; off & # 39 ;, // & # 39; multiple & # 39; => & # 39; true & # 39 ;, ) ); } return $ form['form_wrapper']['properties']['collection_location']['title_wrapper']['ddl2b_wrapper']; }

After interacting with the first drop-down menu (ddl1b, it contains country information), a single selection element (ddl2b) is produced. The form does not recognize & # 39; # # multiple & # 39; => TRUE as a valid value The selection element can still be set to multiple using attributes, but the selections will no longer be recognized by $ form_state and will be lost in the reconstruction.

AJAX trigger

When the second selection element is created in the reconstruction of the page, it is correctly configured to accept multiple selections. The element has an expected behavior ($ form_state works, the selected elements remain in the reconstruction).

Reconstruction of forms

This behavior seems abnormal. Maybe it's a mistake related to my current version of Drupal (7.67). Or maybe my callback is not structured correctly.

7 – hook_custom_theme () works except if a user sends a user form with mismatched passwords. Then they are served the administration topic

Title basically. My hook_custom_theme () It has been working for a long time and I just realized that the administration issue is used for an error when saving a user form, that is, mismatched passwords.

A fragment of the upper part of my function:

function custom_theme_change_custom_theme () {
global $ top_bar_color;
$ top_bar_color = & # 39; # 2b3643 & # 39 ;;
if (strpos ($ _ SERVER['HTTP_HOST'], & # 39; example.com & # 39;)! == false) {
switch (returnRoleForTheme ()) {
case & # 39 ;: $ th = & # 39; theme_1 & # 39 ;; $ top_bar_color = & # 39; # 2b3643 & # 39 ;; break;
case & # 39; young & # 39 ;: $ th = & # 39; topic_2 & # 39 ;; $ top_bar_color = & # 39; # 6dad19 & # 39 ;; break;
case & # 39 ;: $ th = & # 39; theme_3 & # 39 ;; $ top_bar_color = & # 39; # 6dad19 & # 39 ;; break;
}
}
returns $ th;
}

Any ideas on how to force the issue as for any other part of the website? Why would this particular page go back to Adminimal?

b8coins.com FOR SALE Premium 7 characters domain name

Why are you selling this site?
Need funds

How is it monetized?

N / A

Does this site come with any social media account?

Yes, Facebook account with 6,000 followers.

b8coins.com Premium Domain 7 Characters, perfect for content related to Bitcoin.

I can provide content (articles) for the buyer or help with the content of the drip feed.

Why are you selling this site?

You need funds and would like to continue the site but it is financially restricted.

How is it monetized?

It can be used for Amazon Affiliates, cryptocurrency blogs or any other type of monetization.

Does this site come with any social media account?

Yes, a Facebook page with 6,000+ followers.

How long does this site take to work?

24 hours or less …

b8coins.com Premium Domain 7 Characters, perfect for content related to Bitcoin.

[WTS] Exmasters.com – * High quality * Dedicated hosting | Host tested by time

This is a discussion about Exmasters.com – * High quality * Dedicated hosting | Host tested by time | Support 24/7! within Webmaster Marketplace forums, part of the business category; Exmasters is a leading global provider of adult and high-speed web hosting, offering a new concept of affordable …

.