|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
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
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
Could you paste the content of portal_box_3.php please?
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
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............
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
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.
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
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
!!
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
Joined: Feb 2007
Posts: 678 |
What do you mean "content straying"?
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
Joined: Feb 2007
Posts: 678 |
Oh dear ,what can I do I really need to change that main message....
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
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; ?>
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
Joined: Feb 2007
Posts: 678 |
It did the same when I tried to "Clear Cache".... what is happening!!
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
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: <?php
/* PHP CODE HERE */
/* BODY HERE */
$body = <<<EOF
EOF;
?>
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
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
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
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 ?>)
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
Joined: Feb 2007
Posts: 678 |
Actually I thought it was working, but when I went in to edit again - the same happened..... 
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
Joined: Feb 2007
Posts: 678 |
The persmission on those files is 666 - --- is that correct?
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
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.
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
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
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
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
|
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Perhaps ther are some 'useen' characters creeping in between these blue tags... <?php /* PHP CODE HERE */
/* BODY HERE */ $body = <<<EOF EOF;
?> Try removing everything between the blue tags. As I recall, your data should go here... <?php /* PHP CODE HERE */
/* BODY HERE */ $body = <<<EOF TEST - data goes here EOF;
?>
|
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
|
old hand
Joined: Feb 2007
Posts: 678 |
OK thanks I'll check Thank you
|
|
|
|
|
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:
/* 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.
|
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
|
Pooh-Bah
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.... $body = <<<EOF
<!-- Place your markup here -->
EOF;
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
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. 
|
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
|
Joined: Jul 2006
Posts: 4,057 |
I like your idea Sir SD  & More examples so newbies get the idea 
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
hrm... 'Sir SD' == SSD i can't take it !! 
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
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  ... Protect them from themselves!
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
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  but heck, i'll take credit too!!!! :rawk: ty Giz 
|
|
|
|
1 members (1 invisible),
304
guests, and
96
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|