Advertisement:

Author Topic: Optimus  (Read 223407 times)

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,648
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #800 on: January 26, 2021, 09:36:47 AM »
Quote
To submit an issue, leave:
a short description of your problem
mods list that installed
your SMF version
your PHP version
forum link where I can see the issue

Offline 6o6ep84

  • Newbie
  • *
  • Posts: 6
Re: Optimus
« Reply #801 on: January 26, 2021, 09:45:06 AM »
sorry
url FAW-CARS.ru

mods:
Auto Merge Double Post
Disable Help
Sitemap RUS
Sitemap
InLine Attachments
RedirectPage   
Similar Topics
SimplePortal - KPR Block
Karma Post Rating
Fix set size for DECIMAL columns
New Hooks 0.4.1

Версия мода: 2.6.6, версия PHP: 5.6.40-38+0~20201103.42+debian9~1.gbpb211e0, версия MySQL: 5.7.30-log.
« Last Edit: January 26, 2021, 09:55:28 AM by 6o6ep84 »

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,648
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #802 on: January 26, 2021, 09:58:39 AM »
Try to comment some hooks in Sources/Optimus/Integration.php:
Code: [Select]
public static function hooks()
{
//add_integration_function('integrate_load_theme', __CLASS__ . '::loadTheme', false);
//add_integration_function('integrate_menu_buttons', __CLASS__ . '::menuButtons', false);
//add_integration_function('integrate_buffer', __CLASS__ . '::buffer', false);
add_integration_function('integrate_admin_include', '$sourcedir/Optimus/Settings.php', false);
add_integration_function('integrate_admin_areas', __NAMESPACE__ . '\Settings::adminAreas', false);
}

Will it help?

Offline 6o6ep84

  • Newbie
  • *
  • Posts: 6
Re: Optimus
« Reply #803 on: January 26, 2021, 10:56:05 AM »
Thanks. This fixed the forum. Can you explain what to do to make the mod work without edits?

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,648
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #804 on: January 26, 2021, 11:18:01 AM »
Run this SQL via phpMyAdmin:
Code: [Select]
DELETE FROM `smf_settings`
WHERE `variable` LIKE '%op_%' OR `variable` LIKE '%optimus_%';

This will remove all Optimus' settings. Then restore the hooks method in Sources/Optimus/Integration to the initial state.
If you see errors again, begin to comment hooks one by one until you find out which hook is responsible for the white screen:

1) integrate_buffer?
Code: [Select]
public static function hooks()
{
add_integration_function('integrate_load_theme', __CLASS__ . '::loadTheme', false);
add_integration_function('integrate_menu_buttons', __CLASS__ . '::menuButtons', false);
//add_integration_function('integrate_buffer', __CLASS__ . '::buffer', false);
add_integration_function('integrate_admin_include', '$sourcedir/Optimus/Settings.php', false);
add_integration_function('integrate_admin_areas', __NAMESPACE__ . '\Settings::adminAreas', false);
}

2) integrate_menu_buttons?
Code: [Select]
public static function hooks()
{
add_integration_function('integrate_load_theme', __CLASS__ . '::loadTheme', false);
//add_integration_function('integrate_menu_buttons', __CLASS__ . '::menuButtons', false);
add_integration_function('integrate_buffer', __CLASS__ . '::buffer', false);
add_integration_function('integrate_admin_include', '$sourcedir/Optimus/Settings.php', false);
add_integration_function('integrate_admin_areas', __NAMESPACE__ . '\Settings::adminAreas', false);
}

3) etc.

Offline 6o6ep84

  • Newbie
  • *
  • Posts: 6
Re: Optimus
« Reply #805 on: January 26, 2021, 11:28:34 AM »
Thank you very much, after deleting the lines from the database, everything worked.
Дайте бог тебе здоровья.

Offline MobileCS

  • Jr. Member
  • **
  • Posts: 238
Re: Optimus
« Reply #806 on: February 06, 2021, 11:55:01 PM »
I love this mod! However, there is a small issue.

On the forum main page, it's missing the following meta tags :

og:title
og:type
og:url
og:image
og:description
og:site_name
fb:app_id

Also, you need to include the og:image width/height.

<meta property="og:image:width" content="$width" />
<meta property="og:image:height" content="$height" />

You can easily grab the image width and height using this method :

Code: [Select]
list($width, $height) = getimagesize("/www/example.com/httpdocs/forum/$image_name");

Offline Portugal

  • Jr. Member
  • **
  • Posts: 243
Re: Optimus
« Reply #807 on: February 15, 2021, 11:09:35 AM »
Hi,

After make the last update, i get some errors on sitemap, any idea to fix it?

Sometimes instead of the "scheduledtasks" i comes with a topic, just one!
It produces about 39 erros everytime it makes the cronjob (hourly in my case)

Attached image to explain better!

Thanks!

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,648
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #808 on: February 16, 2021, 06:22:13 AM »
v2.7.1 for SMF 2.0.x
* Fixed found issues

Offline Portugal

  • Jr. Member
  • **
  • Posts: 243
Re: Optimus
« Reply #809 on: February 16, 2021, 07:40:51 AM »
Thanks @Bugo problem solved!



v2.7.1 for SMF 2.0.x
* Fixed found issues

Offline gevv

  • Full Member
  • ***
  • Posts: 608
  • Gender: Male
  • ElkArte powerful forum software
    • elkarte on GitHub
    • https://www.elkarte.net/
Re: Optimus
« Reply #810 on: February 18, 2021, 02:21:19 PM »
Hello,


@Bugo

I'm using Pretty URLs the url on the sitemap page looks  index.php?topic=xxxx  , index.php?board=xx  etc     

Could the sitemap be compatible with Pretty URLs?

Thanks
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,648
  • Gender: Male
    • dragomano on GitHub
    • Support me on Ko-fi
Re: Optimus
« Reply #811 on: February 18, 2021, 11:37:14 PM »
Optimus supports user addons, see addons dir for example.