Jump to content

Ibai

Members
  • Posts

    327
  • Joined

  • Last visited

 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 Ibai

  1. Hi!

    Since a couple of days, I am not able to promote to Twitter. 

    My Twitter Social Promotion was suddenly logged out and I was retrieving:

    array ( 'errors' => array ( 0 => array ( 'code' => 32, 'message' => 'Could not authenticate you.', ), ), )

    Now, after a couple of trials, I managed to unlink Twitter from promotion and re-link back again. Logged in in Twitter with my password and got a successful link.

    However, when I try to promote in twitter, I get the following data returned message:

    array ( 'errors' => array ( 0 => array ( 'message' => 'You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product', 'code' => 453, ), ), )

    I read a bit about this topic and seems that we need to be upgraded to API V2: https://twittercommunity.com/t/yesterday-everything-was-fine-now-you-currently-have-access-to-a-subset-of-twitter-api-v2-endpoints-and-limited-v1-1-endpoints-e-g-media-post-oauth-only/196198

    Any ideas on how to fix this?

     

    Cheers,

    Ibai

  2. Hi,

    Another thing I always change in every template I customize is the size of the reaction icons. This is sth suggested and reported by PageSpeedTest.

    You can find in reactionOverview template bit, for instance:

    <img src='{$reaction->_icon->url}' alt="{lang="reaction_title_{$reaction->id}" escape="true"}" loading="lazy">

    I always change for the folloging

    <img src='{$reaction->_icon->url}' alt="{lang="reaction_title_{$reaction->id}" escape="true"}" loading="lazy" width="28" height="28">

    There is another template bit to change: searchReaction.

    Any chances to have this as standard? Do you think it's a good idea?

    Cheers,

    Ibai

  3. Hi there,

    From the beginning, I always see a tiny glitch when browsing downloads or articles list. When the text of these items is very long, the "$file->truncated()" function seems that is not working very well, and loads the raw text (without HTML tags) and then, the frontend does the truncation.

    What happens is that there is usually a glitch: while all the content is loading, until the "on.load" event, the text loaded is VERY long and eventually, this "onload" is fired and it is truncated.

    In addition, this makes the site to download a very big HTML that afterwards is cut.

    We could optimize this load, using a real truncation function.

    I always change that function to sth like this:

    <div class='ipsType_richText ipsType_break ipsMargin_bottom:half' data-ipsTruncate data-ipsTruncate-type="remove" data-ipsTruncate-size="2 lines">
      {{$num_char_total=strlen($file->truncated());}}
      {{$real_truncated_text=($num_char_total<400)?$file->truncated():substr($file->truncated(),0,strpos($file->truncated(), ' ', min(400,$num_char_total)));//el strpos es un truco para ir por palabras, cogemos la posicion del primer espacio tras 400 caracteres}}
      {$real_truncated_text|raw}
    </div>

    As you can see, I always try to cut the original raw text to 400 chars (avoiding to cut a word in the middle).

    Do you think this would be a good idea to have it as standard?

    Cheers,

    Ibai

  4. Wow... what a work!

    I found in this community another member experiencing same issue... It was Theme related...

    I created a new theme and the website came back... Still, I don't know what happened. I've performed all the changes comparing both templates and I have my website back. Seems the theme became corrupted, because ALL the changes I had in my previous theme are working...

  5. Hi!

    I'm retrieving once and once again 500 error in my community. I don't know what's going on as.. I upgraded this weekend but after that, everything was working fine.

    Suddenly, 500 error is hitting and I don't know how to fix this.

    I see this error:

    Error: Class "IPS\Theme\Cache\class_core_front_global" not found (0)
    #0 /home/fmsite/public_html/system/Theme/Theme.php(951): eval()
    #1 /home/fmsite/public_html/system/Theme/Cache/Template.php(108): IPS\_Theme::overloadHooks()
    #2 /home/fmsite/public_html/system/Theme/Theme.php(802): IPS\Theme\Cache\_Template->exists()
    #3 /home/fmsite/public_html/applications/cms/sources/Theme/Theme.php(584): IPS\_Theme->getTemplate()
    #4 /home/fmsite/public_html/applications/cms/sources/Theme/Theme.php(610) : eval()'d code(1435): IPS\cms\_Theme->getTemplate()
    #5 /home/fmsite/public_html/applications/cms/sources/Records/Records.php(2396): IPS\Theme\class_cms_database_display->comments()
    #6 /home/fmsite/public_html/applications/cms/modules/front/database/record.php(75): IPS\cms\_Records->commentReviews()
    #7 /home/fmsite/public_html/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\database\_record->manage()
    #8 /home/fmsite/public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
    #9 /home/fmsite/public_html/applications/cms/sources/Databases/Dispatcher.php(343): IPS\Content\_Controller->execute()
    #10 /home/fmsite/public_html/applications/cms/widgets/Database.php(128): IPS\cms\Databases\_Dispatcher->run()
    #11 /home/fmsite/public_html/applications/cms/sources/Pages/Page.php(1299): IPS\cms\widgets\_Database->render()
    #12 /home/fmsite/public_html/applications/cms/sources/Pages/Page.php(2279): IPS\cms\Pages\_Page->getWidgets()
    #13 /home/fmsite/public_html/applications/cms/modules/front/pages/page.php(116): IPS\cms\Pages\_Page->output()
    #14 /home/fmsite/public_html/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view()
    #15 /home/fmsite/public_html/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\pages\_page->manage()
    #16 /home/fmsite/public_html/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute()
    #17 /home/fmsite/public_html/system/Dispatcher/Dispatcher.php(153): IPS\cms\modules\front\pages\_page->execute()
    #18 /home/fmsite/public_html/index.php(13): IPS\_Dispatcher->run()
    #19 {main}

    How can a class not being found? Any ideas? How should I fix this?

    Cheers,

    Ibai

    Okay, it seems it's related to my custom skin.

    Anyone can help me to find where the issue is? The template bit or sth?

    Cheers,

    Ibai

  6. Hi there,

    My community was working fine. I just started the upgraded to last version 4.7.8 from 4.7.7 and when the admin redirects to /upgrade I got:

    We were unable to start a PHP session. You will need to contact your host to adjust your PHP configuration before you can continue. The error reported was: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php80)

    What should I do?? Sessions are working fine, what's going on now?

    Could contain: Computer Hardware, Electronics, Hardware, Text

  7. 52 minutes ago, RoHAdmin said:

    This is similar to what we're experiencing.  We don't have anything that converts pages to .webp though.  I've tried multiple themes so I know it's not a problem on that end.

     

    Could contain: Page, Text, File, Person, Webpage, Face, HeadCould contain: File, Webpage, Page, TextCould contain: Logo, File, Text

    Do you have also mod_pagespeed enabled?

    12 hours ago, Adlago said:

    They are probably looking for a balance between cash and reality, ie. any additional, external to the suite, cache creates an issues at some point. For example, I gave up nginx cache server because I got spikes on the first byte over 1.5 seconds and quite often.. Now I use only basic apache and these issues are gone. Also - look for a reasonable sidebar cache time - I use 2 hours, after much experimentation... Etc.

    I also tried nginx.

    Now I'm trying cloudflare. From now, I haven't experienced any issue with cloudflare.

  8. 8 minutes ago, Jim M said:

    Looks like you are losing CSS issues here. The software will write the CSS to file when the cache is cleared. If you're seeing this going missing or inaccessible items on your file system, you will need to work with your hosting provider for assistance.

    Seems it has sth related with Apache mod_pagespeed.

    Maybe IPS is not compatible with this apache module?

  9. Hi there,

    For the last days I'm experiencing caching issues. I haven't changed anything... and suddenly... I don't understand.

    If I clear the cache from Support page in Admin CP, it comes back to normal.

    After several hours, the frontend starts to break. First I see as if mobile design was being load in my desktop and eventually all CSS disappears.

    I can see lot's of 404 errors. It's as if the cached content disappears or becomes corrupt.

    A couple of examples:

    When it starts failing loading mobile view in desktop

    Could contain: Person, People, File, Text

     

    Afterwards, when everything is broken.

     

    Could contain: File, Webpage, Car, Transportation, Vehicle, Page, Text, Machine, Wheel

    However, if I go to admin CP everything is okay and I'm able to clear cache.

    I didn't change any settings. In fact as I thought it could be related to redis, I enabled MySQL cache. But... same result after several hours.

    Any idea of what is happening here?

    Cheers,

    Ibai

  10. Hi there,

    I don't let my users uploading any attachment anywhere. However, I use Pages as an Articles/Blog database and I'd like my users be able to create very rich texts with images. 

    I'd like to be able to override the attachment rights from Pages databases in order to let my users upload attachments and images to their rich contents.

    Any chance to make this available?

    Cheers,

    Ibai

  11. 3 hours ago, Richard Arch said:

    Can you use an international format to display dates?

    This looks like 2nd of February to me and others this side of the Atlantic ocean.  Using a format like 2022/11/02 or 02 November 2022 would make the whole site easier to read.

    Could contain: Page, Text

    This just looks like an old update to me 🙂

     

    I never understood who the hell designed that date format, it makes no sense at all!

  12. On 10/24/2022 at 10:14 PM, Randy Calvert said:

    In 4.7.4, guest page caching is being removed.

     

     

    How does this work? Should I integrate with Cloudflare and try to cache when there's no cookie set?

    Anyhow, this keeps my issue. How do you work with views? Cache brakes the increase of hits so the views number is not sharp...

  13. Hi there!

    I see that whenever I increase the caching time method, it obviously misses lots of views=views++;

    It make sense, for the sake of the optimization and performance.

    However, is there a way to just leave and execute this kind of update queries? I have lots of Guests and I try to cache the most I can. Then, I see that my articles, files, topics hits are very low comparing with what Google Analytics then reports.

    This set up then reflects in confidence from my visitors. They might think that my content is not good enough or even the content that they post is not being read as much as they see.

    Is there any way to "change" this behavior? What's your opinion?

    Cheers,

    Ibai

  14. Hi there,

    I'm experiencing again Error communicating with origin.

    What drove me to think... How did you performed Ezoic's integration? Changing your DNS nameservers or via Cloudflare?

    I changed my dns nameservers but I'm thinking of moving to Cloudflare and perform there the integration.

    Any suggestions, opinions, or sth from your side? Is Cloudflare free plan enough?

    Thanks guys!

×
×
  • Create New...