• Resolved holzhannes

    (@holzhannes)


    On edititing an Image This Error is appearing:

    Strict Standards: Non-static method MLAData::mla_get_attachment_by_id() should not be called statically in /wp-content/plugins/media-library-assistant/includes/class-mla-data.php on line 4994
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/media-library-assistant/includes/class-mla-data.php:4994) in /wp-includes/pluggable.php on line 896

    https://ww.wp.xz.cn/plugins/media-library-assistant/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thank you for this report; you’ve found a harmless bug that’s been in the code since version 0.1!

    Harmless, except for generating these messages.

    I will correct the bug in my next version. IN the interim you can avoid it by relaxing the E_STRICT error reporting. I regret the inconvenience.

    I haven’t been able to reproduce this on my test system. Can you tell me what PHP version you have and how your error reporting is set up? Thanks for your help!

    Thread Starter holzhannes

    (@holzhannes)

    Hello David, thank you very much for your reply the Information, and of course for the Plugin which we are using on an human rights Blog. I tested with the these results:
    I get the error only with PHP 5.4.9 with PHP 5.3.10 the error does not apear. Display errors is not active. Here are the PHP Settings in Detail:

    [PHP]
      engine = "1"
      short_open_tag = "1"
      date.timezone = "Europe/Berlin"
      asp_tags = "1"
      precision = "14"
      y2k_compliance = ""
      output_buffering = "Off"
      output_handler = ""
      unserialize_callback_func = ""
      zlib.output_compression = ""
      implicit_flush = ""
      allow_call_time_pass_reference = "1"
      safe_mode = ""
      safe_mode_gid = ""
      safe_mode_include_dir = ""
      safe_mode_exec_dir = ""
      safe_mode_allowed_env_vars = "PHP_"
      safe_mode_protected_env_vars = "LD_LIBRARY_PATH"
      disable_functions = ""
      highlight.string = "#CC0000"
      highlight.comment = "#FF9900"
      highlight.keyword = "#006600"
      highlight.bg = "#FFFFFF"
      highlight.default = "#0000CC"
      highlight.html = "#000000"
      expose_php = "1"
      zend_optimizer.optimization_level = "15"
      zend_optimizer.enable_loader = "1"
      zend_extension = "/usr/local/php5/ZendOptimizer.so"
      max_execution_time = "900"
      memory_limit = "64M"
      error_reporting = "32759"
      display_errors = ""
      display_startup_errors = ""
      log_errors = ""
      track_errors = ""
      variables_order = "EGPCS"
      register_globals = "1"
      register_argc_argv = "1"
      post_max_size = "16M"
      gpc_order = "GPC"
      magic_quotes_gpc = "1"
      magic_quotes_runtime = ""
      magic_quotes_sybase = ""
      auto_prepend_file = ""
      auto_append_file = ""
      default_mimetype = "text/html"
      include_path = ".:/usr/local/lib/php"
      doc_root = ""
      user_dir = ""
      extension_dir = "./"
      enable_dl = "1"
      file_uploads = "1"
      upload_max_filesize = "32M"
      allow_url_fopen = "1"
      allow_url_include = "1"
    
    [mail function]
      SMTP = "localhost"
      sendmail_from = "[email protected]"
    
    [SQL]
      sql.safe_mode = ""
    
    [ODBC]
      odbc.allow_persistent = "1"
      odbc.check_persistent = "1"
      odbc.max_persistent = "-1"
      odbc.max_links = "-1"
      odbc.defaultlrl = "4096"
      odbc.defaultbinmode = "1"
    
    [MySQL]
      mysql.allow_persistent = ""
      mysql.max_persistent = "-1"
      mysql.max_links = "-1"
      mysql.default_port = ""
      mysql.default_socket = ""
      mysql.default_host = ""
      mysql.default_user = ""
      mysql.default_password = ""
    
    [PostgresSQL]
      pgsql.allow_persistent = "1"
      pgsql.auto_reset_persistent = ""
      pgsql.max_persistent = "-1"
      pgsql.max_links = "-1"
    
    [bcmath]
      bcmath.scale = "0"
    
    [Session]
      session.save_handler = "files"
      session.save_path = "/tmp"
      session.use_cookies = "1"
      session.name = "PHPSESSID"
      session.auto_start = ""
      session.cookie_lifetime = "0"
      session.cookie_path = "/"
      session.cookie_domain = ""
      session.serialize_handler = "php"
      session.gc_probability = "1"
      session.gc_maxlifetime = "1440"
      session.referer_check = ""
      session.entropy_length = "0"
      session.entropy_file = ""
      session.cache_limiter = "nocache"
      session.cache_expire = "180"
      session.use_trans_sid = "1"
      url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

    Plugin Author David Lingren

    (@dglingren)

    Thank you for taking the time to post the additional information regarding your PHP version and settings; very helpful.

    I have released MLA version 1.82, which contains a fix for the issue you raised. I am marking this topic resolved, but please update it if you have any problems with the fix or further questions/suggestions on the issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Saving Image: Non-static method and Cannot modify header information’ is closed to new replies.