Git Product home page Git Product logo

ocean-extra's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ocean-extra's Issues

Custom Sidebar Widgets conflicting with About Me and Social Widgets in Ocean Extra Plugin

I was working on a project using OceanWP which comes with the ocean-extra plugin. I installed Custom Sidebars plugin by WPMU Dev to add more functionality and flexibility to the sidebars.

After activating the plugin, and making some changes in the sidebar widget options. It just keeps loading as you can see in the image below.

image

When checking the dev console, there's an Uncaught TypeError: settings.data.search is not a function. See following image:

image

Clicking on the widgets.php file will show the file and the line where the error is coming. And yes, it comes from the about-me.php and social.php in ocean-extra/includes/widgets directory.

image

I did a temporary fix by updating some lines from:

if ( settings.data.search( 'action=save-widget' ) != -1 && settings.data.search( 'id_base=' + widget_id_base) != -1 ) { oceanwpSortServices(); }

to the following:

if (typeof(settings.data) !== 'undefined' && typeof(settings.data.search) !== 'undefined') { if ( settings.data.search( 'action=save-widget' ) !== 'undefined' && typeof(settings.data.search( 'id_base=' + widget_id_base)) !== 'undefined' ) { oceanwpSortServices(); } }

That fixed the issue though. But I have to do that over and over again every time there's an update from ocean wp theme core files/plugins.

Uncaught Error: Undefined constant "OCEANWP_CSS_DIR_URI"

Fatal error: Uncaught Error: Undefined constant "OCEANWP_CSS_DIR_URI" in /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/types/font.php:68 Stack trace: #0 /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/types/base.php(62): OE_Icon_Picker_Type_Font->get_stylesheet_uri() #1 /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/types/font.php(91): OE_Icon_Picker_Type->_get('stylesheet_uri') #2 /home/locean/public_html/wp-includes/class-wp-hook.php(308): OE_Icon_Picker_Type_Font->register_assets(Object(OE_Icon_Picker_Loader)) #3 /home/locean/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #4 /home/locean/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/loader.php(78): do_action('oe_icon_picker...', Object(OE_Icon_Picker_Loader)) #6 /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/loader.php(59): OE_Icon_Picker_Loader->__construct() #7 /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/icon-selector.php(194): OE_Icon_Picker_Loader::instance() #8 /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/icon-selector.php(127): OE_Icon_Selector->init_loader() #9 /home/locean/public_html/wp-includes/class-wp-hook.php(308): OE_Icon_Selector->init('') #10 /home/locean/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #11 /home/locean/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /home/locean/public_html/wp-settings.php(645): do_action('wp_loaded') #13 /home/locean/public_html/wp-config.php(91): require_once('/home/locean/pu...') #14 /home/locean/public_html/wp-load.php(50): require_once('/home/locean/pu...') #15 /home/locean/public_html/wp-admin/admin.php(34): require_once('/home/locean/pu...') #16 /home/locean/public_html/wp-admin/plugins.php(10): require_once('/home/locean/pu...') #17 {main} thrown in /home/locean/public_html/wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/types/font.php on line 68

Please help me to fix the issue as the testing shown that only ocean extra plugin activated and gave an error.

Recent commit breaks WP

Hi!
The new commit 19ca735 seems to break Wordpress for me.

PHP Fatal error:  Cannot redeclare oceanwp_webfonts_enqueue() (previously declared in [...]/wp-content/plugins/ocean-extra/includes/compatibility/ocean.php:94) in [...]/wp-content/themes/oceanwp/inc/customizer/controls/typography/webfonts.php on line 128"

The two files from OceanWP and Ocean Extra seem to be almost identical.

OceanWP: 3.3.3
Ocean Extra: 2.0.3

God bless you :)
Thomas

coding standards

When I look at the page: https://developers.elementor.com/getting-started/ it understandably recommends using phpcs using the WordPress coding standard but when I run phpcs on the Ocean Extra source I see quite a lot of violations.

Many are fairly trivial e.g.:

Line indented incorrectly; expected at least 3 tabs, found 0

But with so many its hard to see if there are more major ones. Iโ€™m using the current WordPress rules as far as I can see. Do you know where I can I find a phpcs rule set which matches what the Ocean extra team are doing in practice? Any pointers would be much appreciated.

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.