Page 1 of 1

ajax_upload module

PostPosted: Thu Sep 27, 2012 10:01 am
by zmmaj
wont work with latest xataface...
After I insesrt line
Code: Select all
modules_ajax_upload=modules/ajax_upload/ajax_upload.php


I got blank page.

Yes I was download latest trunk of ajax_update
Yes i was put ajax_update module in app/modules folder

my xatacace folder is in 127.0.1.1/xata
my app folder is in 127.0.0.1/medika

Does I miss something?

CKEditor , e.g. works with same settings and line
Code: Select all
modules_ckeditor=modules/ckeditor/ckeditor.php

Re: ajax_upload module

PostPosted: Thu Sep 27, 2012 2:08 pm
by shannah
Check your error log to see what the error is.

Re: ajax_upload module

PostPosted: Thu Sep 27, 2012 2:22 pm
by zmmaj
Hi...
I found next in ajax_upload.php
if I delete next
Code: Select all
   function block__head_slot(){
      echo '<script>XATAFACE_MODULES_AJAX_UPLOAD_URL='.json_encode($this->getBaseURL()).';</script>';
}


TO
Code: Select all
   function block__head_slot(){
   }


My Site load OK...
I need this as requirement for Email, so I didn't try jet funkcionality...
So, what is your opinion? Does will work without that code?
tnx

P.S. just to know I work on localhost...

Server: Localhost via UNIX socket
Server version: 5.5.24-0ubuntu0.12.04.1
Protocol version: 10
User: root@localhost
MySQL charset: UTF-8 Unicode (utf8)

Web server

Apache/2.2.22 (Ubuntu)
MySQL client version: 5.5.24
PHP extension: mysqli Documentation

phpMyAdmin

Version information: 3.4.10.1deb1

ALSO i notice that command isAdmin() wont work... can I get from you longer way for same command?

tnx

Re: ajax_upload module

PostPosted: Thu Sep 27, 2012 2:28 pm
by shannah
I think you need that section. Better to find out what the error is. Check your error log.

Re: ajax_upload module

PostPosted: Thu Sep 27, 2012 2:31 pm
by zmmaj
Oh my... here it is..
[Thu Sep 27 23:21:19 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined method Dataface_ModuleTool::getModuleURL() in /var/www/medika/modules/ajax_upload/ajax_upload.php on line 80

and line 80 in ajax_upload.php is

Code: Select all
   public function getBaseURL(){
      if ( !isset($this->baseURL) ){
80-->         $this->baseURL = Dataface_ModuleTool::getInstance()->getModuleURL(__FILE__);
      }
      return $this->baseURL;
   }



tnx.

P.S.
I was just notice that same function exists and in Email module (Email.php -> Line 18)... and of course, same thing was happend...
When I call
modules_Email=modules/Email/Email.php
(without ajax_upload) I got blank page...
:(( what now?
and what was happend with command IsAdmin() ... won't work...

Re: ajax_upload module

PostPosted: Fri Sep 28, 2012 10:25 am
by shannah
Sorry.. I missed the clue in your first post: "Latest Xataface".

The latest release of Xataface (1.3.2) doesn't support many of these newer modules in SVN. These modules require 2.0 that isn't released yet. Most should work with the 1.5.x branch. They will all work with the 1.9.x branch and the trunk.

-Steve

Re: ajax_upload module

PostPosted: Fri Sep 28, 2012 11:41 am
by zmmaj
Oh my...
I was loose 4 day to make this version working...
Ok... let's start from begining with previous version :(

tnx man.