All Site Activity

  • Dave ONchE released a new version of the plugin elggBook
  • Hermand Pessek replied on the discussion topic Third-party Javascript
    Thanks a lot view reply
  • Ismayil Khayredinov replied on the discussion topic Third-party Javascript
    If you are using more than one JS file, you should be using AMD, as it will ensure that no one script runs before its dependencies are loaded. If the external file is an exportable AMD module, you should register it: // Register the script... view reply
  • Hermand Pessek added a new discussion topic Third-party Javascript in the group Beginning Developers
    Hi everyone. I hope you had a good weekend. I want to know how to use a third-party javascript in elgg. I am building module, and I am using more than one js file for my module. How to integrate such external js file in elgg ?? Could...
    • If you are using more than one JS file, you should be using AMD, as it will ensure that no one script runs before its dependencies are loaded.

      If the external file is an exportable AMD module, you should register it:

      // Register the script for synchronous loading in your start.php
      elgg_register_js('external_script_name', $external_url);
      
      // Load the script where you need it
      elgg_load_js('external_script_name');
      

      Most scripts these days come as AMD module, e.g. moment.js, so you can register them and require them in your script:

      // Define the module
      elgg_define_js('moment', [
         'src' => $cdn_url,
         'exports' => 'moment',
      ]);
      
      // In your AMD module
      define(function(require) {
         var moment = require('moment');
         var $ = require('jquery');
      });
      

      You shouldn't need to know the location of jQuery. If you do, then you are doing something wrong.

  • iionly replied on the discussion topic All images are not displaying - New Install
    What kind of images are you referring to, i.e. are profile images also not displayed or is it only a problem with images uploaded for example with the bundled Files plugin or with the Tidpyics plugin? The problem could be that the creation of the... view reply
  • Cameron White added a new discussion topic All images are not displaying - New Install in the group Beginning Developers
    I have been slowly working through all of the errors for the last 3 months. I am new to server management but have worked through most of the issues until now and haven't found any help on the forums that can help me get past this...
    • I don't think the 700 permissions are the reason the images are not shown. The data directory contains the files uploaded by the users and the files in the data directory are written by Apache (and need to be readable by Apache). Apache saves them with 700 permissions and then can also read them again when they are needed.

      Any wrong permissions of content in the data directory would also not explain why static images of the theme are not showing up (and apparently only image type files have a problem?) as they are not within the data directory. Have you tried the change in the Apache config I suggested? Even if this doesn't work there might be something else wrong with the Apache setup (difficult for us to guess as it seems an unusual issue not happening under normal circumstances with the images being displayed for us apparently).

    • I took a look at the httpd.conf which is the apache config on my setup and it was defaulting to EnableSendFile Off. I went ahead and added the line anyway and it did not change. So it looks like that is not the issue.

      I opened up the PHP error log and I am seeing this which it looks like it might be related. It is not very specific though and googling the errors does not bring up much so I am not sure where to go next: 

       

      [Sat Jun 24 15:48:16.209204 2017] [mpm_prefork:notice] [pid 28314] AH00169: caught SIGTERM, shutting down
      [Sat Jun 24 15:48:16.396069 2017] [suexec:notice] [pid 11552] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
      [Sat Jun 24 15:48:16.420119 2017] [auth_digest:notice] [pid 11553] AH01757: generating secret for digest authentication ...
      [Sat Jun 24 15:48:16.420685 2017] [lbmethod_heartbeat:notice] [pid 11553] AH02282: No slotmem from mod_heartmonitor
      [Sat Jun 24 15:48:16.484679 2017] [mpm_prefork:notice] [pid 11553] AH00163: Apache/2.4.25 (Amazon) PHP/5.6.30 configured -- resuming normal operations
      [Sat Jun 24 15:48:16.484701 2017] [core:notice] [pid 11553] AH00094: Command line: '/usr/sbin/httpd'
      [Sat Jun 24 15:48:23.091704 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Unable to resolve resource URL for a file that does not exist on filestore, referer: http://elgg.diaryearth.com/
      [Sat Jun 24 15:48:23.092802 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Type-subtype 'object:bookmarks' does not exist!, referer: http://elgg.diaryearth.com/
      [Sat Jun 24 15:48:23.099257 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Unable to resolve resource URL for a file that does not exist on filestore, referer: http://elgg.diaryearth.com/
      [Sat Jun 24 15:48:23.102813 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Unable to resolve resource URL for a file that does not exist on filestore, referer: http://elgg.diaryearth.com/
      [Sat Jun 24 15:48:23.106354 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Unable to resolve resource URL for a file that does not exist on filestore, referer: http://elgg.diaryearth.com/
      [Sat Jun 24 15:48:23.109799 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Unable to resolve resource URL for a file that does not exist on filestore, referer: http://elgg.diaryearth.com/
      [Sat Jun 24 15:48:23.117125 2017] [:error] [pid 11556] [client 172.7.153.195:52351] NOTICE: Unable to resolve resource URL for a file that does not exist on filestore, referer: http://elgg.diaryearth.com/

       

    • I don't know if these messages are connected with the problem of the images not showing up. They are not errors but only warnings.

      I think "Type-subtype 'object:bookmarks' does not exist!," is caused by the Bookmarks plugin being disabled while a bookmark entry exists and Elgg tries to display it (maybe on the activity page or in the stats page/widget in the admin section).

      I'm not sure why the resource url notices show up as the info about what kind of resource is to be handled is missing. Maybe it refers to some image files indeed but I don't know why they are not to be found.

      The Apache config change was a likely possibility as you said that static images (any image) is missing. A pity that it wasn't the solution.

      Have you tested if it makes any difference when you disable ALL caching options on the advanced site settings page of Elgg? Or if it helps to overwrite the Elgg install files with the complete Elgg zip archive content in case any core files are missing or are damaged for some reason?

  • The uploader of a video at youtube can prevent the video from getting embedded on other sites. Also, copyright holders (e.g. of background music) can block embedding without the uploader being able to do anything. Apart from a complete blocking the... view reply
  • I tried a few different youtube videos and they work so is it possible that some youtube videos can't be shared? view reply
  • Dave ONchE released a new version of the plugin elggBook
  • The plugin stopped working for youtube again. It was working last night and I linked to 3 videos which all work but this morning I have been trying to link to a youtube video and it won't work. It works for vimeo. For a while it has just... view reply
  • chelovek has a new avatar
    chelovek
  • Dave ONchE released a new version of the plugin elggBook
  • Tom replied on the discussion topic New Here! Cannot customize login page for my webpage,
    Try Facebook home page plugin https://elgg.org/plugins/2519898 view reply
  • natekhchan has a new avatar
    natekhchan
  • Hi all, My name is Nathan.  I'm new here. My social networking site is bookoflives.net I want to customize the login page to be more exciting.  Perhaps, add an introduction to there, and then add custom CSS. How can I do...
  • RvR added a new discussion topic Elgg on Telegram in the group Feedback and Planning
    Join to just created channel https://t.me/elggnews Any ideas and thoughts are welcome :)
  • Ismayil Khayredinov replied on the discussion topic Save user Icon from URL
    $tmp = new ElggFile(); $tmp->owner_guid =... view reply
  • Rohit Gupta replied on the discussion topic Loading Page using iframe (Elgg 2.3.3)
    Thanks RvR for the link. The problem was in my js file. Solved! view reply
  • Rohit Gupta replied on the discussion topic Loading Page using iframe (Elgg 2.3.3)
    I cannot use elgg_view because the js file in online_cv.php is not getting properly loaded. The page work fine if i open it directly but as soon as i use elgg_view the js are throwing lots of error as I can seen them in browser console. view reply