Giter VIP home page Giter VIP logo

Comments (5)

bobbingwide avatar bobbingwide commented on July 3, 2024

The changes in 40a7b42 are ok for a simple link to a plugin but not for a table of plugins where we want to see data from WordPress.org. Until the code is implemented using a better class structure a pragmatic solution would be to used the cache method to load data for WordPress or WordPress and oik plugins when the table display is required.

from oik-bob-bing-wide.

bobbingwide avatar bobbingwide commented on July 3, 2024

Note: We still get the warning message.

from oik-bob-bing-wide.

bobbingwide avatar bobbingwide commented on July 3, 2024

Well, since this issue isn't yet closed I may as well add this new message.
It occurs when the locally cached plugin_info is from oik-plugins and doesnt contain a value for downloaded. The following function would appear to need to be improved.

function oikp_get_downloaded( $post, $version ) { 
  return( "" );
} 

or the routine that calls it.

/home/herb/public_html/wp-content/plugins/oik-bwtrace/includes/bwtrace-actions.php(279:2) bw_trace_error_handler(1) 120 3 2020-01-30T15:26:15+00:00 0.227250 0.000205 cf=genesis_loop,genesis_entry_content,the_content 11453 73 20664 29360128/29360128 768M F=887 err W3TC\Generic_Plugin::ob_callback,ob_gzhandler,autoptimizeMain::end_buffering
Array

[0] => (integer) 2
[1] => (string) "Warning: number_format() expects parameter 1 to be float, string given"
[2] => (string) "/home/herb/public_html/wp-includes/functions.php"
[3] => (integer) 397

@#:0 337 508

Plugin name and descriptionPlugin linksVersion, total downloads, last update, tested
oik-css
Internal CSS styling
oik-css
0.9.0

0. bw_lazy_backtrace /home/herb/public_html/wp-content/plugins/oik-batch/libs/bwtrace.php:108 0

  1. bw_backtrace /home/herb/public_html/wp-content/plugins/oik-bwtrace/includes/bwtrace-actions.php:286 0
  2. bw_trace_error_handler(2,number_format() expects parameter 1 to be float, string given,/home/herb/public_html/wp-includes/functions.php,397,array) /home/herb/public_html/wp-content/plugins/oik-bwtrace/includes/bwtrace-actions.php:0 5
  3. number_format(,0,.,,) /home/herb/public_html/wp-includes/functions.php:397 4
  4. number_format_i18n(,0) /home/herb/public_html/wp-content/plugins/oik-bob-bing-wide/shortcodes/oik-plug.php:794 2
  5. bw_format_plug_table(oik-css,unsupported,object) /home/herb/public_html/wp-content/plugins/oik-bob-bing-wide/shortcodes/oik-plug.php:72 3
  6. bw_plug(array,,bw_plug) /home/herb/public_html/wp-content/plugins/oik/oik-add-shortcodes.php:207 3

from oik-bob-bing-wide.

bobbingwide avatar bobbingwide commented on July 3, 2024

Workaround was to delete the transient data cached for the plugin from oik-plugins.com and reset the entry for the plugin.

from oik-bob-bing-wide.

bobbingwide avatar bobbingwide commented on July 3, 2024

Problem happened again on oik-plugins.com and oik-plugins.co.uk
Time to apply the fix!

from oik-bob-bing-wide.

Related Issues (20)

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.