Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,736 topics in this forum
-
RuntimeException thrown with message "You are missing protected static $instance=null; property in your class IPS\core\DataLayer" Stacktrace: #10 RuntimeException in /opt/homebrew/var/www/dev/init.php:920 #9 IPS\Patterns\toolbox_hook_Singleton:__construct in /opt/homebrew/var/www/dev/applications/core/sources/DataLayer/DataLayer.php:561 #8 IPS\core\_DataLayer:i in /opt/homebrew/var/www/dev/system/Output/Output.php:815 #7 IPS\_Output:sendOutput in /opt/homebrew/var/www/dev/init.php:920 #6 IPS\toolbox_hook_Output:sendOutput in /opt/homebrew/var/www/dev/system/Output/Output.php:1182 #5 IPS\_Output:redirect in /opt/homebrew/var/www/dev/applications/core/modules/admin/support…
Last reply by Stuart Silvester, -
Data from core_follow_count_cache table are left behind when you uninstall an app: Sso if the admin decided to reuse the app, all the counts from follows will be there in the view but no one follows it when you click: Thank you.
Last reply by Stuart Silvester, -
- 1 reply
- 1k views
The release notes says it is compatible but I got some errors. - When I try to go to Support page ( http://localhost/47X/admin/?app=core&module=support&controller=support&_new=1 ): - When I try to build an app: Should I wait for 4.7.0 final to use it in development mode? Thanks. -- EDIT: Fresh 4.7.0 Beta 7 install; no 3rd-party.
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 504 views
datalayer_event_formatted_name_desc - incorrect <span> datalayer_handler_body_code_desc - typo Manger datalayer_handler_head_code_desc - typo Manger
Last reply by Daniel F, -
- 1 follower
- 1 reply
- 440 views
I got the following error when I click in Manage Points: This app was installed to test it in 4.6 and then uninstalled: Thank you.
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 319 views
I got the following error when I click in Manage: This app was installed to test it on 4.7 and then uninstalled: So I checked the achievementRules data store file and didn't find any mention to this app there but found another app that was also installed/uninstalled to test: Thank you.
Last reply by Stuart Silvester, -
- 2 replies
- 649 views
There are some internal JS files I need to overwrite. But I can't directly override them since I suspect changes will be lost during an upgrade. So how do I override them? Is their a way to hook into them?
Last reply by VarunAgw, -
- 1 follower
- 1 reply
- 594 views
applications\core\modules\admin\membersettings\reputation.php line 369 catch ( \UnderflowExceptiobn $e ) { }
Last reply by Stuart Silvester, -
- 5 followers
- 15 replies
- 4.1k views
4.5 introduces some changes to CSS, so I wanted to provide an overview of those and how they might affect you. IE11 Firstly, we've completely dropped support for IE11. This means you'll start to see newer CSS methods being used that IE11 does not support. Atomic classnames One thing you'll notice as you read on is we're moving towards using atomic classnames for utility styles. What does that mean? Basically, each classname is just a convenience helper for applying one particular style. You build how an element looks and behaves by applying multiple classnames. While this is slightly more verbose in the HTML, it's also much clearer…
Last reply by PatrickRQ, -
- 1 follower
- 12 replies
- 927 views
Hello, Can someone please tell me what is wrong with the following query? It is about a mod that I submitted, but I heard that it is a nightmare... duplicate data logging, really bad queries because of the missing limits and because the table is literally never truncated. But unfortunately no details were provided as to what part is horrible, what limit etc. What I am trying to do is query a custom table and get the duplicate entries. I have made a join with the members table to get the quick search working. Any input/advice is greatly appreciated. $arrayCheck = array(); foreach( \IPS\Db::i()->select( 'customtable_log.device, MAX(customtable_…
Last reply by Miss_B, -
- 1 follower
- 7 replies
- 844 views
Hi im currently having difficulty getting a jquery object to function and the console keeps throwing Uncaught ReferenceError: $ is not defined when doing this inside a custom PHP block var table = $("#anscestryMainContainer").tableSortable(options); how do i go about fixing this
Last reply by Martin A., -
- 2 followers
- 1 reply
- 761 views
Hello, i have an issue, when i open rss feed all.xml with browser, it shows the last data, but when i use requests.get - data is updating with random delay (10-20 minutes), what can be a problem?
Last reply by Stuart Silvester, -
-
- 1 follower
- 2 replies
- 888 views
I was trying the function import member list from CSV file (downloaded from a community for testing). On First row is header, I leave the option selected How come even though I said the first row is the header, he takes the whole header as a single column? I attach the CSV file that IP.Board has generated for me. Utenti(2).csv
Last reply by Stuart Silvester, -
-
Install the attached on IPS 4.6.12.1, edit the settings and set both fields to unlimited, and save away - works fine. Do the same on 4.7.0 Beta 1: Number field in 4.7.0 Beta 1 doesn't appear to like the use of the non-numeric value (*) in the 'unlimited' parameter anymore. Is this an intentional change? Number field 1.0.0.xml
Last reply by Nathan Explosion, -
- 2 followers
- 2 replies
- 1k views
Hi is there a function or developer docs where I can check or read on how to display member profile fields? I want to display or show certain profile fields in frontend in template. Thanks - Allan of Nigel's Team
Last reply by Nigel Moore, -
- 1 follower
- 1 reply
- 626 views
if you use ips.ui.dialog.create() to create the dialog programmatically, then desctructOnClose doesn't completely remove the dialog once it is closed, as it is expecting an element, cause the internal hide() method calls the object if( options.destructOnClose ){ ips.ui.dialog.destruct(elem); } since there is no element when using ips.ui.dialog.create(), there is nothing for ips.ui.dialog.destruct() to do, so parts of the dialog window remains in the DOM.
Last reply by Stuart Silvester, -
Noticed it completely by chance while I was looking at the email templates for something else. Run a quick search in the folder \applications\core\dev\email for this string: $email->language->addToStack( 'guest_name_shown', NULL, array( It returns 10 results. While NULL as the second parameter for the $vle variable still works just fine the value is supposed to be FALSE (boolean). Most likely a copy/paste error when support for the guest_name_shown language string was added in the email templates since it's only those addToStack() calls that use NULL. 😋
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 627 views
The code below is from the template applications/core/dev/html/global/global/poll.phtml (lines 60-90): {{if $poll->canVote() || !member.member_id || $poll->canClose() || ( ( $poll->poll_close_date instanceof \IPS\DateTime ) and !$poll->poll_closed ) || ( ( $poll->poll_close_date instanceof \IPS\DateTime ) and $poll->poll_closed )}} <hr class='ipsHr'> {{if $poll->poll_closed}} <p class="ipsType_reset ipsType_medium ipsType_unbold ipsMargin_vertical:half"> <i class='fa fa-lock'></i> {lang="poll_closed_for_votes"} </p> {{endif}} <ul class='ipsToolList ipsToolList_horizontal ipsClearfi…
Last reply by Stuart Silvester, -
- 2 followers
- 1 reply
- 610 views
Spotted the following in the system logs after upgrading my test site: Just run through the same on localhost and this is core_statistics before the upgrade: Post-upgrade, same errors in the system logs:
Last reply by Matt, -
- 1 follower
- 1 reply
- 810 views
Yesterday on my Invision Community installation I went about renaming 'Clubs' on my installation to 'Activities'. I changed the friendly URL and used the Quick Translating tool to change all the text to reflect the change. This morning I noticed that something about me doing that upset the REST API. EG. GET https://mywebsite.com/api/core/members/3/notifications?key=######################&page=1 Brings back a 500 Internal Error { "errorCode": "EX0", "errorMessage": "UNKNOWN_ERROR" } From the System Logs, I see the following UnderflowException::0 lang_not_exists__core_pfield_6 BACKTRACE #0 /var/www/html/efs-mount-point/system/Member/C…
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 398 views
When I click in the number of members of a badge: I got: It is trying to load rule that I've already deleted. I even already uninstalled the app shown in the error. There is no record in core_achievements_rules for this app anymore so it should be some cache or something.
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 591 views
When clicking the Follow Member button in a profile the following message appears if you haven't chosen any notification option: In this situation the Notification Settings link wrongly points to https://invisioncommunity.com/forums/notifications/options/?type=follower_content Once you select one or more options and reload the modal popup the link in the new language strings (Change how the notification is sent) points correctly to https://invisioncommunity.com/notifications/options/?type=core_Content Just a matter of updating the wrong type value for the first popup link. 😋
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 309 views
The email template \applications\core\dev\email\unsubscribeStream.txt contains a broken link: <ips:template parameters="$streamId, $streamTitle, $key, $member, $email" /> {$email->language->addToStack("unsubscribe_blurb_stream", FALSE, array( 'sprintf' => array( $streamTitle )))} {$email->language->addToStack("unsubscribe_blurb", FALSE)} {$email->language->addToStack( 'unsubscribe', FALSE )}: {url="app=core&module=discover&controller=streams&do=unsubscribeFromEmail&id={$streamId}&gkey={$key} The unsubscribe link on the last line is missing a double quote, the base parameter and the closing parenthesis: {url="a…
Last reply by Stuart Silvester, -
- 2 followers
- 1 reply
- 686 views
Hi IPS, Bad CSS selector? Inside Default IPS Theme > CSS Templates > Blog > Front > blog.css Line 184 Just before the opening curly brace there's an s html[dir="rtl"] .cBlogCatManage .ipsDataItem_size3 a[data-action="edit"]s { margin-left:5px; } Regards, Graham
Last reply by Stuart Silvester, -
- 1 follower
- 2 replies
- 1k views
Theme variables like {fontsize="medium"} {theme="headline_font"} ... are not supported in Pages CSS. Is it an oversight or just not supported?
Last reply by Stuart Silvester,