Startseite Beiträge von Heute Kalender Boardsuche Benutzerliste FAQ Deine Einstellungen ändern Neue Beiträge
Navigation
Go Back   Mambo / Joomla Hosting Talk (MHT/JHT) > Hosting Forums > Server Management
User Name
Password
Reply
 
Thread Tools Display Modes

  #1  
Old 04-01-2006, 04:46 AM
charmsqueen charmsqueen is offline
Junior Member
 
Join Date: Feb 2006
Posts: 4
Default getting error while migrating to windows....

hai all...
i had developed a site using joomla...the work is almost over...i had done it using linux and opera....and i just copied the folder and database into windows xp to see how it looks like in IE....everything works absolutely fine except a single page where i have displayed the members of a department and given their e-mails...
in that page i am getting an error on top saying:
Warning: rand(): Invalid range: 1..100000 in c:\apache\htdocs\tsr_website\includes\joomla.php on line 1744

this line is getting repeated 14 times....so i guess it has got something to do with the emails on the page....since i have listed out exactly 14 employees and their emails on the page...

the specified lines in \includes\joomla.php also point in this direction..


1737 function emailCloaking( $mail, $mailto=1, $text='', $email=1 ) {
1738 // convert text
1739 $mail = mosHTML::encoding_converter( $mail );
1740 // split email by @ symbol
1741 $mail = explode( '@', $mail );
1742 $mail_parts = explode( '.', $mail[1] );
1743 // random number
1744 $rand = rand( 1, 100000 );
1745
1746 $replacement = "\n<script language='JavaScript' type='text/javascript'> \n";


there are some more lines in the function but i guess that is not relevant...

these are the steps i followed while migrating to windows....
1.I copied the whole site folder into the corresponding folder of windows..
2.imported the whole site database.
3.made changes in configuration.php in the following lines.
$mosConfig_absolute_path
$mosConfig_cachepath.
now the only other variable i thought i should change is
$mosConfig_sendmail = '/usr/sbin/sendmail';
but i didn't know its value in windows...so i left as it is..
so,any ideas as to what is wrong????thanks in advance....
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:52 PM.

Home . Members . FAQ . User CP . New Posts . Today's Posts . Media Kit
 
Joomla Top Sites - Your Primary Source of Joomla Traffic
Web Hosting . Mambo Tutorials . Joomla Hosting . Mambo Hosting . Joomla Top Sites . Joomla Advertising . Web Hosting Flash Tutorials . Joomla & Mambo Freelancers . Joomla Template Providers
Powered by vBulletin - Based on design by vbdesigns.de - © 2005 - 2006 by BuyHTTP Internet Services
Top Top
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.