Problems with php c...
 
Notifications
Clear all

[Solved] Problems with php code in post with

6 Posts
2 Users
2 Reactions
630 Views
Johannes de Sacrobosco
(@johannes-de-sacrobosco)
Posts: 83
Member Moderator
Topic starter
 

@editor i have some problems posting php code using the <> function of the editor.

The formatting is gone and other problems also. Any ideas?

 
Posted : January 22, 2020 18:04
Editor reacted
Editor
(@editor)
Posts: 553
Honorable Member Admin
 
Posted by: @johannes-de-sacrobosco

@editor i have some problems posting php code using the <> function of the editor.

The formatting is gone and other problems also. Any ideas?

I see the problem with formatting and also i see some 403 (forbidden) when posting code inline.

It was working right, maybe Wordpress 5.3 update broke something with a plugin or the forums. I will get into it.

Thanks for let me know.

 
Posted : January 22, 2020 18:19
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Until i find the cause and possibly fix it, please do the following (not an easy way, still it works) :

1. Goto https://opinionatedgeek.com/Codecs/HtmlEncoder and encode your php code. Copy the code from the second window (do not check the encode all non-alpha characters).

2. Press the code <> in the editor toolbar and the select source code {;}, you will see the html code.

3. Paste the code between the PRE tags, select ok and add reply or topic.

4. View the post if it is ok

 
Posted : January 22, 2020 18:44
Johannes de Sacrobosco
(@johannes-de-sacrobosco)
Posts: 83
Member Moderator
Topic starter
 

Actually there is no need for all that.

You press the Code <>, then you press Source Code {;} and paste the code inside the PRE tags. Ok and Post it.

 
Posted : January 22, 2020 22:33
Editor reacted
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Since a lot if things changes recently, let's see if now it works or still gets blocked (using the <>).

/*
Theme Name: OsclassWizards
Theme URI:  http://www.osclasswizards.com 
Description: A simple and clean responsive theme for your classified site.
Version: 2.0.6
Author: OsclassWizards
Author URI:  http://www.osclasswizards.com 
Widgets:  header, footer
Theme update URI: osclasswizards-free-responsive-theme
*/
    function osclasswizards_theme_info() {
        return array(
             'name'        => 'OsclassWizards'
            ,'version'     => '2.0.6'
            ,'description' => 'A simple and clean responsive theme for your classified site.'
            ,'author_name' => 'OsclassWizards'
            ,'author_url'  => 'http://www.osclasswizards.com'
            ,'locations'   => array('header', 'footer')
        );
    }
?> 
 
Posted : March 11, 2020 13:56
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Seems to be working right. Nothing is blocked. I think something changed in mod_security rules (different rules set).

 

 
Posted : March 11, 2020 13:58