Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-21-2008, 06:57 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you didn't upload the file in binary mode?
Reply With Quote
  #12  
Old 01-21-2008, 02:24 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
Are you sure you didn't upload the file in binary mode?

I can see but i dont think so.
I left it on auto like i always do, but ill check.

--------------- Added [DATE]1200933118[/DATE] at [TIME]1200933118[/TIME] ---------------

I made sure that it wasnt in binary mode. Definetly in ASCII mode.
I still got the following error.
I wish i knew what was going on

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/locavur7/public_html/forum/lcnstore.php on line 2

Parse error: syntax error, unexpected T_STRING in /home/locavur7/public_html/forum/lcnstore.php on line 2
Reply With Quote
  #13  
Old 01-21-2008, 04:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I were you, I would start by either commenting out some lines and seeing if that fixes it or I'd start a new file and rewrite it from scratch (no copy/paste) and see if that works.

I googled this error, but only came up with other people who have experienced it. No one posted a solution in the threads I read.
Reply With Quote
  #14  
Old 01-21-2008, 04:29 PM
Grampz Grampz is offline
 
Join Date: Apr 2006
Location: Missouri
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking at your code and found one probable issue.

Code:
// pre-cache templates used by all actions 
$globaltemplates = array( 
        // change the lines below to the list of actual templates used in the script 
        'test_mytesttemplate1', 
        'test_mytesttemplate22', 
);
If you look at $globaltemplates = array( your closing parenthesis is not there until after the test_mytetstemplate22. Try fixing that and see if it works.
Reply With Quote
  #15  
Old 01-21-2008, 04:44 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how should it look?
Im not to sure could you assist?

// pre-cache templates used by all actions
$globaltemplates = array(
// change the lines below to the list of actual templates used in the script
'test_mytesttemplate1',
'test_mytesttemplate22', );
Reply With Quote
  #16  
Old 01-21-2008, 04:49 PM
Grampz Grampz is offline
 
Join Date: Apr 2006
Location: Missouri
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
// pre-cache templates used by all actions 
$globaltemplates = array();
        // change the lines below to the list of actual templates used in the script 
        'test_mytesttemplate1', 
        'test_mytesttemplate22',
The array now has (); with it and the ); that was at the end is no longer there. Unless php is way different than any languages I have studied, that should work. I'm sorry I don't know php, but I'm learning a little at a time.
Reply With Quote
  #17  
Old 01-21-2008, 04:57 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im in the same boat im trying to learn as i go also.

Thanks you for your help i will try this.
Reply With Quote
  #18  
Old 01-21-2008, 05:09 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theres nothing wrong with the $globaltemplates array. Look four lines down and you see the array is closed by that ");". Furthermore the error is on line 2 whereas $globaltemplates is much further down.

RE: Original Post. What are you using to edit the script? Maybe that is causing some kind of error. I don't think its related to the actual syntax because it is running for someone else so it might have something to do with file encoding or something. Try opening it in notepad, copying all the contents to a new notepad document and then saving the notepad document over the old PHP file. (P.S.: I'm just in guessing territory here, but anything is worth try.)
Reply With Quote
  #19  
Old 01-21-2008, 06:39 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im using word pad should i be using note pad?

What is the recomended program for making new PHP file?
Reply With Quote
  #20  
Old 01-21-2008, 06:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not a PC person, but I believe I saw somewhere that you should use notepad for this sort of thing.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04325 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete