Jump to content

The Old Man

Clients
  • Posts

    3,958
  • Joined

  • Last visited

  • Days Won

    11

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by The Old Man

  1. When I manually create a test article from scratch without adding a record image, it doesn’t use the fallback image configured in the Supergrid plugin settings.

    Could contain: File, Person, Text, Face, Head, Webpage

    I do have Use fallback image, fallback image url and hero image set but it only shows the fallback image in the category listings view, not the actual record view, so I presume it’s the same cause no matter whether the article was imported or created manually.

    Could contain: File, Webpage, Person, Text

    Could contain: File, Text, Webpage

     

  2. Reference this post:

     


    When importing an RSS feed that has images and selecting a Pages Database as the destination (which has a record image field), the record image field doesn’t get set. Therefore, please could you add an additional option near to the image handling choice on step 3 of the wizard:

    Could contain: Text, Page
     

    Could contain: Text

    so that the resulting article in the Pages Database will use the first image from the imported RSS entry as the record image?

    An option to set a fallback image would be equally useful.

  3. Hi Rolf,

    I was wondering if you know of a way to set a record image when importing from an RSS Feed into Pages? The RSS type of feed I’m using is just the one exported by IPS Blog.

    At the moment I am using Import (as attachments).

    Could contain: Text, Page

     

    In Pages > Database > Fields the Record Image is enabled.

    Could contain: Text
     

    I have Supergrid set up with a fallback image (the pattern texture) and that gets used in the listing template automatically…

    Could contain: File, Webpage

     

    but although images import fine into the post article content, no featured record image is used such as the first image found in the content.
     

     

  4. Yeah, that was basically was Matt was saying earlier in this topic and it does indeed eventually clear by itself on an ongoing basis. I think people (like me!) are just used instant results. Agreed you can just restart it, if you server isn’t heavily loaded and you’d not see (or want avoid) impact on other pool users which may be considerations.

    On a similar note it’s useful to also bear in mind, the Redis memory usage indicator can be a bit misrepresentative. It’s a system wide value, so if you have other uses (like Wordpress sites or even other IPS sites) using the same instance, you’d see the same (total) memory stat showing in different sites and communities, unlike the counts for cached topics, ads etc which are unique stats.

    I’ve found with Wordpress Redis plugins they tend to let you use the built-in Redis database ID number to ‘virtually’ separate your caches which may be useful if sharing the same instance/pool across sites as it offers a bit more subtle control and more independent stats.

    It would be great if IPS4 was updated to support the newer ACL User Name and Passwords format that was introduced in Redis 6 and retained in Redis 7. I’m a little surprised the big enterprise accounts we hear about haven’t pushed for that in terms of PCI security compliance.

  5. The log entry was triggered by a guest (Guests)
    
    The URL of page the error occurred on was Not available
    
    IPS\Db\Exception::2002
    Tue, 24 Jan 2023 08:06:03 +0000
    IPS\Db\Exception::2002
    Cannot assign requested address
    #0 /home/mysite/public_html/content/system/Db/Db.php(356): IPS\_Db->_establishConnection(false)
    #1 /home/mysite/public_html/content/system/Db/Db.php(487): IPS\_Db->checkConnection(false)
    #2 /home/mysite/public_html/content/system/Db/Select.php(388): IPS\_Db->preparedQuery('SELECT * FROM `...', Array, false)
    #3 /home/mysite/public_html/content/system/Db/Select.php(446): IPS\Db\_Select->runQuery()
    #4 /home/mysite/public_html/content/system/Task/Task.php(202): IPS\Db\_Select->rewind()
    #5 /home/mysite/public_html/content/applications/core/interface/task/task.php(70): IPS\_Task::queued()
    #6 {main}

     

    I keep seeing these errors in my system log, any idea what causes it? It doesn’t say what the query is. Sometimes days apart, going back several months. I have only Gallery 4.7.7 installed on this one.

    Thank you!

  6. I did a search in the AdminCP in 4.7.7 and it didn't find anything. It isn't in the Integrations page and a plug-in search on CKEditor produced no results. Do we just install the browser add-on/extension?

  7. This may be related to me having recently removed my Twitter account and hence intergration within my community but anyway...

    Nav to AdminCP > Site Promotion > Sharing > Twitter. Click on Edit, make no changes but Save and it throws an error:

    A configuration or server error has occurred
    EX0 Something went wrong. Please try again. 

    Technical details:

    TypeError: get_class(): Argument #1 ($object) must be of type object, array given (0)
    #0 /home/mysite/public_html/community/system/Node/Controller.php(420): IPS\core\ShareLinks\_Service->formatFormValues(Array)
    #1 /home/mysite/public_html/community/system/Dispatcher/Controller.php(107): IPS\Node\_Controller->form()
    #2 /home/mysite/public_html/community/system/Node/Controller.php(69): IPS\Dispatcher\_Controller->execute()
    #3 /home/mysite/public_html/community/applications/core/modules/admin/promotion/sharelinks.php(86): IPS\Node\_Controller->execute()
    #4 /home/mysite/public_html/community/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\promotion\_sharelinks->execute()
    #5 /home/mysite/public_html/community/admin/index.php(13): IPS\_Dispatcher->run()
    #6 {main}

    😔

  8. On 2/4/2023 at 2:34 PM, Charles said:

    Of course we are putting effort into our cloud offerings as that part of our business is growing and self-hosted is declining. That's been the trend for about 10 years now.

    I've got nothing against the cloud offering, personally its not for me due to the other reasons already mentioned, cost, sluggish speed, other uses etc.

    We self-hosters have just got a nice Gallery update as well, it wasn't restricted to Cloud.

    Just saying though, that if I sold apples for 10 years and then introduced a second product line oranges, ten years later I would expect to see sales of apples decline and sale of oranges grow. 

     

    PS. Don't forget the devtools for 4.7.7 please!

  9. There are two logins, so I believe that’s why there are 2 session cookies. You can be logged into just the AdminCP without being logged into the front end as a Member, or be logged into both.

    From what I’ve read in the past, session cookies where originally supposed to last just the duration of a session, but a few years back the Google devs decided to retain them after the session ends so that you could reopen existing tabs/sessions (a new feature). I’ve seen bug reports for Chrome and Firefox covering this and hence they were marked as intentional.

    I think there is a browser setting at least in Firefox, on whether to enable or disable this feature I’ll have another look tomorrow.

    I think this is something just to bear in mind if you are testing a page caching setup, it only effects Admins, but it explains why after I re-enabled the guest page caching that I was seeing dynamic despite the cache control header also being present.

    2 hours ago, marklcfc said:

    So I'll just keep it as it is (without that admin session id) with 30 seconds set in the constants file

    Yeah, probably easier than using a Transform Rule but that works too. I use one for the non-IPS parts of a site with 1000’s of pages.

  10. Sorry @marklcfc I missed your post. I had to disable the guest cache on my main sites because I have more than 1 theme available, but am using it on others. I had to refresh my memory but yes I agree, the cache value is a constant, meaning it shouldn't change by design and overides any existing previous value.

    As they mentioned, IPS sets it (in the .init file) as 900 secs/15 mins, so having this line in the constants.php file acts as an overide. The issue we had, was that that this overide line was there but we didn't know about it and it was set to 0, so nothing was being cached by Cloudflare even though we had set up the suggested Rules (we also had them set to respect the origin's TTL setting and not overide it but remember it was 0 for some reason). After removing it completely it would have the effect of letting IPS' init 900 seconds prevail.

    So you can indeed set the constant to cache for just 30 seconds if you prefer and Cloudflare allow it that low, personally I think there's no harm in at least a couple of minutes, it would take up to a further 3x-4x the max page load off your server and people sort of know a forum isn't a live instant chat per se. If guests sign in they get to see the latest posts instantly and you get new members. Its win/win.

    I know though 15 mins might be too long for a live footie match discussion site, but as the others said, you have to accept a compromise, switch to Chatbox or similar, or get it working with revalidation/stale content headers.

    I noticed that CF have added a section to the Caching Rules where you can optionally overide TTL based on status codes received from the origin server, which could be useful.

     

  11. Hi IPS,

    I've been looking at the RSS Feeds (with the aim of importing Blogs into Pages) and I noticed there are variations in the formatting of the feeds created from various places in the suite. Is there any particular reasoning behind this? I see it here on your offical site, so I'm assuming its by design or something to do with extracts vs full content.

    For example, if I click on your RSS icon at the bottom of the page, select Invision Community News, the feed contains no HTML, its been stripped and no optional GUIDs. Any images are missing except for the feature image which is in an enclosure, they are valid but more like XML than RSS:

    https://invisioncommunity.com/rss/1-invision-community-news.xml

    If I look at an Activity Stream feed, its the same structure. There is no HTML formatting, just solid chunks of text.

    https://invisioncommunity.com/discover/all.xml/

    However from a real Blog feed, the HTML formatting and images are present within the actual entry, there are GUIDs and items contain no enclosures:

    <item>
    <title>A Realization...</title>
    <link>
    https://example.com/blogs/entry/455-a-realization/
    </link>
    <description>
    <p>I watched a DVD of the movie "Seabiscut" tonight.... </p><p> Words cannot express what learning things I never knew about one of the greatest racehorses who ever lived and his jocky did to me.</p><p> </p><p> This horse was manipulated by his first owner and forced to be a looser, because they did not like his attitude, and wanted to use him to teach others to win. He was held back for the first few years of his life. </p><p> </p><p> His rider was a guy who'd gotten the short end of the stick his whole life, since this was during the time of the stock market crash. Also, according to the movie, he had lost the sight in one of his eyes, due to a head injury he got while boxing to try to make a little money. The two came together, battered, broken, angry....and healed each other. They began to win....</p>
    </description>
    <guid isPermaLink="false">455</guid>
    <pubDate>Thu, 26 Apr 2007 09:43:00 +0100</pubDate>
    </item>

     

    From my particular goal, the problem is that none of the options include any tags from the original Blog entry, and the comments/replies are only available if you create a custom activity stream RSS feed, but then it makes the comments into individual entries and of course, the original formatting is lost.

×
×
  • Create New...