Problem with Wordpress and Zend Framework

134 views
Skip to first unread message

Anna Lagos

unread,
Oct 29, 2013, 9:15:11 PM10/29/13
to scrip...@googlegroups.com
Hi,
 
I'm trying to install Scripto on my wordpress site and I am getting an invalid path for Zend Framework error.
 
I'm on wordpress 3.5 at the moment (although I can upgrade to 3.7 if that will help?).  I have succesfully installed Media Wiki 1.16 and I have uploaded Zend Framework 1 onto my site.
 
My wordpress installation, mediawiki and Zend framework have been uploaded to domainname/public_html/ so for my Zend framework path I am entering domainname/public_html/Zend/library but I am getting the invalid path error.  I have also tried just public_html/Zend/library
 
In the Zend framework install file it says -
"Zend Framework requires no special installation steps. Simply download the framework,
extract it to the folder you would like to keep it in, and add the library directory
to your PHP include_path. To use components in the extras library, add the extras/library
directory to your PHP include_path, as well."
 
Do i need to add something to my PHP include_path?
 
Sorry if this is a stupid question.
 
Not sure what else to try.
 
Thanks, Anna.

Jim Safley

unread,
Oct 30, 2013, 9:50:10 AM10/30/13
to scrip...@googlegroups.com
Make sure you use the absolute path to the Zend Framework library,
from server root. In your case it will look something like:

/path/to/domainname/public_html/Zend/library

Jim
> --
> You received this message because you are subscribed to the Google Groups
> "Scripto Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scripto-dev...@googlegroups.com.
> To post to this group, send email to scrip...@googlegroups.com.
> Visit this group at http://groups.google.com/group/scripto-dev.
> For more options, visit https://groups.google.com/groups/opt_out.

Anna Lagos

unread,
Oct 31, 2013, 2:49:21 AM10/31/13
to scrip...@googlegroups.com
Thanks Jim,  I've got that working.
 
Now I'm getting an invalid url for mediawiki api.
 
I have uploaded mediawiki to my host and i've installed it.. and I can see it working here http://www.kedronconsulting.com.au/MediaWiki/ if I go to this URL http://www.kedronconsulting.com.au/MediaWiki/api.php I can see some API documentation, so that's the URL I"m using for the URL to Mediawiki api
 
But am I meant to be doing something else?  Do I actually need to do something to the api.php file?
 
Sorry.. I"m a novice!  (and please excuse the domain name for now.. i'm just playing with the plugin to see if i can get it working for our state archives, but it's on a personal domain name while i'm learning about it).
 
Thanks.

Jim Safley

unread,
Oct 31, 2013, 7:43:08 AM10/31/13
to scrip...@googlegroups.com
I can't reproduce the problem. I've successfully installed Scripto
using the MediaWiki API URL you provided, and made an edit to a test
page. Are you sure you're entering the full URL?

Jim

Anna Lagos

unread,
Oct 31, 2013, 7:36:12 PM10/31/13
to scrip...@googlegroups.com
Hi,
 
I've tried entering http://www.kedronconsulting.com.au/MediaWiki/api.php and
www.kedronconsulting.com.au/MediaWiki/api.php as the URL - both give me the invalid URL error. (Screen shot is attached)
 
I've disabled all other plugins to make sure nothing's interfering, I've tried deleting and installing a new copy of Scripto, I've updated Wordpress to the latest version.
 
I am using MediaWiki version 1.16 because my hosting company is running an older version of PHP (PHP version 5.0.91).  Would this be the problem?

 

If I view my website and try to go to the page where Scripto will be displayed, it's displaying the following error -
 
Fatal error: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://www.kedronconsulting.com.au:80. Error #: ' in /home/ked16838/public_html/ZendFramework/library/Zend/Http/Client/Adapter/Socket.php:235 Stack trace: #0 /home/ked16838/public_html/ZendFramework/library/Zend/Http/Client.php(1059): Zend_Http_Client_Adapter_Socket->connect('www.kedronconsu...', 80, false) #1 /home/ked16838/public_html/wp-content/plugins/scripto/lib/Scripto/Service/MediaWiki.php(637): Zend_Http_Client->request('POST') #2 /home/ked16838/public_html/wp-content/plugins/scripto/lib/Scripto/Service/MediaWiki.php(443): Scripto_Service_MediaWiki->_request('query', Array) #3 /home/ked16838/public_html/wp-content/plugins/scripto/lib/Scripto/Service/MediaWiki.php(157): Scripto_Service_MediaWiki->query(Array) #4 /home/ked16838/public_html/wp-content/plugins/scripto/lib/Scripto.php(214): Scripto_Service_MediaWiki->getUserInfo('groups|rights') #5 /home/ked16838/public_html/wp-content/plugins/scripto/lib/Scripto.php( in /home/ked16838/public_html/ZendFramework/library/Zend/Http/Client/Adapter/Socket.php on line 235
 
Not sure if that provides any indication of what could be happening?

Really appreciate your assistance with this, but also understand if this is going beyond the level of support that can be provided.
 
Thanks, Anna.
mediawikiapierror.JPG

Jim Safley

unread,
Nov 1, 2013, 10:02:06 AM11/1/13
to scrip...@googlegroups.com
Thanks for the information. It appears that your server cannot connect
to the MediaWiki API directly, which may be because MediaWiki is
sitting within your WordPress directory. Is there any way you can move
MediaWiki to outside the WordPress directory and try again?

Jim

Anna Lagos

unread,
Nov 6, 2013, 8:25:54 PM11/6/13
to scrip...@googlegroups.com
Thanks Jim,
 
I have moved Wordpress into a subdirectory so my root directory now just contains MediaWiki, Zend Framework, a folder with all my Wordpress files, a .htaccess file and a index.php file.
 
I'm still getting the invalid MediaWiki API error though.  If I go to the page where Scripto should be it gives me this error -
 
Fatal error: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://www.kedronconsulting.com.au:80. Error #: ' in /home/ked16838/public_html/ZendFramework/library/Zend/Http/Client/Adapter/Socket.php:235 Stack trace: #0 /home/ked16838/public_html/ZendFramework/library/Zend/Http/Client.php(1059): Zend_Http_Client_Adapter_Socket->connect('www.kedronconsu...', 80, false) #1 /home/ked16838/public_html/Wordpress/wp-content/plugins/scripto/lib/Scripto/Service/MediaWiki.php(637): Zend_Http_Client->request('POST') #2 /home/ked16838/public_html/Wordpress/wp-content/plugins/scripto/lib/Scripto/Service/MediaWiki.php(443): Scripto_Service_MediaWiki->_request('query', Array) #3 /home/ked16838/public_html/Wordpress/wp-content/plugins/scripto/lib/Scripto/Service/MediaWiki.php(157): Scripto_Service_MediaWiki->query(Array) #4 /home/ked16838/public_html/Wordpress/wp-content/plugins/scripto/lib/Scripto.php(214): Scripto_Service_MediaWiki->getUserInfo('groups|rights') #5 /home/ked16838/public_html/Wor in /home/ked16838/public_html/ZendFramework/library/Zend/Http/Client/Adapter/Socket.php on line 235

 

I'm wondering if it actually has something to do with my web hosting company and how they are set up.
 
Other than that, I thought I might try and set it all up on a virtual machine and see if I can get it working that way.
 
Thanks again, Anna.
Reply all
Reply to author
Forward
0 new messages