roback Posted May 13, 2008 Share Posted May 13, 2008 Okay, I installed the Define MainPage contrib just fine and in the admin it brings up the text box editor. As it should. But as my client knows nothing of HTML, I decided it would be easiest to offer them the TinyMCE WYSIWYG editor. I follow the instructions and when I go back to the admin, it gives me the following error: TEXT_FILE_DOES_NOT_EXIST I went over my steps to ensure it was done correctly and I searched several places for anything that might be causing this and have returned nothing. So if anyone has any idea why this might be doing this please let me know. Thanks Rob Quote Link to comment Share on other sites More sharing options...
roback Posted May 13, 2008 Author Share Posted May 13, 2008 I figured it out... the file it was looking for was includes/languages/YOURLANG/mainpage.php, but the file in the package is define_mainpage.php and in the original Define Mainpage you update the catalog/includes/filenames.php to look for define_mainpage.php. So you have to correct it so that everything is looking for the same file and that that file is named correctly. Who would I notify to have this updated on the contrib page? Quote Link to comment Share on other sites More sharing options...
muneca Posted June 15, 2008 Share Posted June 15, 2008 I figured it out... the file it was looking for was includes/languages/YOURLANG/mainpage.php, but the file in the package is define_mainpage.php and in the original Define Mainpage you update the catalog/includes/filenames.php to look for define_mainpage.php. So you have to correct it so that everything is looking for the same file and that that file is named correctly. Who would I notify to have this updated on the contrib page? I had the same problem but I fixed it by opening define_mainpage.php and changing all instances of DEFINE_MAINPAGE to DEFINE_MAINPAGE0 and saved the file as define_mainpage0.php. Also had to change the line that reads $HTTP_GET_VARS['filename'] = 'mainpage.php'; to $HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE0; Then upload to server. It shows up in the admin as rich text editor. So I did a save as for the others (DEFINE_MAINPAGE1 & 2) following the same steps and uploaded it so they all have the rich text editor function now. Hope that helps you. Quote Link to comment Share on other sites More sharing options...
brutedawg Posted September 1, 2008 Share Posted September 1, 2008 well, i fixed it in a jiff by just changing a singe line in the new define_mainpage.php you upload: from $HTTP_GET_VARS['filename'] = 'mainpage.php'; to $HTTP_GET_VARS['filename'] = 'define_mainpage.php'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.