[Maintain] PHP 5 Compatibility

Fox, Sam P spfox at bendbroadband.net
Tue Oct 30 23:54:26 UTC 2007


Thanks Kevin!

I'll have to install SVN on our box... sounds like a job for tomorrow :P

Cheers,

Sam Fox

-----Original Message-----
From: Kevin Purdy [mailto:purdyk at net.oregonstate.edu] 
Sent: Tuesday, October 30, 2007 4:42 PM
To: Fox, Sam P
Cc: maintain at osuosl.org
Subject: Re: [Maintain] PHP 5 Compatibility

Sam,
	Make sure you're on the latest version of Maintain (you might
have to pull from SVN, as we haven't made a release
with recent changes), as we just recently fixed a bug regarding modules
and config files (namely, module dirs and config files
are all named lowercase, but modules refer to their class names, which
are camel-case, a very silly bug indeed).  A quick fix
for this is to simply go in to the module and rename it to all lowercase
(where it says 'class Build_DNS' to 'class build_dns').
This will fix the config file bug.  In regards to the other issue, I
havent seen it before, but it sounds like a similar bug,
which is probably fixed in the trunk.

Fox, Sam P wrote:
> Thanks for the quick reply, Kevin!
> 
> "build_dns successfully installed" -  I'm getting emails saying the
> config file is not readable from Maintain-  I'll play around with
that.
> In an unrelated matter, we get the same warning 3 times at the top of
> the Maintain page when it loads:
> 
> Warning: PHP5 set/get calls should match the case of the variable in
> /home/apache/htdocs/maintain/lib/php/pear/share/php/DB/DataObject.php
on
> line 3623
> 
> I don't think these are too serious- just curious if anyone had some
> insight into getting rid of them (besides disabling warnings...)
> 
> Regards,
> 
> Sam Fox
> 
> -----Original Message-----
> From: Kevin Purdy [mailto:purdyk at net.oregonstate.edu] 
> Sent: Tuesday, October 30, 2007 4:20 PM
> To: Fox, Sam P
> Cc: maintain at osuosl.org
> Subject: Re: [Maintain] PHP 5 Compatibility
> 
> Sam,
> 	I've been running the Maintain 3 development trunk on PHP5 for a
> while now.
> If you've got the DNS module added (in bin, do './modules.php
--install
> build_dns'), calling the
> cron module (also in the bin directory) will actually do the build.
> Running the module
> directly will produce this issue, as the module is a class that
requires
> the rest of the maintain
> framework to function.
> 
> 
> Fox, Sam P wrote:
>> Hello crew,
>>
>> We have PHP 5 on our machine that I'm trying to run maintain from.
> The
>> Maintain install went okay and I'm able to browse the site, but I'm
>> getting nothing but errors when I try to add the DNS module by
running
>> build_dns.php.  Here's the error I get:
>>
>> Warning: require_once(MODDIR/module.php): failed to open stream: No
> such
>> file or directory in
>> /home/apache/htdocs/maintain/modules/build_dns/build_dns.php on line
> 40
>> Fatal error: require_once(): Failed opening required
> 'MODDIR/module.php'
>> (include_path='.:/usr/local/lib/php') in
>> /home/apache/htdocs/maintain/modules/build_dns/build_dns.php on line
> 40
>> I'm trying to figure out if this is a PHP 5 incompatibility problem
or
>> if something else is amiss.  Is anyone running Maintain 3.0 with PHP
> 5?
>> Thanks,
>>
>> Sam Fox
>> _______________________________________________
>> maintain mailing list
>> maintain at osuosl.org
>> http://lists.osuosl.org/mailman/listinfo/maintain
> 
> 


-- 
Kevin Purdy * Security Student
Network Engineering * Oregon State University


More information about the maintain mailing list