-

Getting an error in forum_fn.js after Ad Management Install

Support for phpBB3, phpBB3 Modifications, and phpBB3 styles
Forum rules
Bugs go in the Bug Tracker

Getting an error in forum_fn.js after Ad Management Install

Postby rickwolf » Wed Jun 27, 2012 8:03 pm

I'm getting an error of "Uncaught TypeError: Cannot read property 'style' of null" after installing Advertisement Management. Advertisement Management itself seems to work, but it's broken another mod.

The code in question seems to be:
Code: Select all
function dE(n, s, type)
{
   if (!type)
   {
      type = 'block';
   }

   var e = document.getElementById(n);
   if (!s)
   {
      s = (e.style.display == '' || e.style.display == type) ? -1 : 1;
Uncaught TypeError: Cannot read property 'style' of null
   }
   e.style.display = (s == 1) ? type : 'none';
}


Is there any help you might be able to provide? Thanks!

Edit: Everything works correctly on an iPhone, but no desktop browsers.
rickwolf
Donor
Donor
 
Posts: 10
Joined: Wed Jun 27, 2012 7:58 pm
Blog: View Blog (0)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby EXreaction » Wed Jun 27, 2012 8:24 pm

Could you give me a link to a page I can see it on?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby rickwolf » Wed Jun 27, 2012 8:53 pm

rickwolf
Donor
Donor
 
Posts: 10
Joined: Wed Jun 27, 2012 7:58 pm
Blog: View Blog (0)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby rickwolf » Wed Jun 27, 2012 9:27 pm

Disregard my edit. It doesn't work on iPhones either. Must have been a cached page.
rickwolf
Donor
Donor
 
Posts: 10
Joined: Wed Jun 27, 2012 7:58 pm
Blog: View Blog (0)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby EXreaction » Thu Jun 28, 2012 8:02 am

Do you have a quick reply mod installed?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby rickwolf » Thu Jun 28, 2012 8:30 am

Yes, I do.
rickwolf
Donor
Donor
 
Posts: 10
Joined: Wed Jun 27, 2012 7:58 pm
Blog: View Blog (0)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby rickwolf » Thu Jun 28, 2012 11:20 am

I believe I'm using Full Quick Reply editor.
rickwolf
Donor
Donor
 
Posts: 10
Joined: Wed Jun 27, 2012 7:58 pm
Blog: View Blog (0)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby EXreaction » Thu Jun 28, 2012 3:04 pm

Ok, it looks to me like something happened to the quick reply editor.

Do you have backups from before you installed this mod? I do not see any way this issue could have come up from this mod, unless something wrong happened during the installation.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby rickwolf » Thu Jun 28, 2012 4:06 pm

I don't have a forum_fn.js in my theme (I'm using quasar which is a form of prosilver), so I copied one over, but it still seems to use the one in prosilver. I tried changing the variable from n to q but that didn't work either.

And I don't have a backup.
rickwolf
Donor
Donor
 
Posts: 10
Joined: Wed Jun 27, 2012 7:58 pm
Blog: View Blog (0)

Re: Getting an error in forum_fn.js after Ad Management Install

Postby EXreaction » Thu Jun 28, 2012 4:58 pm

The template is probably setup to inherit from prosilver, so any file that does not exist in the template directory is loaded from prosilver.

Could you upload your viewtopic_body.html file here so I can take a look at it?
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Next

Return to phpBB3 Support



Who is online

Users browsing this forum: UGG5uxv2m and 2 guests

cron