Hello all,
I am in the process of moving Elgg 1.8 to a new server, I modified the database tables for the new directory paths etc. The only issue I am running in to is that everytime I click on Log In, not from the blue menu/top menu but from the box I receive the following message The action file for login was not found.
Now when I click on the Login button upper right, in the blue top menu, I receive the folowing message. "Currenlty Unable to handle this request. HTTP ERROR 500
Note: Error logs only show some depreciated functions, when I try to run the Upgrade script.
What triggers the message "The Action File for login was not found?"
what function/script etc is being called?
When I look in to the HTML Form the action associated is:
http://www.c21rainmaker.com/new_obikarateschool/social/action/login
However there is no file /action/login there is however a php script called login.php
UPDATE:
Looks like login uses JS files.
On the site I am duplicating http://obikarateschool.com/social/js/elgg.1489486883.js?view=default there is an entire JS file
on the duplicated site http://www.c21rainmaker.com/new_obikarateschool/social/js/elgg.1489486883.js?view=default there seems to be more than half the file missing.. However, ths file doesn't exits in the directory. AUGH .. how is it built?
Best regards
sean
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly
iionly - 0 likes
- seanschroeder@seanschroeder
seanschroeder - 0 likes
Uncaught ReferenceError: elgg is not defined at elgg.1513389322.js:71 respond.min.js:1 Uncaught SyntaxError: Unexpected token < kohnkearns:145 Uncaught ReferenceError: elgg is not defined at kohnkearns:145 what is called to define elgg?
- seanschroeder@seanschroeder
seanschroeder - 0 likes
The Javascript erros inlcluded "respond.min.js:1 Uncaught SyntaxError: Unexpected token <" I Looked in respond.min.js and found that the javascript appear to be in the wrong place, and formatted with <pre> tags.. What create this file? <div class="elgg-page-footer"> <div class="elgg-inner"> <ul class="elgg-menu elgg-menu-footer elgg-menu-hz elgg-menu-footer-default"><li class="elgg-menu-item-about"><a href="http://obikarateschool.com/social/about">About</a></li><li class="elgg-menu-item-terms"><a href="http://obikarateschool.com/social/terms">Terms</a></li><li class="elgg-menu-item-privacy"><a href="http://obikarateschool.com/social/privacy">Privacy</a></li></ul><div class="mts clearfloat float-alt"><span><a href='http://obikarateschool.com/social/groups/profile/328/united-states-shorin-ryu'>United States Shorinkan Karate</a><br><h2>Shorin-ryu Shorinkan Karate</h2> (757) 499-4474<br></div><!-- views default page elements -> </div> </div> </div> <script type="text/javascript" src="http://obikarateschool.com/social/js/developers/developers.js"></script> <div class="developers-log"><pre>Event: 'plugins_boot, system' in require_once()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Plugin hook: 'profile:fields, profile' in elgg_profile_fields_setup()</pre><pre>Plugin hook: 'profile:fields, group' in groups_fields_setup()</pre><pre>Event: 'init, system' in require_once()</pre><pre>Plugin hook: 'get_list, default_widgets' in elgg_default_widgets_init()</pre><pre>Event: 'ready, system' in require_once()</pre><pre>Plugin hook: 'route, mod' in page_handler()</pre><pre>Plugin hook: 'page_owner, system' in elgg_get_page_owner_guid()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Plugin hook: 'entity:icon:url, user' in getIconURL()</pre><pre>Plugin hook: 'page_owner, system' in elgg_get_page_owner_guid()</pre><pre>Plugin hook: 'page_owner, system' in elgg_get_page_owner_guid()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Event: 'pagesetup, system' in elgg_view()</pre><pre>Plugin hook: 'output:before, layout' in elgg_view_layout()</pre><pre>Plugin hook: 'output:after, layout' in elgg_view_layout()</pre><pre>Plugin hook: 'output:before, page' in elgg_view_page()</pre><pre>Plugin hook: 'register, menu:site' in elgg_view_menu()</pre><pre>Plugin hook: 'prepare, menu:site' in elgg_view_menu()</pre><pre>Plugin hook: 'register, menu:footer' in elgg_view_menu()</pre><pre>Plugin hook: 'prepare, menu:footer' in elgg_view_menu()</pre><pre>Plugin hook: 'register, menu:topbar' in elgg_view_menu()</pre><pre>Plugin hook: 'prepare, menu:topbar' in elgg_view_menu()</pre></div> </body>
- seanschroeder@seanschroeder
seanschroeder - 0 likes
The Javascript erros inlcluded "respond.min.js:1 Uncaught SyntaxError: Unexpected token <" I Looked in respond.min.js and found that the javascript appear to be in the wrong place, and formatted with <pre> tags.. What create this file? <div class="elgg-page-footer"> <div class="elgg-inner"> <ul class="elgg-menu elgg-menu-footer elgg-menu-hz elgg-menu-footer-default"><li class="elgg-menu-item-about"><a href="http://obikarateschool.com/social/about">About</a></li><li class="elgg-menu-item-terms"><a href="http://obikarateschool.com/social/terms">Terms</a></li><li class="elgg-menu-item-privacy"><a href="http://obikarateschool.com/social/privacy">Privacy</a></li></ul><div class="mts clearfloat float-alt"><span><a href='http://obikarateschool.com/social/groups/profile/328/united-states-shorin-ryu'>United States Shorinkan Karate</a><br><h2>Shorin-ryu Shorinkan Karate</h2> (757) 499-4474<br></div><!-- views default page elements -> </div> </div> </div> <script type="text/javascript" src="http://obikarateschool.com/social/js/developers/developers.js"></script> <div class="developers-log"><pre>Event: 'plugins_boot, system' in require_once()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Plugin hook: 'profile:fields, profile' in elgg_profile_fields_setup()</pre><pre>Plugin hook: 'profile:fields, group' in groups_fields_setup()</pre><pre>Event: 'init, system' in require_once()</pre><pre>Plugin hook: 'get_list, default_widgets' in elgg_default_widgets_init()</pre><pre>Event: 'ready, system' in require_once()</pre><pre>Plugin hook: 'route, mod' in page_handler()</pre><pre>Plugin hook: 'page_owner, system' in elgg_get_page_owner_guid()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Plugin hook: 'entity:icon:url, user' in getIconURL()</pre><pre>Plugin hook: 'page_owner, system' in elgg_get_page_owner_guid()</pre><pre>Plugin hook: 'page_owner, system' in elgg_get_page_owner_guid()</pre><pre>Plugin hook: 'access:collections:read, user' in get_access_array()</pre><pre>Event: 'pagesetup, system' in elgg_view()</pre><pre>Plugin hook: 'output:before, layout' in elgg_view_layout()</pre><pre>Plugin hook: 'output:after, layout' in elgg_view_layout()</pre><pre>Plugin hook: 'output:before, page' in elgg_view_page()</pre><pre>Plugin hook: 'register, menu:site' in elgg_view_menu()</pre><pre>Plugin hook: 'prepare, menu:site' in elgg_view_menu()</pre><pre>Plugin hook: 'register, menu:footer' in elgg_view_menu()</pre><pre>Plugin hook: 'prepare, menu:footer' in elgg_view_menu()</pre><pre>Plugin hook: 'register, menu:topbar' in elgg_view_menu()</pre><pre>Plugin hook: 'prepare, menu:topbar' in elgg_view_menu()</pre></div> </body>
- seanschroeder@seanschroeder
seanschroeder - 0 likes
- seanschroeder@seanschroeder
seanschroeder - 0 likes
<script type="text/javascript"> // <![CDATA[ /** * Don't want to cache these -- they could change for every request */ elgg.config.lastcache = 1513397429; ****THIS LINE HAS A RED X ( assuming the value is wrong ) how to reset? elgg.config.viewtype = 'default'; elgg.config.simplecache_enabled = 0;
- seanschroeder@seanschroeder
seanschroeder - 0 likes
You must log in to post replies.Is mod_rewrite installed on the new server and working correctly? If not, it would explain the "The Action File for login was not found?" error message and most likely also the other issues.
Also, it looks like your site has been/is installed in a subdirectory on your old and on the new server. If that's the case you most likely have configured the RewriteBase in Elgg's .htaccess (to fit the subdirectory name on the old server). Have you changed .htaccess to match the new subdirectory name (or set it correctly in case you started with the original .htaccess on the new server)? If the RewriteBase is wrong, it would also explain the "not found" error.
Yes, there were values in the database pointing to the old hosting site.. would think all that would have been contained in the config file. I have gotten everything working, accept the JSON functions that load some admin features. Most noticable is when I click on "Admin Options..." under a user the link points to: http://obikarateschool.com/social/profile/kohnkearns#profile-menu-admin but nothing happens.
Instead when I look at the javascript consol I see:
Did more digging.. Seems a file is that Sprintf.js is dynamically created and is missing a considerable amount of data
I found this file : http://lab.2kminterativa.com/elgg-data/views_simplecache/d4401b12b28f9140a20cca964e6b5909
and compared it to mine which is missing this line and everything after it:
what creats this file, what parts do I need to look at, how do I force this file to be recreated?
I copied the Javascript from the file that I found, more functionality and objects appeared. However the elgg.provide('elgg.config.hooks'); is still indicating an error in debug "javascript console mode"
Fixed.. Installed 1.8 again in a new fold, renamed it to the original root ( bad a backup ) set all the db username and passwords.
Everything is working now.. I have no Idea what got messed up but it's working now.