Jump to content

teraßyte

Clients
  • Joined

Everything posted by teraßyte

  1. This is a guide on how to create a simple application for v4: https://invisioncommunity.com/developers/docs/development/applications/creating-a-simple-hello-world-application-r184/ Applications for v5 are slightly different compared to v4 (no more underscores for class names and hooks were removed), but what you can read there is 95% of what you need to know.
  2. Unfortunately, that's correct. Using an empty custom wrapper is not an option because the code checks specifically that the template contains at least the $html and $title variables. Without them, the wrapper is not even listed as a choice. 🤷‍♂️ I've been using pages without a wrapper for other custom things (like update checks for my apps), but the ads.txt page is something that IPS actively suggests to clients on the Cloud. I wonder what's their solution for that. Let me tag @Matt and @Esther E. to see what solution they have for it. 👀 Official guide for ads.txt:
  3. That's... kind of a problem. As mentioned above, only PHP 8.0 and 8.1 are supported by version 4.7. Rather, I'm surprised you didn't notice issues before using 4.7.19 with PHP 8.3. 👀
  4. @kalin PHP 8.3.16 is definitely a problem. Try downgrading to PHP 8.1 and see if the upgrade works. PHP 8.2+ is only supported by the new 5.0.0 version currently in beta.
  5. I had a tab open for a while in my browser. I thought it still had no replies, but after I submitted my reply, 5 more replies appeared out of nowhere: On v4 I used to get a notification at the bottom "X new replies Show Replies". It's broken on v5 and I never get anything.
  6. I thought of making a modification for custom PHP blocks to keep my current pages working, but IPS also removed support for pages without wrappers (the page editor wouldn't work). Given that, I'll have to make my own custom application anyway to output the content I need. If there are enough requests I can consider making it, though. 🤔
  7. Unfortunately, IPS provides only the latest version for download. You must have a copy of the 4.7.19 ZIP file somewhere (or retrieve a copy of the files from a backup). Still, it's strange that the upgrade page redirects you to the admin login page instead. I've never seen it happen before. 🤔 Just to clarify, what PHP version are you using? I don't see it mentioned in the topic, but I know using PHP 8.2.0+ can cause strange issues.
  8. Really wish you could fix the notifications bug before the final release. It's a pretty annoying one. 🙄
  9. Go manually to domain.com/admin/upgrade. You should get a login screen there.
  10. I've already reported it as a bug a few times, but the checker script was never updated. It only checks for PHP 8.0+, it never throws an error for PHP 8.2+, which is what causes issues. 🤷‍♂️
  11. I completely missed the PHP version in the title when I replied before: Version 4.7 does NOT support PHP 8.2.0+. You can only use PHP 8.0 or 8.1. Try also downgrading the PHP version.
  12. That looks like some files didn't upload properly. 🤔 To avoid issues like this I usually upload a ZIP/TAR file with all files at once and then decompress it from cPanel's file manager directly on the server. Uploading files 1-by-1 sometimes has problems with certain files not being uploaded correctly. Using the single compressed file + decompress helps avoid that.
  13. The table also contains 2 columns for the same start date: mt_date mt_start_time Since the value is the same for all rows, one should be dropped to cut down on (useless) duplicate data.
  14. As per the title, the core_message_topics table contains two unused columns: mt_is_draft and mt_hasattach. They aren't used anywhere as far as I can tell. It must be a legacy column back from 2.x where we could save PM drafts before sending them.
  15. It's a server configuration issue: MySQL server has gone away Increase the MySQL timeout for your XAMPP installation.
  16. As per title. When you post content that includes a code box set to use the Invision HTML Template language, the syntax highlighting works in the editor but shows nothing after it's posted. I noticed the issue after editing a post with this code box in the content: {{if \IPS\Dispatcher::checkLocation( 'front', 'cms', 'pages', 'page' ) AND \IPS\Request::i()->pagename == 'PAGE_NAME' }} <!-- YOUR CODE HERE --> {{endif}}
  17. Simply remove your translated string for menutab__community_icon. That will restore the correct icon name/string.
  18. @Matt Finger Unfortunately, while there was a slight improvement, the lag is still huge most of the time. Typing long messages in the editor gets rather frustrating. Still, I noticed something else that might help: the lag varies depending on the page. For example, the editor is rather fast when posting a new comment in this bug report, however, when I try to post a reply on a topic with lots of replies, or a personal message with 20+ replies, the editor lags a lot more. I think the content on the page directly impacts the amount of lag. The more content there is, the more it lags. In this bug report, with only 6 comments, and no sidebar (except for a small text block), the lag is basically non-existent if I type normally. It still lags behind a bit if I type random characters fast, though.
  19. Disable the permission for guests to use the Search module in ACP of the System application: EDIT: Looks like I had the tab open for a few minutes, but I never got the usual notification that there were new replies and the link to load them. It might be a v5 bug. 🤔
  20. I usually upload a ZIP/TAR file and then decompress it through SSH or a control panel. It's the fastest option instead of uploading all files 1-by-1 through FTP. 😋
  21. You can use this modification to remove the Pages entry from the search menu: https://www.sosinvision.com.br/index.php?/file/302-remove-pages-from-search/
  22. It looks like your WordPress plugin adds a function with the same name. As a temporary workaround, instead of renaming init.php, comment/remove this code at the bottom of the file: /* Custom mb_ucfirst() function - eval'd so we can put into global namespace */ eval( ' function mb_ucfirst() { $text = \func_get_arg( 0 ); return mb_strtoupper( mb_substr( $text, 0, 1 ) ) . mb_substr( $text, 1 ); } '); Otherwise, editing the code to this should work, too: /* Custom mb_ucfirst() function - eval'd so we can put into global namespace */ if ( !\function_exists('mb_ucfirst') ) { eval( ' function mb_ucfirst() { $text = \func_get_arg( 0 ); return mb_strtoupper( mb_substr( $text, 0, 1 ) ) . mb_substr( $text, 1 ); } '); } IPS can implement a fix to check if the function exists before running the eval() code. This function is included with PHP 8.4.0+, so it can be removed then. However, since v4 doesn't support PHP 8.2.+, we'll eventually get there with v5.0.0.
  23. Some of those icons are a language string. You most likely translated them, and the code cannot find a FontAwesome icon with a Croatian name. 😅
  24. Your payload is wrong. The API does not accept JSON payloads for POST requests: