The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 82 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Thu Aug 02, 2007 2:36 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
I want to allow visitors to my website to be able to submit their personal information, select options from a few drop down menus, and upload a document to my server.  When I try to do this by incorporating html code into an article, the code relating to the forms is ignored.  There are a few extensions out there for Joomla 1 (e.g. PerForms) that would do the job, but whenever I try to install them in legacy mode, an error message is returned as follows

        * JInstaller::install: There is already a file called '/home/**/public_html/**/administrator/components/com_performs/' - Are you trying to install the same CMT twice?
        * Component Install: Could not copy PHP install file.

Thanks in advance to anyone who can point me in the right direction regarding a way to do this.


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 2:49 pm 
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sat Nov 11, 2006 9:34 pm
Posts: 4031
Location: Hungary
white_rajah wrote:
'/home/**/public_html/**/administrator/components/com_performs/'


Try to delete this directory and start again the installation.


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 2:52 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
Hi - thanks for the suggestion.  The directory doesn't actually exist, weirdly enough.  It's some sort of compatibility bug that applies to apply extensions written for Joomla 1.0 that I try to install.


Top
 Profile  
 
PostPosted: Mon Aug 06, 2007 9:02 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 28, 2006 2:09 am
Posts: 26
I am having the same issue.


Top
 Profile  
 
PostPosted: Tue Aug 07, 2007 8:24 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jun 07, 2007 2:16 pm
Posts: 79
I am having this issue too, except it is with Joomap, which is *supposedly* compatible with 1.5.

I am using 1.5 RC1


Top
 Profile  
 
PostPosted: Tue Aug 07, 2007 10:24 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 07, 2007 9:55 pm
Posts: 19
i also has the same issue with the forms


Top
 Profile  
 
PostPosted: Wed Aug 08, 2007 3:04 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
Same here with PerForms.  Anyone able to get this running?  It says its 1.5 compatible, but just won't install for me.


Top
 Profile  
 
PostPosted: Thu Aug 09, 2007 2:19 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Sep 24, 2006 2:24 am
Posts: 74
Same here. the directory of the compenent does mot exist.

_________________
http://AcousticalMusic.org -- View, share, enjoy acoustical music videos
http://VacationRentalsFlorida.us -- Florida beach vacation from $499 per week


Top
 Profile  
 
PostPosted: Thu Aug 09, 2007 12:27 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 02, 2007 8:25 am
Posts: 38
Hello,

I've spent some time today to get it work with J!1.5 There are problems in the install xml file as well as in the install.performs.php. I also found some problems in the legacy class J!1.5 depending on mosMenuBar::custom which doesn't work like the J!1.0 version.

perform should be compartible with J!1.5, but Its not that easy anyway.

Best Regards
Chris


Top
 Profile  
 
PostPosted: Thu Aug 09, 2007 11:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
I'm glad to hear I'm not the only one with this issue.  Hopefully some of the Joomla developers will notice this thread and work on the issue for future releases.


Top
 Profile  
 
PostPosted: Thu Aug 09, 2007 11:40 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4778
Location: Toronto, Canada
There are some extensions for 1.0 that had incorrect XML files which 1.0 allowed but 1.5 does not.

If you see in the XML file:
...

this should be changed to:
...

Ian


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 3:55 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
Thanks for posting back with this solution.  If it works I'm going to be very happy!

PS I tried editing the xml file for performs as you suggested, zipped it up and uploaded it.  For some reason the following error was returned: "# Error! Could not find an XML setup file in the package."  Any suggestions?


Last edited by white_rajah on Fri Aug 10, 2007 4:34 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 7:38 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 02, 2007 8:25 am
Posts: 38
@white_rajah: have you checked the xml syntax of the file? you can replace line 36-43 with
Code:
   <installfile>install.performs.php</installfile>
   <uninstallfile>uninstall.performs.php</uninstallfile>


Hello Ian you are right with the xml file but there are several other problems.
For the following work i used the version com_performs 2.4.0

First of all you should change the xml as Ian wrote.
Then you have to replace the function ExtensionInfo in the includes/installer.php file at line 706 with
Code:
function ExtensionInfo($elementtype, $elementname, $elem, $publish) {
   global $mosConfig_absolute_path, $mainframe;
   $this->elementType = $elementtype;
   $this->elementName = $elementname;

   if(isJ10())
     require_once( $mainframe->getPath( 'installer_class', $elementtype ) );
   else
     jimport('joomla.installer.installer');
    
   switch ($elementtype) {
      case "mambot": {
         $this->elementInstaller = new mosInstallerMambot();
         break;
      }
      case "module": {
         if(isJ10())
            $this->elementInstaller = new mosInstallerModule();
         else
            $this->elementInstaller = JInstaller::getInstance();
         break;
      }
      case "plugin": {
         $this->elementInstaller = JInstaller::getInstance();
         break;
     }
   }
   $this->elem = $elem;
   $this->publish = $publish;
   $this->elementDir = $mosConfig_absolute_path."/administrator/components/com_performs/plugins/".$this->elementName;
}


Now the component should install without any errors.
Now we have to do two changes in lib/myLib.php
First at line 36 replace the function isJ15() with
Code:
function isJ15 () {
  return ( defined( '_JEXEC' ) );
}


And the line 569
Code:
JCommonHTML::loadCalendar();

replace with
Code:
JHTML::_('behavior.calendar');


Now the most things should work but if you see the list of a form, you'll see some language errors.
Therefore you'll have to add the following lines in the file admin.performs.php after line 25
Code:
// Language Errors
if(isJ15())
{
  define("_CMN_NO", JText::_("NO"));
  define("_CMN_YES", JText::_("YES"));
  define("_BACK", JText::_("BACK"));
}


The last problem depends on the Data Bindings.
In the file admin.performs.html.php you have to remove two lines
line 1182
Code:
  }

and line 1187
Code:
    if ($row->tablename) {


Now the component should work with J!1.5

Best regards
Chris


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 4:29 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 28, 2006 2:09 am
Posts: 26
I think I have made all the mods but I get this error
# JInstaller::install: File '/home/s********/public_html/cm/tmp/install_46bc901a5bd50/com_performs modded Folder/ install.performs.php' does not exist
# Component Install: Could not copy PHP install file.

I looked in the tmp directory and the folder install_46bc901a5bd50  is not created... there are other install folder there ( assuming these are other com_ that I have loaded.

Suggestions?


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 4:38 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
I didn't even get that far, I get this error message when trying to install.  Going to try again.  When I was replacing the code in the files, my line  numbers didn't line up with what were listed here, they all seemed to be off by a few lines, so that may be part of the issue. Going to try again now, start fresh.

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/vhosts/mysite/httpdocs/administrator/components/com_performs/includes/installer.php on line 689


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 5:53 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
Hi Chris - wow, thank you very much for this detailed guide!  I'll give it a shot and post back with my results.


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 6:14 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
Thanks indeed.  I tried again, found the error on my part and it installed fine.  I haven't yet given it a test run, but its installed now.  Those line numbers referenced were still off second time around, but its obvious enough to where they're supposed to be that it doesn't matter really.  Weird.

anyway, thanks... anxious to give it a spin this weekend.


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 6:21 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 28, 2006 2:09 am
Posts: 26
Glad to see others can get this to install. Now I know I have to look what is causing my problem.


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 7:07 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
OK, this is maybe lazy of me, but if someone else has made the modifications to Perform and installed it correctly, could you maybe post the zip file as an attachment to this thread?  Seems to make more sense than everyone inputting the same edits by themselves and messing it up.  Thanks!


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 7:10 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
All installed fine, so I think, but getting this error on my content pages throughout my site now.  Any ideas?

Notice: Undefined property: text in /var/www/vhosts/.../httpdocs/plugins/content/mosperforms.php on line 19


Top
 Profile  
 
PostPosted: Fri Aug 10, 2007 7:31 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
In addition, when I try and place a {mosperforms formid=X} in a content item, it just shows that text, rather than placing the form there.


Top
 Profile  
 
PostPosted: Sat Aug 11, 2007 2:13 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 02, 2007 8:25 am
Posts: 38
@plaine: I've got the plugin working too but there must be some changes as the parameters for the event has changed.

The other problems. I'll post a zip tomorrow.

best Regards
chris


Top
 Profile  
 
PostPosted: Sat Aug 11, 2007 4:04 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Aug 10, 2007 6:46 pm
Posts: 4
Hey Chris (aka Silent)
I have made the changes you said. Everything now installed succefully the component and the module. But when I am trying to create just a simple form, there so many problem. I have followed the PUG (Performs User Guide) but the guide is for old version and appears to be not up to date document.
And another weird thing, the main page of my joomla site keeps displaying "perForms Module".
joomla site: http://yadmelbourne.com

Could anyone just try to make a simpe Performs forms tutorial (e.g. Name textfield and submit button just to register your name) for just testing purpose if you successfully installed the component and its module since I am a bit stuck with PUG and has no progress with the installed Performs component and module plus I just dont really get how the database is set up for the Performs forms.

Thank you everyone!

Regards,

Hendy


Top
 Profile  
 
PostPosted: Sun Aug 12, 2007 4:59 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
No idea, but may well be resolved when the new plugin is posted.  Can't wait, it'll be great to have forms in 1.5. 


Top
 Profile  
 
PostPosted: Mon Aug 13, 2007 1:24 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 17, 2006 2:58 am
Posts: 29
Can anyone confirm that they have got this working?  Thanks.


Top
 Profile  
 
PostPosted: Mon Aug 13, 2007 5:47 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 02, 2007 8:25 am
Posts: 38
@n1c3_guy25:
1) Seams as your form isn't published. So it can't be displayed in the frontend.
2) I didn't test the module at the moment, but you can disable it in the backend under extensions->"module Manager"

I've uploaded the packed zip to my server. Just have a look at:
http://www.waldmark.org/download/com_pe ... dified.zip

Best Regards
Chris


Top
 Profile  
 
PostPosted: Mon Aug 13, 2007 7:00 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Aug 10, 2007 6:46 pm
Posts: 4
Sil3nt wrote:
@n1c3_guy25:
1) Seams as your form isn't published. So it can't be displayed in the frontend.
2) I didn't test the module at the moment, but you can disable it in the backend under extensions->"module Manager"

I've uploaded the packed zip to my server. Just have a look at:
http://www.waldmark.org/download/com_pe ... dified.zip

Best Regards
Chris


Dear Chris,

I have actually published them but what you get are still "Error #23: No Form Found" if you click on url link to the form that I created (Form One) and my joomla site keep displaying perForms Module which is a bit annoying.

These are the details I have created
#    Name  Link  Items  DB Table Name  DB Records  Published
1 A New Performs Form index.php?option=com_performs&formid=1 2  Edit Items usr_performs_table1 0 Published

Thanks


Last edited by n1c3_guy25 on Mon Aug 13, 2007 7:02 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Aug 13, 2007 7:45 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 02, 2007 8:25 am
Posts: 38
can you please give me a few details about your system. (J!1.5, php, ...) maybe i can check out whats going wrong.

Do you have a local install of joomla to test my uploaded zip if this works correct? Because the uninstall script doesn't work correct with J!1.5 and so you can get troubles with J!1.5

Best regards
Chris


Top
 Profile  
 
PostPosted: Mon Aug 13, 2007 8:28 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Aug 10, 2007 6:46 pm
Posts: 4
Just formatted my HDD so no local site to test your zipped file. I am still using perform 2.4 and modified the all the files according to your instructions so haven't have chance to test your latest zipped. Is it ready to be tested on public site?

Apache version 1.3.37 (Unix)
PERL version 5.8.7
PHP version 5.2.1
MySQL version 5.0.24-standard

Have somebody managed to create just a simpe form (e.g. Name textfield and a submit button) with Performs? Because I never created any form with Performs before and I find the Performs User Guide not up to date so if someone can post the brief step by step instruction to create a simple working form that would be really appreciated.

Thanks everyone, Thanks Chris


Last edited by n1c3_guy25 on Mon Aug 13, 2007 8:30 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Aug 13, 2007 9:06 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Apr 02, 2007 8:25 am
Posts: 38
I can't answer the question if it's ready for testing on public sites.
I for my case tried the component and checked the functions and till now every thing works correct.

I wrote the dev-team of performs about this solution to get it work with J!1.5 but they didn't answer at the moment. so just wait what they are doing. I'll hope to finish my site till september and then I publish it.

Chris


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 82 posts ]  Go to page 1, 2, 3  Next



Who is online

Users browsing this forum: aemiller, Exabot [Bot] and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group