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

    (@dglingren)

    Thanks for your report; I regret the trouble caused by the latest updates.

    To reduce the time/memory requirements MLA adds to “front end” posts/pages the ode base was restructured to avoid loading parts of the code that aren’t required. The mla_get_data_source function was moved during that process.

    You can solve the problem with a small change in the mla-file-size.php example plugin. Just replace MLAOptions with MLAShortcodes, i.e., change line 118 to:

    $file_size = (float) MLAShortcodes::mla_get_data_source( $item_values['attachment_ID'], 'single_attachment_mapping', $my_setting, NULL );

    You should also change the comment on line 113, but that’s optional. The changes work on my test system. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Again, I regret the inconvenience.

    Thread Starter matthewhearne

    (@matthewhearne)

    Thanks for that. Implemented it and works a treat. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Class 'MLAOptions' not found’ is closed to new replies.