• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: how do I fix this syntax error?

how do I fix this syntax error? 17 years 1 month ago #2355

I'm working with zANavAShi's design tutorial, but using his templates I'm getting this error message.

Parse error: syntax error, unexpected '=' in /home/intemark/public_html/components/com_forme/forme.html.php(34) : eval()'d code on line 1

How do I fix this?
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 1 month ago #2357

leeonardo wrote:
I'm working with zANavAShi's design tutorial, but using his templates I'm getting this error message.

Parse error: syntax error, unexpected '=' in /home/intemark/public_html/components/com_forme/forme.html.php(34) : eval()'d code on line 1

How do I fix this?
\"Her\" templates, actually :dry:

Please help yourself by providing more information than just the php error message and give us some idea about steps you have already taken to try and resolve the issue for yourself.

It helps others to help you if they know what Joomla version, what RSform version, registered or trial version, what server specs are you running on, what browser/versions you have tested on, what modifications have you made to the sample templates, have you received the same error message using the RSform default sample template etc etc etc

And also, did you properly read the instructions in my tutorial about it being for Joomla 1.5 only, and the two \"Known Bugs\" I mentioned in the introduction section?

Zana

PS: please respect my privacy and do not send me any more private messages on other sites asking for one-to-one support which I made VERY clear in my other post that I am not available to give.
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 1 month ago #2360

Hi Zana
Thank you for your reply. No, I did not see anywhere on your documentation that it only worked on Joomla 1.5. I did see that was what YOU used, and I did see the bugs you mentioned. Neither seems to apply to me. I am not running Joomla 1.5 here though.

The person I am doing this for is running Jooma1.03
rsforms 1.04
Apache version 2.2.6 (Unix)
PHP version 4.4.7
MySQL version 5.0.45-community-log
My browser is 2.0.0.12
I installed Firebug today. I'm still struggling to understand it.
Same with the free CS editor.
I do not have a deep knowledge of either.

what I have done.

download and install rsforms.
it worked fine but was ugly.
I didn't think it would be so hard to add some basic formatting.
the official documentation talked about themes but I couldn't find any, and no one responded to my post nor my support ticket asking about it. I guess everybody thought it was a stupid question.

I read the posts by dniezby and exchanges with others, and downloaded his tutorial and followed his instructions as best I could. The form was there, and some of the formatting, but the fields and button were in the wrong order and re-ordering them moved them around but didn't line them up right. I noticed he (or she) talked about getting the form id named right. I didn't know if that was the file name or the name I gave it in joomla or what. I was not getting any error messages. I just couldn't make it look good. And the hover didn't work.

I found and read through your documentation and thought maybe that solve the problem, and at least help me understand the form id. It didn't, and was a different approach, but I decided I had nothing to lose since I had already spent several hours and wasn't getting anywhere, so I followed your instructions very carefully, and everything seemed to work until I looked at the page I had created and found the above syntax error.

I then spent several more hours trying to figure out where it was coming from. I found the htmlphp it was talking about, but did not find any = sign on line 34, even though it was the line referred to. It also didn't look like something I should edit, more like something that was generated, I thought, so I went back through all the instructions and compared my code but didn't find anything.

My google searches suggest this is a php error, but I have not modified any php files that I know of, only edited some CSS files, and don't understand PHP well enough to understand what is causing the problem or how to solve it.

I'm sorry for sending you a private message from another Joomla site. I'm not a stalker. Just someone looking for answers after a very frustrating day. I'm sure you have been there at one time or another. I also understand you can't provide tech support for everyone who is having problems with rsforms. Ufortunately It's not that easy for people without php and css training, and there isn't much documentation that covers it.

If there is no other solution I will go back to the very beginning and start over with a fresh install. I don't know what else to do.

Any suggestions are greatly appreciated.
Lee
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 1 month ago #2361

Hi Zana
Thank you for your reply. No, I did not see anywhere on your documentation that it only worked on Joomla 1.5. I did see that was what YOU used, and I did see the bugs you mentioned. Neither seems to apply to me. I am not running Joomla 1.5 here though.

The person I am doing this for is running Jooma1.03
rsforms 1.04
Apache version 2.2.6 (Unix)
PHP version 4.4.7
MySQL version 5.0.45-community-log
My browser is 2.0.0.12
I installed Firebug today. I'm still struggling to understand it.
Same with the free CS editor.
I do not have a deep knowledge of either.

what I have done.

download and install rsforms.
it worked fine but was ugly.
I didn't think it would be so hard to add some basic formatting.
the official documentation talked about themes but I couldn't find any, and no one responded to my post nor my support ticket asking about it. I guess everybody thought it was a stupid question.

I read the posts by dniezby and exchanges with others, and downloaded his tutorial and followed his instructions as best I could. The form was there, and some of the formatting, but the fields and button were in the wrong order and re-ordering them moved them around but didn't line them up right. I noticed he (or she) talked about getting the form id named right. I didn't know if that was the file name or the name I gave it in joomla or what. I was not getting any error messages. I just couldn't make it look good. And the hover didn't work.

I found and read through your documentation and thought maybe that solve the problem, and at least help me understand the form id. It didn't, and was a different approach, but I decided I had nothing to lose since I had already spent several hours and wasn't getting anywhere, so I followed your instructions very carefully, and everything seemed to work until I looked at the page I had created and found the above syntax error.

I then spent several more hours trying to figure out where it was coming from. I found the htmlphp it was talking about, but did not find any = sign on line 34, even though it was the line referred to. It also didn't look like something I should edit, more like something that was generated, I thought, so I went back through all the instructions and compared my code but didn't find anything.

My google searches suggest this is a php error, but I have not modified any php files that I know of, only edited some CSS files, and don't understand PHP well enough to understand what is causing the problem or how to solve it.

I'm sorry for sending you a private message from another Joomla site. I'm not a stalker. Just someone looking for answers after a very frustrating day. I'm sure you have been there at one time or another. I also understand you can't provide tech support for everyone who is having problems with rsforms. Ufortunately It's not that easy for people without php and css training, and there isn't much documentation that covers it.

If there is no other solution I will go back to the very beginning and start over with a fresh install. I don't know what else to do.

Any suggestions are greatly appreciated.
Lee
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 1 month ago #2362

I'm attaching a test file with the code from the page cited here:

Parse error: syntax error, unexpected '=' in /home/intemark/public_html/components/com_forme/forme.html.php(34) : eval()'d code on line 1

this is line 34

eval($form->script_display);

Attachment editit_code.txt not found

Attachments:
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 1 month ago #2364

leeonardo wrote:
My google searches suggest this is a php error, but I have not modified any php files that I know of, only edited some CSS files, and don't understand PHP well enough to understand what is causing the problem or how to solve it.
Please check my tutorial again, specifically the code snippets section near the end. I specifically stated that the php code I used in those sample forms is for Joomla 1.5 ONLY.

I don't know if that is the cause of your problem, but if you are auto-populating your username and email fields then it most certainly will not be working for you in Joomla 1.x.

Whether that will in turn throw out php errors for you I cannot answer, cos like I also made very clear in my tutorial.... this is the SUM TOTAL of everything I have earned about RSform in one week of being a user.

leeonardo wrote:
I also understand you can't provide tech support for everyone who is having problems with rsforms. Ufortunately It's not that easy for people without php and css training, and there isn't much documentation that covers it.
LOL I actually PAID for this damned thing and can't get tech support for it myself even! And reading about the forums we are not alone in this regard, which is why I went to all the trouble to share my own learning in the hopes it might help one more newbie from feeling abandoned here.

That being said however, I like the fact that this component has been designed in such a way that it can be so extensively styled by the end user. It is not the job of the RSform author to give tech support for styling issues - and a huge proportion of the help requests I see around here are for CSS coding support.

Learning about CSS positioning and styling is each users' own individual responsibility and there are plenty of incredibly empowering CSS sites out there who can help those who are ready and willing to apply themselves to that learning. That's how I learned what I know about CSS.

But as to the PHP thing, I am a complete and utter newbie like yourself. So I seriously would like to see some effort here from the author to get together a resource library of PHP snippets for RSform for both Joomla 1.x and Joomla 1.5.

Good luck and I hope somebody who is competent at RSform for Joomla 1.x can offer you some better support than I am capable of doing here.

Cheers,
Zana<br><br>Post edited by: zANavAShi, at: 2008/03/11 11:57
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 1 month ago #2375

Thanks Zana
I know you are a user and have no responsibility to help others, and appreciate your responding, and posting your own results as a tutorial.

One suggestion is that you add a notice at the top that your method that it apparently only works with 1.5. The note on the code snippet came pretty late in the process.

I am not auto populating any fields at least not by design. Wouldn't even know how to go about it, and have enough problems already :)

I guess I'll just revert to defaults and start over with dniezby's approach, hoping this time I can find an answer as to why the fields were not coming up in the order specified, and the hover wasn't working. (I'll probably just drop the latter to make things easy.) Hopefully I have learned a few things in the meantime.

I just need a pleasing layout, with some text and icons at the top. I'm getting that maybe
The administrator has disabled public write access.

Re:how do I fix this syntax error? 17 years 9 hours ago #2895

  • fonts
  • fonts's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
This thread is a bit old so I assume you resolved this.
I just loaded RSForm! and your tutorial.
Also had the same error...so I simply removed the PHP script and left it blank (like in the sample form that comes with RSForm!).

= & JFactory::getUser();
if(){
foreach( as 0=>){
if(=='name') ->default_value = ;
if(=='email') ->default_value = ;
}
}

Frankly I have only played with RSForm for about a half hour so I am not sure evenwhat that script is for?
But the form seems to work without it.

Thanks for the Tutorial - sure made understanding RSForm! much quicker.
The administrator has disabled public write access.

Re:how do I fix this syntax error? 16 years 11 months ago #2972

I read this post when I encountered this problem myself.

If you change the script details to:

$user= & JFactory::getUser();
if($user){
foreach($fields as $i=>$field){
if($field->name=='name') $fields[$i]->default_value = $user->name;
if($field->name=='email') $fields[$i]->default_value = $user->email;
}
}

it will work as expected (i.e. it will auto fill in the 'name' and 'email' fields in a form if the user is logged in)

Thanks for pointing me in the right direction and I hope this might help someone else.

Adam
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!