Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6677003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:03:49+00:00 2026-05-26T04:03:49+00:00

Updating an inherited drupal site and I’m trying to add php code to the

  • 0

Updating an inherited drupal site and I’m trying to add php code to the content body using the WYSIWYG editor. I change the editor to source view and use <?php ?> tags. I also choose php code as the input format, and save the page.

When the page is rendered, I see the code on the page.

If I return and edit the page, the code has now changed to <!--?php and ?&gt;

Is there a way, other than updating the database directly, to input PHP code and have it remain unaltered so it is parsed properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:03:49+00:00Added an answer on May 26, 2026 at 4:03 am

    Sounds like a problem with the way your WYSIWYG editor is set up. Which module is it?

    The WYSIWYG editor should be set so that it doesn’t load at all if the PHP input format is used. In addition, you might want to check your “HTML Corrector” settings — it can be set to fix “broken” HTML automatically upon submit. But that’s probably not what you want at all if you’re writing PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Updating an old ASP/Access site for a client - I need SQL to add
After updating to Parsec 3.1 from 2.x, code using many1, such as word =
I'm a Drupal newbie plus I don't have much experience updating code, styles, and
I inherited a site which I am in the middle of updating which has
When trying to launch the rails console after updating my ruby setup using 'sudo
After updating to php 5.3 one of our systems has developed an interesting bug.
As the title suggests, I've inherited a php/MySQL application which has fairly well written
I'd like to copy a table's row before updating and I'm trying to do
So I'm pretty new to Visual Basic and inherited this VB6 code that i
I inherited some code that has two non-UI threads that update various WinForm controls.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.