Per Jensen

Send private message

You must be logged in to send a private message.

Group membership

Activity

  • Per Jensen commented on the plugin Elgg Connect
    No, the theme conflicts with custom_index. So if you want to use Elgg Connect, you cannot enable custom_index - custom_index is included in the Elgg package, it's named Front Page Demo in the plugin list.
  • Per Jensen replied on the discussion topic hypeScraper fatal error
    Made me happy to, thanks a lot :-) view reply
  • Per Jensen added a new discussion topic hypeScraper fatal error in the group Elgg Technical Support
    When I click edit on a scraper-card to select another image, and then click save, I get the error: An exception occurred while executing 'INSERT INTO elgg_latest_scraper_data (url, hash, data) VALUES(?, ?,...
    • Changing the ScraperService.php of this part:

      $qb = Insert::intoTable('scraper_data');
      $qb->setValue('url', $qb->param($url, ELGG_VALUE_STRING))
      ->setValue('hash', $qb->param(sha1($url), ELGG_VALUE_STRING))
      ->setValue('data', $qb->param(serialize($data)));
      
      $result = $this->db->insertData($qb);
       
      On this:
      $dbprefix = elgg_get_config('dbprefix');
      $query = "
      INSERT INTO {$dbprefix}scraper_data
      SET url = :url,
          hash = :hash,
          data = :data
      ON DUPLICATE KEY UPDATE
          data = :data
      ";
      
      $result = $this->db->insertData($query, [
         ':url' => (string) $url,
         ':data' => serialize($data),
         ':hash' => sha1($url),
      ]);
      Made me happy ;)
       
    • Made me happy to, thanks a lot :-)

  • Per Jensen commented on the blog Elgg 3.2 released
    No, it just seems a bit sloppy that the "Run upgrades now" button is there.
  • Per Jensen commented on the blog Elgg 3.2 released
    Upgraded from 3.1.2 to 3.2.0 on localhost. After running upgrade, I get this message in admin panel; The site has pending upgrades that require your immediate attention. View pending upgrades. Clicking "Run upgrades now", does...