Guru Forum - Aliro, PHP, Mambo, Joomla, ...


Reply
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2009, 09:52 PM
Cerian Cerian is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default Having issues

I have attempted to install aliro, according to the instructions provided and have had no luck. I'm using a wamp setup, with the latest versions of apache, mysql, and the latest php5. Going to the admin panel and inputting the required info, i got a blank page. After reading through the forums here, and using phpmyadmin I realized that the tables had not been created. So inport sql manually.The sql files did not work with phpmyadmin. The main issue was default settings for strings. So i reconstructed the tables by hand, with everything appearing as it should. I used the admin panel to attempt another installation and again nothing happened as far as i could tell. I hit the forums again and caught the thread regarding mysql vs mysqli. Could this issue be related, and can we get aninformative walkthrough for installing aliro on a wamp server?
Reply With Quote
  #2  
Old April 22nd, 2009, 10:14 PM
counterpoint counterpoint is offline
Administrator
 
Join Date: Jun 2007
Posts: 200
Default

What version are you using? At present, it's best to export the code from the subversion repository.

If you get a blank page, that usually means there has been a fatal PHP error. It's worth trying to track down the error to find out what is going on. If it is not showing on the screen, the next most likely place to find it is the Apache error log. I forget where WAMP puts it, but it is usually called error_log.

Could you be more specific about the SQL issues you had? I've recently installed into a MySQL running in strict mode, and fixed what few issues there were in strict mode. The mysql/mysqli issues should be long gone.

After using it for some time, I got frustrated with xampp and found it better to install the various components. It is a little bit harder, but gives a lot more flexibility.
Reply With Quote
  #3  
Old July 13th, 2009, 11:33 PM
Cerian Cerian is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

Well... to start, I have deleted previous installation and reinstalled. But the problems have not stopped, new ones have appeared. The blank page was a mystery, as well as the hand made tables, in so far as i have no idea why phpmyadmin wouldn't accept the sql files. Anyway onto the new install

Alliro 2.0/Ext Beta/7 install has not succeeded either. I have received the same error described here.

After some digging I decide to comment out line 50 & 52 of aliroXML... removing your custom error handler from the equation. Now I'm presented with the admin login. Success! ...or not...

when i try to view the index page, i get the aliro screen and this

"A PHP error has been recorded in the log
This Aliro based web site is not yet configured with user data, please call back later "

Here is an excerpt from apache log file ( all related to while i was playing in admin panel

[Mon Jul 13 16:59:53 2009]
[error]
[client 127.0.0.1]
PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: I/O error : failed to load external entity &quot;NULL&quot; in W:\\WWW ROOT\\Aliro\\classes\\aliroXML.php on line 51, referer: http://127.0.0.1/administrator/index...re=cor_sysinfo

[Mon Jul 13 16:59:53 2009]
[error]
[client 127.0.0.1]
PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: -8&quot;?&gt;&lt;!DOCTYPE extinstall SYSTEM &quot;file:///W:/WWW ROOT/Aliro/xml/extinstall.dtd&quot;&gt; in W:\\WWW ROOT\\Aliro\\classes\\aliroXML.php on line 51, referer: http://127.0.0.1/administrator/index...re=cor_sysinfo

[Mon Jul 13 16:59:53 2009]
[error]
[client 127.0.0.1]
PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in W:\\WWW ROOT\\Aliro\\classes\\aliroXML.php on line 51, referer: http://127.0.0.1/administrator/index...re=cor_sysinfo

[Mon Jul 13 16:59:53 2009]
[error]
[client 127.0.0.1]
PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: validity error : Validation failed: no DTD found ! in W:\\WWW ROOT\\Aliro\\classes\\aliroXML.php on line 51, referer: http://127.0.0.1/administrator/index...re=cor_sysinfo

[Mon Jul 13 16:59:53 2009]
[error]
[client 127.0.0.1]
PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: /W:/WWW ROOT/Aliro/xml/extinstall.dtd&quot;&gt;&lt;extinstall version=&quot;2.0&quot; type=&quot;language&quot; in W:\\WWW ROOT\\Aliro\\classes\\aliroXML.php on line 51, referer: http://127.0.0.1/administrator/index...re=cor_sysinfo

[Mon Jul 13 16:59:53 2009]
[error]
[client 127.0.0.1]
PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]:^ in W:\\WWW ROOT\\Aliro\\classes\\aliroXML.php on line 51, referer: http://127.0.0.1/administrator/index...re=cor_sysinfo
Reply With Quote
  #4  
Old July 14th, 2009, 11:34 AM
counterpoint counterpoint is offline
Administrator
 
Join Date: Jun 2007
Posts: 200
Default

Well, these problems all seem to be around the XML handling. I'd be very glad to get them pinned down. I think they are to do with differences in the environment, but that doesn't mean they shouldn't be resolved.

Just to get my bearings, could you be specific about the exact software configuration you have? Exact version of PHP, MySQL, Apache. Also, what version of Windows?

And you mention seeing "A PHP error has been recorded in the log". If that message appears, you should be able to find something recorded in the Aliro error log. It is normally accessible from the admin side, via Site - Error Reports. If for some reason you can't get into that, most of the information can be found in the xxx_error_log table in the core database.
Reply With Quote
  #5  
Old July 15th, 2009, 12:46 AM
Cerian Cerian is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

the aliro log shows the same error message in both the long and short error fields. here is your trace data...

Trace

W:\WWW ROOT\Aliro\classes\aliroRequest.php:83
W:\WWW ROOT\Aliro\classes\aliroErrorRecorder.php:80
W:\WWW ROOT\Aliro\classes\aliroLanguageBasic.php:138
W:\WWW ROOT\Aliro\classes\aliroLanguageBasic.php:44
W:\WWW ROOT\Aliro\classes\aliroLanguage.php:26
W:\WWW ROOT\Aliro\classes\aliroLanguage.php:21
W:\WWW ROOT\Aliro\bootstrap\objectcache.php:95
W:\WWW ROOT\Aliro\classes\aliroLanguage.php:38
W:\WWW ROOT\Aliro\classes\aliroCore.php:95
W:\WWW ROOT\Aliro\classes\aliroAbstractRequest.php:106
W:\WWW ROOT\Aliro\classes\aliroAbstractRequest.php:56
W:\WWW ROOT\Aliro\administrator\classes\aliroAdminRequest .php:10
W:\WWW ROOT\Aliro\administrator\classes\aliroAdminRequest .php:16
W:\WWW ROOT\Aliro\classes\aliroRequest.php:69
W:\WWW ROOT\Aliro\administrator\index.php:128
W:\WWW ROOT\Aliro\administrator\index.php:145

My server setup is a wamp based on:

XP Version 5.1.2600 Service Pack 3 Build 2600
Apache/2.2.11 (Win32)
PHP/5.2.10
MySQL/5.0.51a
Reply With Quote
  #6  
Old July 15th, 2009, 01:15 AM
Cerian Cerian is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

After some more digging through devphp and your trace data, i think i've come up with some common ground.

line 21 in aliroLanguage.php the string 'en' appears here. Also, If I uncomment the previously commented lines, aliro still runs spitting out the aliro error screen, as opposed to the white screen php error i was getting previously.
Reply With Quote
  #7  
Old July 15th, 2009, 09:27 PM
counterpoint counterpoint is offline
Administrator
 
Join Date: Jun 2007
Posts: 200
Default

So far, I'm not getting very far. I've downloaded WAMP and installed it. It was difficult to find older versions, so it gave the added excitement of running PHP 5.3 for the first time! That threw up a few warnings, but nothing that can't be fixed quite easily.

Apart from difficulties getting WAMP to run at all because of clashes with Skype over port 80, installing Aliro went completely smoothly. I filled in all the required data, it went away to think about that for a bit, came back with the success screen telling me where to go to log on and such like. Then I logged in as admin - there is quite a long pause if a bundle is being installed - without incident.

The front end of a site will always show the "This Aliro based web site is not yet configured with user data, please call back later" message, that's just to say what it does say!

The default language is "en" (that's an ISO code) and the system should be loading ../language/en/en/xml. I've checked that file, and it validates ok. Your system appears as if it may be having a problem loading it, although I can't see why.

Maybe it is getting the file wrong somehow. Try putting a diagnostic in after line 122 of languageBasic.php. Look for
PHP Code:
    private function load ($load_catalogs false) {
        if (!
is_readable($this->xmlfile)) return false;
        try { 
and put a line between the "if" and the "try" that says die($this->xmlfile);

The system won't work, but it will display the path to the XML file it is trying to load. If it isn't ../language/en/en.xml we'll know that something is going wrong with the setting of $this->xmlfile. If it is, I'll still be puzzled!
Reply With Quote
  #8  
Old July 19th, 2009, 07:34 PM
Cerian Cerian is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

I've never actually used the wamp install, just D/L and installed everything seperate. Also, I never got a success screen, just a blank screen, but when i reloaded the admin page was given the admin login. I'm away from the server ATM, but as soon as i can i'll try the debug code and report back.
Reply With Quote
  #9  
Old July 20th, 2009, 12:42 PM
counterpoint counterpoint is offline
Administrator
 
Join Date: Jun 2007
Posts: 200
Default

Is Wamp meant to be used that way? If you're not using the Wamp install, wouldn't it be safer to download the various components separately?

OK, if we can get more diagnostic information, I'll be able to look at the code again.
Reply With Quote
  #10  
Old July 25th, 2009, 05:30 PM
Cerian Cerian is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Default

Quote:
I've never actually used the wamp install, just D/L and installed everything seperate...
Quote:
Is Wamp meant to be used that way? If you're not using the Wamp install, wouldn't it be safer to download the various components separately?
As I said, I have downloaded an installed each separate.

this is the output after the die command was inserted... Looks like it's finding the xml fine.

W:/WWW ROOT/Aliro/language/en/en.xml

I went to line 51 in aliroXML.php, added an "or die($xmlstring);" to the end of the line. I now get the aliro page with a php error recorded in the log. and might have stumbled upon an error in the process. My domain is intothewild.ca.

this is what is recorded in the aliro error table, column "lmessage"

W:\WWW ROOT\Aliro\classes\aliroMenuHandler.php at line 275; request=othewild.ca

looks like it could be something to do with my domain. it's truncated the int from the name, so possibly trying to set it as int(othewild.ca) and getting the error that way.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 PM.


A vBSkinworks Design
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Posts copyright respective authors; compilation copyright Aliro Ltd