The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 40 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Jun 18, 2007 6:00 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 18, 2007 5:09 am
Posts: 8
Location: Georgia, USA
I know that this has been tossed up so many times however, I want to go ahead and provide an actual fix for those who do not want to explain it to other users of their administrator panel or just for their own convenience. If you are receiving any of the following:

1) Blank popups when attempting to post images, links, tables, or any other popup in TinyMCE
2) Popups display no useful text but show something similar to: {$lang_insert_link_title}
3) Receiving something similar to 'uncaught exception: Permission denied to get property Window.tinyMCE' or 'tinyMCE has no properties'
4) Having issues saving, closing, previewing, or applying new or preexisting content
5) And perhaps other Javascript related functions in the administrator panel.

Then you have two options...

First you can follow the FAQ here or this FAQ (Both are for the same issue). However you will have to remember to always go to the live site url.

Your other option is you can insert a PHP snippet into both your index.php and index2.php in your administrator folder that will automatically go there for you and so you do not have to worry about it at all in the future.

To apply this fix, open up the index.php AND the index2.php in the administrator folder, and then insert the following in the gap after the SSL check and before the "require_once( '../includes/joomla.php' );":

Code:
//URL Check
$mw_chk_http=explode(".",$_SERVER['HTTP_HOST'],1);
# HTTPS Check
if(empty($_SERVER['HTTPS'])){
   $mw_cmp_http=explode(".",substr($mosConfig_live_site,7),1);
}else{
   $mw_cmp_http=explode(".",substr($mosConfig_live_site,8),1);
}
# Compare Current to Config Site
if(strtolower($mw_chk_http[0])!==strtolower($mw_cmp_http[0])){
   header("Location: ".$mosConfig_live_site."/administrator/index2.php");
   exit();
}


Once you have applied the fix to both files, upload them to your live site and give it a shot. You will now be directed to the live site as defined in the joomla configuration.

Hopefully this helps a few headaches. I apologize if a fix similar to this has already been posted, however I didn't think it would hurt.


Note: As always, backup the files you are about to edit before ever applying any sort of script modification to them. Also this fix may be eliminated if you do any sort of Joomla version upgrades or a clean installation. If you have any problems with this fix, please post your feedback on this thread.

Mambo: This is untested on Mambo, however if you are experiencing similar to problems as described above, feel free to use the snippet above and let me know if you have any problems with it.

_________________
Reid Workman
Internet Faction - Web Development and Design
ReidWorkman.com


Last edited by Workman on Wed Aug 29, 2007 5:06 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Jun 18, 2007 7:19 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Sat Jul 08, 2006 7:36 am
Posts: 918
Location: India
hii

Thanx a lot for your valuable information....was looking for something like this for a long time..

_________________
Quality WebDevelopment at http://www.webworkwiz.com
Affordable hosting http://www.vsmhosting.com


Top
 Profile  
 
PostPosted: Mon Jun 18, 2007 7:29 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 07, 2007 1:57 am
Posts: 2
:D Thanks a lot, I had been looking for a fix for days, and finally got to this fix which is a perfect fix, now I do not get blank window in the editor, I really appreciate the type support people like you give us. Thanks again.


Top
 Profile  
 
PostPosted: Wed Jun 20, 2007 5:23 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 18, 2007 5:09 am
Posts: 8
Location: Georgia, USA
Hey no problem!

I was starting to get annoyed every time I forgot to type in 'www.' and one of my clients brought it up so instead of explaining the workaround I just made the fix. Hopefully it will help out others who find themselves in the same situation.

Thanks for your feedback  ;)

_________________
Reid Workman
Internet Faction - Web Development and Design
ReidWorkman.com


Top
 Profile  
 
PostPosted: Wed Jun 20, 2007 9:05 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jun 20, 2007 9:02 am
Posts: 1
hi Workman,

Thanks for this. I'm a joomla newbie and did face this problem and came here looking for a solution. Thanks again.

Cheers,
Andrew.


Top
 Profile  
 
PostPosted: Fri Jun 22, 2007 10:07 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jun 22, 2007 9:43 pm
Posts: 1
Hi,

I tried this to stop getting blank popup screens, but now my administrator page won't load.  No problem because I made backups of the files, but I really wish it would work!  Any other ideas?  Thanks.


Top
 Profile  
 
PostPosted: Mon Jun 25, 2007 3:17 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 18, 2007 5:09 am
Posts: 8
Location: Georgia, USA
Hey visions,
I'm glad you made backups. Always a safe precaution ;)

Could you try to follow the steps one more time just to make sure that it was applied correctly? Also, remember that you are not replacing any code, you will only be inserting it after other code.


If you still are getting the same results, can you answer these questions?
  • What appeared on the administrator page when you pasted the code into the index.php and index2.php files? Or was it just a completely blank page?
  • Also, try going to your configuration.php file and make sure that the url defined for $mosConfig_live_site is a valid url (such as http://www.yoursite.com)

Thanks for your feedback

_________________
Reid Workman
Internet Faction - Web Development and Design
ReidWorkman.com


Top
 Profile  
 
PostPosted: Sat Jul 07, 2007 12:41 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 27, 2007 11:05 pm
Posts: 2
Location: Costa Rica
Workman,

Thanks for the simple solution, my kind of fix!

Just a few tips for newbies like myself:

1) Make sure the permissions of the index.php and index2.php files are set correctly (writable)

2) Make sure to change both of these files within the Administrator folder, not the root folder (no damage seems to happen, but the fix won't work if you do it for the root php files)

Keep up the good work!

jra

_________________
JR


Top
 Profile  
 
PostPosted: Wed Jul 11, 2007 8:18 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jul 11, 2007 7:57 pm
Posts: 2
nice indeed.... thank you  ;D


Top
 Profile  
 
PostPosted: Mon Jul 16, 2007 2:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jul 16, 2007 1:58 am
Posts: 12
WORKMAN

YOU ROCK

THANKS! :laugh:



Well actually it didnt work for me.

I added those code snipits, and it didnt work.
I am using the editor and it didnt work.


got this error - I am working on it

open configuration.php failed: Permission denied at cpanel.pl line 461
Carp::croak('open configuration.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1299
Cpanel::Fileman::fmsavefile('/home/wislive/public_html', 'configuration.php', ' main::__ANON__('/home/wislive/public_html', 'configuration.php', ' main::exectag('Last edited by whisky_badboy on Mon Jul 16, 2007 2:39 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Jul 16, 2007 12:45 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu May 24, 2007 2:40 pm
Posts: 9
Thank you, thank you, thank you.
Problem solved!
I have been searching for an answer to this problem for two days and this is the only solution I understood.

Nick


Top
 Profile  
 
PostPosted: Sat Jul 28, 2007 5:18 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 18, 2007 5:09 am
Posts: 8
Location: Georgia, USA
Hey no problem  ;)

_________________
Reid Workman
Internet Faction - Web Development and Design
ReidWorkman.com


Top
 Profile  
 
PostPosted: Mon Aug 06, 2007 10:38 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Aug 03, 2007 3:26 am
Posts: 3
Location: Warsaw, Poland
Sometimes I can understand fixes like yours, but not this time... But the thing is... IT WORKS!!! No Idea how you made it, but you are my personal savior. I thought I would have to do all links and html tags straight in MySQL tables ;) I feel like I owe you a beer :)


Top
 Profile  
 
PostPosted: Fri Aug 24, 2007 10:46 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Aug 24, 2007 10:38 am
Posts: 1
Yo man,


Thanks for that useful snippet mate...

Saved a lot of time and trouble..

:pop :pop :pop :pop :pop :pop :pop :pop :pop :pop :pop :pop :pop


Top
 Profile  
 
PostPosted: Tue Sep 25, 2007 3:41 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 25, 2007 2:57 am
Posts: 10
Location: brisbane
oh man.. your a LEGEND!!!

this has been making me pull my hair out for the last few weeks..

i initially had trouble when i edited the file.. but a quick look at the error revealed that dumbass dreamweaver had decided to add its own code in when i opened it.. gah

quick edit notepad from the BACKED UP files i had saved the day...

you really dont know how happy you have made me :)

huge thanks


Top
 Profile  
 
PostPosted: Thu Sep 27, 2007 11:17 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 26, 2007 12:56 pm
Posts: 8
hey man!!!

seems you are a pro with tinymce, do you also know a solution to this problem :( ?

http://forum.joomla.org/index.php/topic,216954.0.html

thanks in advance!


Top
 Profile  
 
PostPosted: Sat Sep 29, 2007 8:10 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon May 14, 2007 11:48 am
Posts: 98
what can you say about errors connected with Joomfish and new module?

I installed some modules and then TinyMCE WYSIWYG got aproblems with creating a new static page, add news and so on.

then I install WYSIWYGpro and it is working, is not i sstrange?


Top
 Profile  
 
PostPosted: Sat Oct 06, 2007 3:27 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Tue Dec 20, 2005 12:52 am
Posts: 96
Location: New Zealand
Brilliant, thankyou

_________________
Godfuel Media Ministries - www.godfuel.org
Web Dev - http://www.web.godfuel.net


Top
 Profile  
 
PostPosted: Sun Oct 07, 2007 6:31 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 03, 2007 7:04 am
Posts: 13
Location: Singapore
i did the same thing but when i wanted to log in...

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


i can't


Top
 Profile  
 
PostPosted: Tue Dec 11, 2007 1:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 24, 2007 3:47 pm
Posts: 8
TOTALLY awesome fix.  You complete me.


Top
 Profile  
 
PostPosted: Tue Dec 11, 2007 2:40 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Nov 24, 2007 8:48 pm
Posts: 4
THANK YOU THANK YOU THANK YOU :pop


Top
 Profile  
 
PostPosted: Tue Dec 11, 2007 2:17 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Dec 10, 2007 1:06 pm
Posts: 3
PLEASE HELP!
Everything is working fine at the backend.
But my frontend stopped working since last week.
I use JCE editor for the frontend. Since last week, the "Cancel", "Save", nor "Apply" stopped working. I checked under IE7 - it directed me to my local internet temporary folder and showed "Internet Explorer cannot display the webpage" I checked the source code, it looked like
returned with whatever is local instead of the live site. Under IE6 - when clicked on those icon, it showed "error on page" and under FireFox, the Javascripts did not even respond.

I tried putting the codes you provide in the index.php and index2.php under Administrator, hoping it's the answer, but no luck. I even tried putting the codes in the index.php and index2.php under the root folder, still no luck.

Can you help? PLEASE!! I'm going nuts here!!
Thank you!


Top
 Profile  
 
PostPosted: Thu Dec 27, 2007 5:37 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Nov 06, 2007 2:59 pm
Posts: 2
:-*  LOVE YOUR WORKMAN  :'(


Top
 Profile  
 
PostPosted: Wed Jan 02, 2008 2:01 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jan 02, 2008 1:40 am
Posts: 1
Hi. I just started using Joomla and I am really just starting to feel my way around it. One issue that I hope you can help me with is that, my WYSIWYG editor in the admin page and the front page is totally different given that all of my settings are set to default. I dunno if the components i installed has anything to do with it. I have Jom comment, JcalPro, Fabrik, docman, expose, extplorer, mp3 player and joomla Pack... You prompt reply would be greatly appreciated. Thank You in advance!


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 12:54 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Dec 22, 2007 8:58 am
Posts: 41
Location: Indonesia
hi... can anybody help me about tinimce... when i click to insert image and the popup appear, why its look like the popup not full... because i cannot see the right side... *the popup only show half not full*

sorry for my english..

How to resize that popup so i can see full popup please....

thank you

_________________
please come...
http://www.the-unlimited.com


Top
 Profile  
 
PostPosted: Mon Jan 14, 2008 2:45 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Oct 16, 2007 10:29 am
Posts: 4
Thanks a lot!

The snippet in the first post solved my problem. It was indeed the problem with the Live Site URL. My ISP had it change from http://www.huibersschool.nl (our top level domain) to http://www.huibers.edu.amsterdam.nl (their own TLD = http://www.amsterdam.nl) automatically once you had arrived at the frontpage.

This also solved other problems like not being able to preview the site (when logged in as admin through the back-end).
Thanks a million!

Denniz
http://www.deegee.net

_________________
DeeGee.net and Huibersschool.nl are just two of my websites.


Top
 Profile  
 
PostPosted: Mon Jan 14, 2008 3:07 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 08, 2007 12:29 pm
Posts: 17
i tried to edit my index.php and index2.php but got this error.

The page isn't redirecting properly
   

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Now i cannot browse my website already. i tried to copy back my back-up files for these two files but still the same. wahhhhhh.

_________________
i like to analyze you...
http://www.pinoymattersg.com


Top
 Profile  
 
PostPosted: Thu Jan 24, 2008 8:31 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jan 24, 2008 7:35 pm
Posts: 2
Hello,
I was excited to see this fix, because it's really frustrating to not have the editor work! I am really new to this - I have been an administrator before, but this is my first time setting up a site.  I am using GoDaddy for hosting, and they automatically upload Joomla for you... I tried editing the index and index2 through file management, but it didn't work, so I tried to put the backups back, and now I can still see the front end but cannot log into administrator.  I get the following message:
Parse error: parse error, unexpected '?' in /home/content/b/r/o/brownfields08/html/administrator/index.php on line 242

Can anyone help?  I would hate to have to start all over!


Top
 Profile  
 
PostPosted: Mon Jun 23, 2008 12:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jun 23, 2008 12:33 pm
Posts: 1
Hi
I am quite new to Joomla.I got his blank page issue problem. Can you please tell me how to get in the index.php file in the administator file.

Thanks


Top
 Profile  
 
PostPosted: Tue Jun 24, 2008 12:13 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Aug 03, 2007 3:26 am
Posts: 3
Location: Warsaw, Poland
Quote:
Can you please tell me how to get in the index.php file in the administator file.
This won't be easy ;)

You have to gain access to the files on the FTP server where your joomla is. Use an ftp client like Filezilla. When you do connect in the main directory there should be an "administrator" folder, and inside... You guessed it :)

I would recommend finding a nice in-depth joomla installation tutorial, this would certainly answer some questions that are yet to come :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group