Hi all,
I just upgraded to the latest version of CMS MS, with a few minor glitches my system now seems to be working. However, I also upgraded NMS and now I can not view any of the admin parts of the module. I have set my user up to be allowed to do it so it's not a permissions issue. What happens is that the page loads, and the content flashes by briefly, then I am stuck with the menu. No matter what I click in the menu (inside the module interface that it, CMS MS works just fine) nothing happens.
I looked in the error console and it said the following
Error: document.getElementById(tabs[j].id + "_c") has no properties
Source File: http://www.daik.se/admin/themes/default ... tandard.js
Line: 55
Can anyone advice me what to do to fix this problem?
regards
Daniel
Javascript problem in Newsletter made simple
Re: Javascript problem in Newsletter made simple
I get this exact same problem except with the FrontEndUsers and SelfRegistration module.
Re: Javascript problem in Newsletter made simple
What is your php memory_limit setting? If it's set to 8M, this could be the problem.
If you don't have access to the php.ini file, you could try adding:
to your config.php file, to see if it helps.
Nullig
If you don't have access to the php.ini file, you could try adding:
Code: Select all
ini_set("memory_limit", "16M");
Nullig
Re: Javascript problem in Newsletter made simple
I added that but it seems it made no difference what so ever. Is there anything else I can do? It does not seem to be memory related, as the content is there but there are errors in the JS when I try to display somethings.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Javascript problem in Newsletter made simple
Check your httpd error logs, and/or do a view source and search for the word 'Error'.
Most time, when all you see is the tab headers, there is a php error that has happened that can be trapped, and debugged.
Most time, when all you see is the tab headers, there is a php error that has happened that can be trapped, and debugged.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Javascript problem in Newsletter made simple
I did a 'view source' and searched for 'error' and sure enough! This is what is in the source
"Fatal error: Call to a member function on a non-object in /SERVER_PATH_SNIPPED/modules/NMS/functions.admintabs.php on line 323
"
I suppose the best way out of this is to uninstall remove, reupload and reinstall?
I only have a handfull subscribers so I can re-enter them into the db by hand if I have to. Any other suggestions are of course most welcome!
"Fatal error: Call to a member function on a non-object in /SERVER_PATH_SNIPPED/modules/NMS/functions.admintabs.php on line 323
"
I suppose the best way out of this is to uninstall remove, reupload and reinstall?
I only have a handfull subscribers so I can re-enter them into the db by hand if I have to. Any other suggestions are of course most welcome!
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Javascript problem in Newsletter made simple
Here's the snippet of code around that line:
This means that the above query failed (and I'm not handling the error nicely). However. it also means that there are no jobs created, you need to create jobs before executing them in NMS. Hmmm, how did this happen.
Code: Select all
$q = "SELECT * FROM ".cms_db_prefix().$module->table_prefix."jobs ORDER BY created,started,status";
$dbresult = $db->Execute( $q );
$rowarray = array();
$rowclass = 'row1';
while( $row = $dbresult->FetchRow() ) <!-- the magic line
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Javascript problem in Newsletter made simple
Okay that is interesting. I tell you what I did and what I have noticed in admin, as well as in the db.
What I did was I upgraded CMS MS to latest version (from hmm, a beta 0.7 I think, but that really shouldn't matter). While I was at it, I also uploaded the new versions of uploads(covered in a different thread) and NMS. I did NOT run the Install/Upgrade.php in between here. I then go to my modules page and the modules claim all is good.
I ran version NMS 0.74 before, so I do not know if any db changes have taken place. Either way, When I go to my front end page it claims 'There are no lists defined to subscribe to' or something to that effect.
I currently have (or had I suppose) one list and about 5 subscribers, so with a little bit of guidance I suppose I can delete it all from db, and from server and re-install it. I have a back up of my db already so I have all data stored in db in a file. What would be the best course of action from here? Is it to uninstall and remove the module, upload it again, install it, and then how do I get the users in? (preferably without sending them any e-mails.. I suppose I could sign up all the users with e-mail addresses pointing to me, and then after they are confirmed just edit the db and insert the real ones..)
What I did was I upgraded CMS MS to latest version (from hmm, a beta 0.7 I think, but that really shouldn't matter). While I was at it, I also uploaded the new versions of uploads(covered in a different thread) and NMS. I did NOT run the Install/Upgrade.php in between here. I then go to my modules page and the modules claim all is good.
I ran version NMS 0.74 before, so I do not know if any db changes have taken place. Either way, When I go to my front end page it claims 'There are no lists defined to subscribe to' or something to that effect.
I currently have (or had I suppose) one list and about 5 subscribers, so with a little bit of guidance I suppose I can delete it all from db, and from server and re-install it. I have a back up of my db already so I have all data stored in db in a file. What would be the best course of action from here? Is it to uninstall and remove the module, upload it again, install it, and then how do I get the users in? (preferably without sending them any e-mails.. I suppose I could sign up all the users with e-mail addresses pointing to me, and then after they are confirmed just edit the db and insert the real ones..)
Re: Javascript problem in Newsletter made simple
I finally got around to try the uninstall/remove trick. And it worked!
What I did was
1. backup the database tables (I actually got my whole db into a single .sql file)
2. uninstalled NMS
3. "removed" NMS
4. uploaded NMS again
5. installed
6. Got the "list" data from my sql file and inserted it in the db again
7. got my user data from the sql file and inserted in the db.
8. tested
All seems just fine.
What I did was
1. backup the database tables (I actually got my whole db into a single .sql file)
2. uninstalled NMS
3. "removed" NMS
4. uploaded NMS again
5. installed
6. Got the "list" data from my sql file and inserted it in the db again
7. got my user data from the sql file and inserted in the db.
8. tested
All seems just fine.