mambot error

cjmicro 27 Aug, 2008
Trying to insert a form into content. Originally wanted it in Virtuemart, but that didn't work so I tried it in a regular content item just to check it. I get nothing, and I did get an error, although it doesn't seem to be repeating.

Fatal error: main() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/crptou/public_html/components/com_chronocontact/plugins/cf_profile.php on line 4



You know that's all greek to me, but what does the cf_profile plugin have to do with the mambot? Ok, well...the profile plugin is enabled on that form. Is that causing a problem? I also tried a form that is not using the plugin and get nothing, so I don't think it is.

The mambot is v6, for joomla 1.0.15. I either get nothing, or that error.

Please let me know what I may have missed, or what I can try. Thanks,

Cheryl
GreyHead 27 Aug, 2008
Hi Cheryl,

That's one for Max, the code that fails is
require_once( $mainframe->getPath( 'class' ) );

I'm guessing that you can't use the cf_profile with the CF mambot.

Bob
cjmicro 27 Aug, 2008

I'm guessing that you can't use the cf_profile with the CF mambot.



I also tried using it with a form that does not have the plugin and still can't get it. But it was late last night so I will go try again after morning coffee. 🙂

Cheryl
Max_admin 27 Aug, 2008
I will move this to bugs and look at it!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
orion1024 07 Sep, 2008
Hello,

I had the same issue and came up with the following quickfix :

Replace :
require_once( $mainframe->getPath( 'class') );

with
require_once( $mainframe->getPath( 'class', 'com_frontpage' ) );


I'm a complete beginner so please be aware that I might be doing it the wrong way, if meant for production websites I would wait for the dev's answer on this.

More information on the bug :
- appears when :
[list]
  • cancelling or saving contents in the frontend

  • viewing static content
  • [/list]
    - does not appear when :
    [list]
  • applying changes on content on frontend

  • editing the content on the backend

  • viewing non-static content on the frontend (works when published on the frontpage, didn't test otherwise)
  • [/list]

    It seems that the getPath method returns an empty string...

    BTW, thanks for the amazing component.
    Max_admin 07 Sep, 2008
    Thanks Orion, did you try it this way :

    require_once( $mainframe->getPath( 'class', 'com_chronocontact' ) )


    does this happen with the Profile plugin only ?

    let me know!

    Regards

    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    orion1024 10 Sep, 2008
    Hello,

    it works just fine your way.
    I didn't see any issue with the others plugins, but my tests were not as thorough.

    Thank you for the great work !
    cjmicro 12 Sep, 2008
    Where are you putting that code? (what file)

    Thanks,
    Cheryl
    Max_admin 12 Sep, 2008
    Hi Cheryl,

    I think in the profile plugin file

    Regards
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    orion1024 12 Sep, 2008

    Where are you putting that code? (what file)

    Thanks,
    Cheryl



    /components/com_chronocontact/plugins/cf_profile.php
    This topic is locked and no more replies can be posted.