Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Location
    In the wilderness
    Posts
    106
    Thanks
    9
    Thanked 5 Times in 5 Posts

    Unhappy Problems with Xampp, please help!

    I am using the windows XAMPP server for testing my site but I am having problems building a site using this testing server.

    If I put any images over 30KB on my page they dont display when I preview them in the browser, any under 30KB seem to be fine.

    I cant use any of the javascript libraries (prototype etc). When I link to one of them libraries I get all sorts of syntax errors in firefox's error console (even though these errors aren't even in the javascript file).

    Does anyone what could be causing this?
    "The advantage of computers is that they do exactly what you tell them to do. The disadvantage of computers, on the other hand, is that they do exactly what you tell them to do."

    Excellent resource for learning PHP here

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    I'm using XAMPP with prototype without any problems. Nonetheless, have you tried uninstalling and trying another distribution of XAMPP?

    Is the same thing happening in all browsers?

    Mind uploading some sample code and/or screen shots of whats going on?
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    Regular Coder
    Join Date
    Dec 2006
    Location
    In the wilderness
    Posts
    106
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Sure, I start off with a basic page with just the following code:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js"></script>
    </head>
    
    <body>
    </body>
    </html>
    I preview it in Firefox and noticed that the error console is showing the following errors:



    I select the first error to view its source code and it opens to show this mumbo jumbo

    Code:
    xY]PY]žs
    XY]-`Y]hY]žrpY]	E
    �Y]‹q‹>-�Ph€��VW$_^�U‹E˜Y]žsh]E€Y]žvh]u-�YYQQ$h]uòƒ]�V‹‹FPZ]…tP
    �Y‹N…tj^U‹ƒ˜Z]S‹]V‹u‹#W#A;^‰Ms…tjS‹+x�…t
    @�€Œ���‹‹Nk‹…t~8ƒ3‹A9E(‹A9E}#EYžv‹AEYžs‹A‰E‹E�}‰A‹V��4ʥƒ}�t‹MP�A#MUƒ}�t‹MjS	���3_^[�SVW‹|$‹‹C‹p;ptt$‹t$‹SPQ‹Cƒ;t8u_^[�U‹ƒSVWh]h]‹h]h]‰uӱ3F8(]‰^<‰^@‰^DF4^]‰žP��‰žX��‰ž\��‰ž`��†d�����†h��^]P^]F4^]‰^H(]…z
    ���u(]E€„�]‰]‰]‰] Z]}�]�u(]‰E‰]‰]‰]…�])])]٤Z]�u0)] )]‰)]‰)]()])]�])]
    ]$)]��@E…�]‰]‰]‰]€
    (]�u@)]E�}�]‰]‰]‰]`)]ٰZ]h)]�ux)]l)]‰P)]‰T)]p)]X)]
    ]\)]
    ]d)]�� A‰M‰]‰]‰]E7}�]‰]‰]�uˆ)]‰]}�]٨)]ٰ)]�u)]ٴ)]‰˜)]‰œ)] )]
    ]Ǥ)]˜
    ]Ǭ)]���@Ǹ)]���?E*��]‰]‰]‰]�u)]‰E‰]‰]‰])]ټZ])]٤Z]�u*])] Z]‰)]‰)]�*])]„
    ])]d
    ])]��@E��]‰]‰]‰]�u*]‰U‰]‰]‰]8*]@*]‰(*]‰,*]D*]0*]P
    ]4*],
    ]<*]��–C�uP*]H*]Ejž�]‰]‰]‰]�u`*]‰E‰]‰]‰]€*]ˆ*]�u˜*]�*]‰p*]‰t*]x*] 
    ]|*]
    ]„*]�� AŒ*]��@E‘‚�]‰]‰]‰]�u迨*]‰U‰]‰]‰]*]Z]*]�u*]*]‰*]‰*]*]*]]*]]*]E†�]‰]‰]‰]EI~�]‰]‰]�u*]‰]z}�]襥+]+]٤Z]�u(+]+]‰�+]‰+]+]+]]+]˜] +]E›�]‰]‰]‰]�u8+]‰U‰]‰]‰]X+]\+]�up+]`+]‰H+]‰L+]d+]P+]Œ]T+]l]h+]‰M‰]‰]‰]�u€+]Ek~�]‰]‰]‰]‰�+]‰”+]˜+]X]œ+]P] +]��€٤+]�u迸+]٬+]Ǩ+]
    #<ǰ+]̽E…�]‰]‰]‰]襥�u+]E~�]‰]‰]‰]+]�u�,]‰+]‰+]+]<]+] ]+]��HD+]��zF+]��zD+]�@œEE•�]‰]‰]‰]�u,]E'~�]‰]‰]‰]0,]8,]]�u<,]H,]‰ ,]@,]‰$,](,],,]4,]��AEl�]‰]‰]‰]‰U‰]‰]‰]�uX,]x,]|,]�]�u€,]¿�,]‰h,]„,]‰l,]p,]ˆ,]t,]E�]‰]‰]‰]T}�]�u ,]‰E‰]‰]‰],],]j�u,]Y,],]‰
    ,]‰,],]Ǹ,]]Ǽ,]]E!�]‰]‰]‰]�u,]‰E‰]‰]‰]‰
    ,]‰,]�-]]�u -]-]-]ˆ]E6�]-]‰]‰]-]‰]-]-]�u0-]‰E‰]‰]‰]P-]T-]�uh-]X-]‰
    @-]‰D-]\-]H-]p]L-]D]`-]EN�]‰]‰]‰]�ux-]‰E‰]‰]‰]˜-]œ-]‰
    ˆ-]‰Œ-] -]�-]4]”-]]٤-]Ef�]‰]٨-]�u述-]‰]‰]�u-]‰E‰]‰]‰]-]-]�u-]-]‰
    -]‰-]-]-]�]-]
    ]-]E…�]‰]‰]‰]�u.]‰E‰]‰]‰](.],.]�u@.]0.]‰
    .]‰.]4.] .]
    ]$.]”
    ]8.]E�‰�]‰]‰]‰]‰U‰]‰]‰]�uP.]p.]t.]�uˆ.]x.]‰`.]‰d.]|.]h.]ˆ
    ]l.]h
    ]€.]EŠ�]‰]‰]‰]�u˜.]E'~�]‰]‰]‰].].]�u.]‰.]‰.]ǰ.]\
    ]Ǵ.]<
    ]Ǹ.]��€@Ǽ.]�� B.]��€@EŸ�]‰]‰]‰]Z]�u.]E�~�]‰]‰]‰]�/]/]¾$
    ]‰.]/]‰.]‰5.]‰5.]/]��4C�u/]/]EŸ�]‰]‰]‰]�u(/]‰U‰]‰]‰]H/]L/]
    ]`/]P/]‰5@/]‰5D/]T/]�u‰8/]X/]‰</]Er �]‰]‰]‰]�up/]E�~�]‰]‰]‰]�/]˜/]	]/]œ/]‰5ˆ/]‰5Œ/] /]�u‰€/]‰„/]”/]��4CEr �]‰]‰]‰]‰U�u迸/]‰]‰]‰]	]/]/]�u/]/]‰/]‰/]/]‰/]‰/]/]��BE~�]‰]‰]‰]�u�0]‰E‰]‰]‰] 0]$0]�u80](0]‰
    0]‰0],0]0]	]0]	]00]E–�]‰]‰]‰]�uH0]‰E‰]‰]‰]h0]‰
    X0]‰\0]`0]�	]d0]h	]‹ul0]p0]t0]x0]h��FH�p…F<(]�;Yt"j�xY‰‹ŠU‰Xˆ‰X‰XƒIu‹3‰FD‹FHkPn�‰F@‹FH(]�~t3YZ]^hF=�[]‰^p†�����‰l��‹_
    []ž���
    []ž���
    []ž���
     []ž���
    ([]ž���
    0[]ž���
    8[]ž���
    @[]ž���H[]ž@��^[V‹�F4P^]#�^]+��‹*^D$QQ$h]t$7ƒ�ƒ|$�]u]Ph]t$ƒ�D$h]�Ph0]t$ƒ�D$h(]QQ$h]t$̡ƒ�D$h]“�Ph0]t$詡ƒ�D$h]QQ$h,]t$‡ƒ�D$h]N�Ph0]t$dƒ�D$h]QQ$h,]t$Bƒ�D$h8]QQ$h,]t$ ƒ�D$h@]QQ$h]t$ ƒ�D$h8]�Ph0]t$ ƒ�U‹QQ‹A@@4@PU™���ƒ���t/€��P[]žt
    X[]=`[]Užs™���U‹ƒ@SV‹WF=h[]‹F@€0��]@4]†���up[]Užsp[]U�[]žv	x[]]j�p��][‡@
    `[]QQu
    €[]$ˆ[]QQ$*�WƒE]EP[]ž†����[]uQQ-�[]$QQ$|*�%�[]ƒ]EQQ$-�-�[]YY}
    ˜[]%�[]]P[]žtvEMQQ
     []]]E$,�eYYuQQ]E]E$,�mYYuQQ]E$.��[]YYžvEE
    ƒK…Fh
    Z]QQ=�[]E
    []-�[]$Q,�vXYY_^P^[SUVW‹3�p��FO`P[]žs
    []-[]�[]žr
    []
    []‹G‹(.�P�ƒ€PwU$[]žwP[]žs
    []-[]�[]žr[]
    []‹G‹(�P�ƒ
    €PwU$CƒƒŒ>‹��_^][SV‹3W9†��t‹N@����ž��D$ž��9†P��t"9FpuP‹Fp���'��†���Ft���}D$N
    [][]žs[]‹~%[]‹"�Phq€��WSD‹F@€���D$N
    [][]žs[]‹v%[]‹>�Phs€��VWD_^[�U‹QQSV‹3W9†��t‹N@����ž��Ež���9†P��t,9FpuP‹Fp���Fx���G��”��Fx���ˆ��‹F@€ˆ���EN
    [][]žs[]‹~%[]‹7�Phs€��WSDE%[]‹~
    []‹]FM
    []%�\]�PhA€��WSDFM‹~
    \]‹%�\]�PhC€��WSDFM‹~
    \]‹%�\]�PhE€��WSDE
    \]‹~% \]N‹
    []‡�Pha€��WSDE
    (\]‹~%0\]N‹
    []%8\]U�Phe€��WSDE
    @\]%H\]N‹~
    []‹%P\]#�Phi€��WSDE
    X\]%`\]N‹v
    []‹>%h\]�Phm€��VWD_^[�U‹ƒV‹WQ‹F@Q€0��]E
    p\]
    p[]$ˆ[]QQ$Ÿ%�U�[]ƒž„“���E
    h[]QQv$(�EYYQQ]
     []E
    Z]
    x\]Z]$'�EYY-�[]E%�[]�[]žvP[]žsP[]žs
    []-[]�[]žr
    []
    []‹v‹>�Ph4€��VW$_^�ƒ���t‹A@€���™��D$™�����V‹‹‹^�V‹‹‹F@‹pn^�U‹ƒ EVWU‹39`��t/–(��–��–��–��–��–��ž����‹F@S‰��j9 ��[tm9��teܶ��QQ$)�
    €\]YYܮ��ˆ[]žvˆ[]ˆ\]žsˆ\]‹F@‹Pl]u��Sj�N4E‹N@9��tD†��ܶ���\]žv�\]‘ˆ���]u‹šSj�N4›E‹N@9��tD†���ܶ��˜\]žv˜\]‘���]u‹ Sj�N4LE‹F@9„��„���Ž��ܶ��U€\]žsܶ��QQ$Š(�
    €\]YYK†��
    €\]QQܶ��]u$^(�
     \]YYQQ]Eܶ��$@(�
    \]YYm]E€\]žv€\]ܰ\]žsݰ\]‹F@SS�N4X4yܶ��QQ$'�
     \]YY]‹N@9��tM†��e€\]žv€\]ˆ\]žsˆ\]‘���]u‹��Sj�N4‹N@9��tS† ��Ž��uܸ\]žvݸ\] []žs []‘H��]u‹��Sj�N4‹N@9��t@†(��Ž0��u\]žv\]‘L��]u‹3��Sj�N4[‰ž��[‹��_^�U‹QQSVW‹#��E
    \]-�[]P[]Užs
    []-[]�[]žr
    []
    []‹~‹€�Ph&€��WS$EMQQ
    x\]- []
    []$#�^XYY‹e��_^[�V‹ƒ���t‹F@€���ž��D$ž ��‹2��‹a��^�U‹ƒPV‹WQ†8��‹F@Q]\]$€���QQ$�
    \]]ƒžv†8��'\]‹F@QQ$€���QQ$›�
    \]ƒU�[]žv]\]‹F@QQ$€,��
    \]QQ$[�‹F@ƒU€H��=�[]QQ]\]$QQ
    \]-�[]
    \]-�[]$�] []ƒQQ$EQQ$�-�[]ƒQQe]e]Z]$EQQ$�
    �]]E
    ]]ƒ-�[]E
    ]]ƒe��}]E
    ]]]EQQ$EQQ$e�MƒEurgs).without(element);
      },
    I have tried uninstalling / reinstalling the testing server, tried different versions and I still get the same problem. Last night I gave my PC a full format and reinstalled XP back onto it, then installed xampp again, but still the same problem. The second errors says that I need prototype 1.6.0.3, but this is the version I am using. This is completely baffling me :-(
    Last edited by karlosio; 12-25-2008 at 04:04 AM.
    "The advantage of computers is that they do exactly what you tell them to do. The disadvantage of computers, on the other hand, is that they do exactly what you tell them to do."

    Excellent resource for learning PHP here

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    This isn't a problem with xampp. Images are handled client side (unless its the creation of an image). Same goes for Javascript. I can't see xampp being unable to serve out an image correctly.
    That being said, its a javascript error. Cause: unknown. Possible cause: client memory issues; corrupt file.
    What you're source there shows is that it appears to be a binary file represented as ascii. With the last line of .without, I'd say one of you're javascript files are corrupt.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •