7 – PHP content cannot be created or modified after ISP migration

I recently migrated my Drupal 7 sites to A2 Hosting. Everything was working fine, until I had to edit a node which had some simple PHP code content in its body (it only shows different links if the user is anonymous or authenticated).

After modifying the content and clicking on Save, the page reloads without giving any message (such as node was updated), showing the content editing form as it was prior to the editing.
If I try to create a new page whose body is formatted as PHP code, the page is reloaded with a blank form after I hit Save.
Despite this, all my previous, unmodified PHP snippets were working fine.

This happens in 3 Drupal 7 sites I have hosted at A2. In one of them, as an attempt to fix the issue, I tried to temporary disable the PHP filter module and re-enable it afterwards. I managed to disable it, but it cannot be re-enabled. Every node and block using that input filter stopped working.

Then I installed a new, clean, standard Drupal 7.74 site on a subdomain, for testing purposes. It is impossible to enable PHP filter module in it. If I try it in admin/modules, the page reloads without any message and the PHP filter module remains disabled, just like in my own site. It is possible to enable any other modules, but PHP filter.

What could be the problem?

7 – PHP content cannot be created or modified in D7 sites after ISP migration

I recently migrated my D7 websites to A2 Hosting. Everything was working fine, until I had to edit a node which had some simple PHP code content in its body (it only shows different links if the user is anonymous or authenticated).

After modifying the content and clicking on ‘Save’, the page reloads, not giving any message (such as ‘node was updated’), showing the content editing form as it was prior to the editing.

If I try to create a new page whose body is formated as PHP code, the page is reloaded with a blank form after I hit ‘Save’.

Despite this, all my previous, unmodified PHP snippets were working fine.

This happens in 3 D7 websites I have hosted at A2. In one of them, as an attempt to fix the issue, I tried to turn PHP filter module temporarily OFF to turn it ON again afterwards. I managed to turn it OFF, but could never turn it back ON. If I switch the ON key beside PHP filter module, click on ‘Save configuration’, the page reloads without any messages, and the module remains OFF. Now every PHP content and blocks stopped working in that site.

What could be the problem?

How to get list of all documents/sites/pages and their last modified date along with its site link, in SharePoint 2010 Farm?

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

sharepoint enterprise – Need a Custom Modified By Column to Track Who Chnaged Another Column

I have a SharePoint list with a column called Manager Review. I would like to create two columns; one called “Manager Review By” and one Called “Manager Review On”. I would like the Manager Review By column to contain the user name of the user that changes the value (picks a Review choice) from the Manager Review dropdown and the Manager Review On would contain the date the selection was made. I was thinking of trying to use the intrinsic function (Me) in a calculated column, but SharePoint doesn’t allow it. I have a basic understanding of javascript so if that is the route I need to go I think I could work that out with a little help. Thanks in advance! Kevin

dnd 5e – Is my modified ‘Scent’ ability balanced?

Balance is not a problem with keen smell. The design is potentially a problem.

This adds complexity that runs contrary to the design principles of 5th Edition.

I would not want to DM this. Typically, if you are good at smell, I just have to say, “roll at advantage”, and your extra good tracking skills are baked into the advantage roll and proficiency (or expertise) in the survival skill. I don’t have to change anything about my world building for it to be a useful trait. This ability requires that I put in extra work into my scene-setting for it to be applicable at all.

If one of the players at my table has this ability, now I have to pay careful attention to the exact positioning of undetected creatures and the precise direction of the wind throughout a scene for you to make use of the ability. But let me emphasize, I would find this problematic, but another DM may not.

As written, this ability probably wouldn’t play out too much differently than if I were DMing and it was written as:

Keen Smell. You can detect other creatures within 30 feet by sense of smell and determine what race they are solely by smell. You cannot detect how many there are. You have advantage on Wisdom (Survival) checks relying on smell.

I would be sure to let you get mileage out of it, but I wouldn’t be checking windy.com every time I set the scene. But I must be clear, another DM might have no problem keeping track of this.

It’s balanced, but ask your DM how they would prefer to implement this feature, whether as written, or more simply just using advantage.

Overall, the race is slightly weaker than average to average.

The strongest age group here gets two +1s and a +2, which is pretty strong, and your base speed is 25 feet.

Compare to the base Dwarf race (PHB, pg. 20) which gets a +2 to CON, three racial features, some weapon proficiencies and a tool proficiency.

Your race is somewhat weaker than the standard dwarf, in my estimation. The ASIs are stronger than most races, at +2/+1/+1, but I think one more racial feature, probably a proficiency would bring it up to par or to slightly above average, depending on what it is.

modified – Email Alerts with dynamic subject on add and edit items to the list

I want to send email alert with dynamic subject

  1. When a new item is added ,the subject of the email alert must be ‘New item added’.
  2. When i edit that item,the subject of the email should be ‘Item Modified’

How can i achieve this in a single workflow

i have checked the condition
if currentItem:created equals currentItem:modified
then email_message(a new variable) will be ‘New Item Added’
else
email_message will be Item Modified

Any help would be appreciated.Thanks.

permissions – How to change the modified date of a file without root?

SHORT ANSWER:

You can simply touch the file or provide any time and date in past or future:

~$ touch /sdcard/test_file
~# debugfs -R 'stat media/0/test_file' /dev/block/bootdevice/by-name/userdata | grep crtime:
crtime: 0x5c926e0d:2d61b810 -- Wed Mar 20 21:45:01 2019
~$ touch -d '2009-2-13 14:32:55' /sdcard/test_file
~$ stat /sdcard/test_file
(...)
Access: 2009-02-13 14:32:55.000000000 +0000
Modify: 2009-02-13 14:32:55.000000000 +0000
Change: 2019-03-20 21:45:38.067021025 +0000
 Birth: -

Some file explorers like MiXplorer also have options to change Modified Time.
You don’t need super user privileges to change mtime. Only the file should be writeable by your user ID (app in case of Android).

DETAILS:

touch uses utimensat to update time of access (atime) and modification (mtime) provided that filesystem supports the timestamps be saved in inode along with file’s data.

Birth/creation time (btime/crtime) – a part of extended file status which requires at least 256bytes inode size – is not standardized, thus rarely supported by filesystems. In above commands debugfs is used with root privileges to get creation time of file on ext4 because some stat binaries aren’t updated to use statx yet (requires at least Linux Kernel 4.11), so btime is empty.

Both btime and change time (ctime; inode/metadata modification time) are supposed to be handled by system, not simply changeable by user.

Since Android is based on Linux, it inherits the concept of inode and timestamps from UNIX world. Common Linux filesystems like ext4 and f2fs support timestamps, including the emulated filesystems used by Android on SD cards. Other OS and filesystems have similar concept with slightly different terminologies. E.g. on Windows’ NTFS, MFTEntry Modified time is very identical to UNIX’s ctime.

sharepoint online – JSON view formatting [$Editor] en [$Modified] not visible

Try this JSON for test (it is working for me):

{
    "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
    "hideSelection": true,
    "hideColumnHeader": true,
    "rowFormatter": {
        "elmType": "div",
        "attributes": {
            "class": "sp-row-card"
        },
        "children": (
            {
                "elmType": "div",
                "attributes": {
                    "class": "sp-row-title"
                },
                "txtContent": "($Modified)"
            },
            {
                "elmType": "div",
                "attributes": {
                    "class": "sp-row-title"
                },
                "txtContent": "($Editor.email)"
            }
        )
    }
    
}

Note:

In order to access the Modified By and Modified columns in JSON, it should be included in the list view.

You can include the column in list view from view settings like:

enter image description here

official documentations:

  1. Use view formatting to customize SharePoint
  2. Use column formatting to customize SharePoint – You can find supported functions and guidelines for JSON formatting in this link

The people field object has the following properties (with example values):

{
   "id": "122",
   "title": "Kalya Tucker",
   "email": "kaylat@contoso.com",
   "sip": "kaylat@contoso.com",
   "picture": "https://contoso.sharepoint.com/kaylat_contoso_com_MThumb.jpg?t=63576928822",
   "department":"Human Resources",
   "jobTitle":"HR Manager"
}

Also, to convert the date columns in other formats, you can use toLocaleDateString() or toLocaleString() functions.

linux – What parameters should be modified after uploading ram memory in Oracle server

I have a linux server (rhel4) with oracle 9i (9.2.0.8) to which we have recently uploaded the RAM memory from 4G to 16G, I would like to know what server parameters I should modify and even more what Oracle parameters should I modify to make use of this new configuration from memory, thank you very much for your answers.