Previous Thread
Next Thread
Print Thread
Hop To
#200189 10/29/2007 8:55 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Since updating to 7.2.2 (from 7.1) I hadn't touched the "islands" on my forums but I just went in to try and make an update now and got the following message when I tried to update:

Parse error: parse error, unexpected T_VARIABLE in /home/sites/www.DOMAINNAME.com/web/cache_builders/custom/portal_box_3.php on line 7


Anyone able to help fix this!!
Thanks

willing #200191 10/29/2007 8:56 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Could you paste the content of portal_box_3.php please?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200192 10/29/2007 9:10 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
/* PHP CODE HERE */

Test

/* BODY HERE */
$body = <<<EOF
EOF;


BUT - on the other existing ones if I go in and try to edit I get the same............

willing #200193 10/29/2007 9:22 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Take "test" out and see if it still errors. You could also try opening the php file itself via FTP vs the CP editor and see if some other content is straying.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200194 10/29/2007 9:28 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Actually I just tried changing something else not related to the portal island (the "forums turned off" message) and I got the SAME message

!!

willing #200195 10/29/2007 9:28 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
What do you mean "content straying"?

willing #200196 10/29/2007 9:29 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Oh dear ,what can I do I really need to change that main message....

willing #200197 10/29/2007 9:31 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
I just doenloaded that file and here is what is in there:



<?php
/* PHP CODE HERE */

Test

/* BODY HERE */
$body = <<<EOF
EOF;
?>

willing #200198 10/29/2007 9:34 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
It did the same when I tried to "Clear Cache".... what is happening!!

willing #200199 10/29/2007 10:09 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
By "content straying" i mean something that isn't being read in; as it it looks fine i have no clue why you're receiving that error...

you could try over writing the file with a blank island, which is merely:
Code
<?php
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
EOF;


?>


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200200 10/29/2007 10:40 PM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
I did that and then it came up with box4 as the problem. So I updated them all with the empty code and.... it worked.

I wonder why that was happening!!

Thank you

willing #200207 10/30/2007 12:15 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
How weird, there could have been an empty line at the bottom of the islands (after the ?>)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200216 10/30/2007 1:49 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Actually I thought it was working, but when I went in to edit again - the same happened.....
frown

willing #200217 10/30/2007 1:50 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
The persmission on those files is 666 - --- is that correct?

willing #200218 10/30/2007 2:10 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Yes, the permission 666 allows you to write to the files via the control panel. I'm however not sure why you're recieving these errors; it's quite out of the ordinary...

Last edited by Gizmo; 10/30/2007 2:10 AM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200221 10/30/2007 2:16 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Oh dear

OK short term I need to change the message and one of the boxes. Where can I find this data on the server to edit it manually?

Thanks

willing #200223 10/30/2007 3:28 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
You could download the file to your pc and edit it, then re-upload it; it's in the cache_builders/custom


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200228 10/30/2007 6:43 AM
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Perhaps ther are some 'useen' characters creeping in between these blue tags...
Quote
<?php
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
EOF;

?>
Try removing everything between the blue tags.



As I recall, your data should go here...
Quote
<?php
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
TEST - data goes here
EOF;

?>


driv #200239 10/30/2007 9:03 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
OK thanks I'll check
Thank you

willing #200245 10/30/2007 11:58 AM
Joined: Oct 2007
Posts: 22
stranger
stranger
Joined: Oct 2007
Posts: 22
Hi,

I am new to UBB. I just downloaded and installed it yesterday, so I don't know how it used to be. I had the same problem with trying to make a custom island. I messed with it and ended up entering my html code between the EOF lines and it works fine. Here's an example of one of my custom islands:

Code
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */
$body = <<<EOF

<center><a href="http://www.kqzyfj.com/click-2451074-5439830" target="_blank">
<img src="http://www.tqlkg.com/image-2451074-5439830" width="468" height="60" alt="Half.com - The Smartest Place to Buy and Sell CDs" border="0"/></a></center>

EOF;
/* DO NOT CHANGE THE LINE ABOVE */

Hope this helps.

Daniel.

OneLung50 #200249 10/30/2007 12:35 PM
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
I have to admit that the default text does give the impression that your own text should be inserted in-between the top two comment tags.

Perhaps it might be useful for new arrivals if the code looked like....

Quote
$body = <<<EOF

<!-- Place your markup here -->

EOF;


driv #200255 10/30/2007 1:32 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i actually like a suggestion Ian Spence made, where we split it into 2 textareas.

1 for php code
1 for markup etc

then the behind the scenes stuff takes care of putting it in the right place.

2c

SD #200586 11/03/2007 4:18 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
I like your idea Sir SD wink

& More examples so newbies get the idea smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Mark S #200612 11/03/2007 11:14 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
hrm... 'Sir SD' == SSD

i can't take it !! laugh

SD #200617 11/04/2007 3:59 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Yeh, I like IanS and SD's idea of splitting it up, so people can't do stupid things to break their boards, like placing anything after the final EOF wink... Protect them from themselves!


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #200629 11/04/2007 11:25 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
to be fair, it's Ian Spences idea.. i was just typing it in laugh

but heck, i'll take credit too!!!! :rawk:


ty Giz wink


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)