Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Syntax error when viewing news
Sebastian
Posted on 19 Oct 2010, 04:42:37

Access: Member
Total Posts: 2
Joined: 2010-10-14

With newest update, I was able to finish install with out a undefined loop error.

The problem now is I am getting this error when I try viewing the news page or using the preview feature in the admin post area. I have installed fresh twice from n13news4.0.1_fullwysiwyg.zip
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/22/d283631251/htdocs/bishops_bicycles/public/inc/news/simple_html_dom.php on line 84

If someone had some possible things to try that would be great!

#2976
Chris
Posted on 19 Oct 2010, 04:47:09

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

This might have something to do with the PHP version on your server. Can you check which version you have by making a file called phpinfo.php and inside it put this code

Code:
<?php
phpinfo
();
?>


Then load that page in your browser. This will tell you which version your server has installed. For N-13 News to function correctly PHP 5+ is required.
#2977
Sebastian
Posted on 19 Oct 2010, 05:10:44

Access: Member
Total Posts: 2
Joined: 2010-10-14

Thanks for the quick response Chris!

I over looked the requirements and did not even think to check what php version I was using. I uploaded that tidbit of code and saw that Apache was using v4.

Quick search though some docs for 1and1.com, My hosting provider, Allowed me to update a htaccess file in the folder to process as v5 :)

Code:
AddType x-mapp-php5 .php

Link I used that others that may have this issue: http://faq.1and1.com/scripting_languages_supported/php/6.html
#2978
Chris
Posted on 19 Oct 2010, 05:14:43

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Awesomesauce.
#2979
Kaybin
Posted on 28 Oct 2010, 23:47:44

Access: Member
Total Posts: 9
Joined: 2010-01-15

Wait, I am having the exact same issue. However, my version of php is 5.0. I do receive the exact same error and the rest of the page bombs out. This happens anytime I try to use an image in an article. Any help?
#3004
Kaybin
Posted on 28 Oct 2010, 23:52:55

Access: Member
Total Posts: 9
Joined: 2010-01-15

Actually, apparently I am not on 5 as my PHP info thing says 4.49.. Here is the link

http://penargylborough.com/phpinfo.php
What am I supposed to do from this point? How did you get it to work?

I created the .htaccess but where do I pload it? Tot he root (html) directory or into one the vti folders?
BTW: I am on godaddy.com

Lol, but when I look at it in my mySQL admin panel it says they are on server 5.0.91

I am extremely confused. Please help
#3005
Last edited by Kaybin at 2010-10-29 00:05:50 Reason:
Kaybin
Posted on 29 Oct 2010, 00:17:40

Access: Member
Total Posts: 9
Joined: 2010-01-15

OK one last reply. Godaddy has in the control panel option to addon php 5x. from the content tab. I feel stupid for missing that one. Everything should be up within 24 hours.
#3006
Network-13.com © 2013