Giter Site home page Giter Site logo

g-kanoufi / wp-cleanup-and-basic-functions Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 9.0 232 KB

WordPress Cleanup and Basic Options Functions is a utility plugin, even though it's was developed with a focus on developers as many functionalities are what you might just add to every new website you build, it's really easy to use, just check the boxes corresponding to the set up you want.

License: GNU General Public License v2.0

PHP 91.48% CSS 1.48% JavaScript 7.04%

wp-cleanup-and-basic-functions's Introduction

๐Ÿ‘‹ Hi, I am Guillaume

Web developer specialized in React and Headless WordPress development.
Working on the web since 2008.

๐Ÿ“ซ Contact

wp-cleanup-and-basic-functions's People

Contributors

g-kanoufi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wp-cleanup-and-basic-functions's Issues

Cannot Modify Header Information Line 9 Core file After 5.5 Update

Received the following warning:

Cannot modify header information - headers already sent by (output started at /../wp-content/plugins/wp-cleanup-and-basic-functions/public/class-wp-cbf-public.php:379) in /../wp-admin/admin-header.php on line 9

Refer to issue #1, #2, #3

admin-header.php line 9:
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); if ( ! defined( 'WP_ADMIN' ) ) { require_once __DIR__ . '/admin.php'; }

Trying to Access Array Offset on Value of Type Bool

When activating the plugin, the following error message appears:

"Notice: Trying to access array offset on value of type bool in ../wp-content/plugins/wp-cleanup-and-basic-functions/public/class-wp-cbf-public.php on line 379"

if(is_array($this->wp_cbf_options['images_size_arr'])): foreach($this->wp_cbf_options['images_size_arr'] as $images_size_name => $images_size): $images_size_w = $images_size['width']; $images_size_h = $images_size['height']; $images_size_c = ($images_size['crop'] == 1) ? true : false; add_image_size( $images_size_name, $images_size_w, $images_size_h, $images_size_c ); endforeach; endif;

I'm not sure what the fix for this is since I was following the tutorial here. I was stumped so I found, installed, and activated the actual plugin from the repository and received the same error message.

Cannot Modify Header Information in Core Functions File

Receiving the following error message:

Warning: Cannot modify header information - headers already sent by (output started at /../wp-content/plugins/wp-cleanup-and-basic-functions/public/class-wp-cbf-public.php:379) in /../wp-includes/functions.php on line 6270

../public/class-wp-cbf-public.php line 379:

if(is_array($this->wp_cbf_options['images_size_arr'])): foreach($this->wp_cbf_options['images_size_arr'] as $images_size_name => $images_size): $images_size_w = $images_size['width']; $images_size_h = $images_size['height']; $images_size_c = ($images_size['crop'] == 1) ? true : false; add_image_size( $images_size_name, $images_size_w, $images_size_h, $images_size_c ); endforeach; endif;

This error occurs in tandem with issue #1

I suspect this error is due to incompatibility with the newest WordPress version (5.5)

Line 6270 WordPress Core functions.php file
header( 'X-Frame-Options: SAMEORIGIN' );

Cannot Modify Header Information - Headers Already Sent

Receiving the following warning:

Cannot modify header information - headers already sent by (output started at /../wp-content/plugins/wp-cleanup-and-basic-functions/public/class-wp-cbf-public.php:379 in /../wp-admin/includes/misc.php on line 1310

Please refer to issue #1 and #2

Line 1310 in misc.php file:
header( sprintf( 'Referrer-Policy: %s', $policy ) );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.