Archive for the ‘bug V1 (SOLVED)’ Category

style 1-12 embed code points to ronica.net

Saturday, August 30th, 2008

style01.php - style12.php is statically pointing in the embed code to ronice.net.

Those styles should be able to run on any blog that will install the plugin.

they no longer do that

status : closed

css effects style 13-15

Saturday, August 23rd, 2008

The selected theme’s css effect style 13-15, those style should looks the same no matter the css that they are in.

look at this theme : http://wpcincopaplugin.ronica.net/styles/

solved

status :closed

Framework issues

Saturday, August 23rd, 2008
  • I’m getting this error in selectitems.php
    • Warning: Cannot modify header information - headers already sent by (output started at /home/orenshmu/public_html/cpFirstApp/cpAPI/base.php:202) in /home/orenshmu/public_html/cpFirstApp/selectitems.php on line 31 solved
  • after login in a new session, framework should redirect to the calling page and remove the user_token param (other params should stay)
    • from this - http://ronica.net/cpFirstApp/index.php?fid=4324344&user_token=te25c245itr34i45lgp5nq45
    • to this - http://ronica.net/cpFirstApp/index.php?fid=4324344solved

status :closed

must claim the new folder

Wednesday, August 6th, 2008

Please claim the folder, soon an unclaimed folders will not have access in nonUserSession

solved by adding     $page->post (’Folders_claim’, Array(”fid” => $fid)); in makefolder.php

status : closed

two php warning

Tuesday, August 5th, 2008
  1. I got this on wp 2.6 ( the new version)
    1. Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘media_admin_css’ was given in D:\Dev\wordpress\wp-includes\plugin.php on line 311 solved
  2. and this at some point (don’t remember exactly)
    1. Warning: : gzinflate() [function.gzinflate]: data error in /home/orenshmu/public_html/wp-content/plugins/wordpress-cincopa-media/cpAPI/base.php on line 116 string(72) “XML parse error 3 ‘no element found’ at line 1, column 0 (byte index -1)” getSession error - a solution, but we need more testing because it might be a problem not with the plugin code but with the response. maybe it only appears when the session expired? but I never encountered this error

status :closed

spam protection and Apache compression

Monday, August 4th, 2008
  1. is it possible to add CAPTCHA in user and blog registration ? I’m getting a lot of spam - done
  2. also to config the Apache server to compress http response - this should be done by the webmaster, I don’t have access to Apache config files; however, I installed a plugin (GZIP Output) that does pretty much the same thing. I am however under the impression that it loads much slower.

status : closed

Non english chars in the cloud

Monday, August 4th, 2008

When folder name return by providers.getContent contains non English character the popup will give an error alert. the reason for this is signature error.

You can test it with the demo account, look under y_2007 for folder name (in the cloud) name - coração

solved for Portuguese, I described the issue with Hebrew on RAC

solved

status : closed

some bugs

Saturday, August 2nd, 2008
0. when clicking 'insert' in the popup, it inserts the plugin at the begining of the post and not where the cursor is - Ok, I found the bug, it’s tricky: IE has this problem with tinyMCE (the textbox WP uses), that when you change the page in the popup box (through a link, for example, or a redirect, it loses the position,so when you close the popup, the cursor automatically goes to the beginning of the text. We are using redirect in the following situations: 1. in base.php, when the user is not logged in; 2. in base.php, when the session expired; 3. in the plugin page, when viewing an album and then clicking on Back [to main menu]); We have 3 solutions for this: 1. move cursor to the end of the textbox automatically if in IE ; 2. store the position of the cursor when opening the popup and restoring it after the popup has been closed (don’t know if that’s possible); 3. use AJAX in the situations I mentioned earlier, but I don’t know if it’s possible: 1. for login, we could open a new window as you said at the beginning of the project, but I don’t think we can do the trick when the user clicks “Login”: after all, we should somehow hold our page from loading until the user logged in, and only after that display the plugin page.
Another method I thought about is to make the plugin page an empty page containing a div and the buttons, and make another page that would serve wp-media-cincopa.php. For example, the user clicks on Back and it calls serve.php?action=back which returns the page with the main menu, and the script puts it in the div.
Or, the user clicks on Open folder and it calls serve.php?action=open&fid=[FID] and the images are loaded in the div.
Same thing forlogin: if the user is not logged in, the script returns the source of login.aspx into the div. if it can…
Do you think this is a good ideea? Btw, the newly implemented Logout functionality requires redirections as well.
  1. done - when style doesn’t exists should write an error
  2. done - styles 13,14,15 are not running in the right place where they where inserted just in a PAGE and not in a POST (you are right but should work nevertheless ) , see http://showcase.ronica.net/styles
  3. done - after clicking an item in style 13 it shouldn’t jump up to scroll 0
  4. done - change the name of the folder from == ronica.net == to the specific name of the blog like “Posted on bugs.ronica.net {date} {time}”
  5. done - in style 13, the next and previous buttons should have hand cursor
  6. done - in style 15, the strip above should have hand cursor
  7. done - in popup style selection, sort styles by their code and give a true one-line description
  8. done - change the name of the cincopa plugin app form phptest to ‘Wordpress Cincopa plugin’ and give some description, html description and landing page

status : closed, this is an IE bug with tinyMCE when changing page inside popup

call to CincopaCheckConnection()

Wednesday, July 30th, 2008

Please add this js script in the first page (the one with the tree) of the plugin.

<script src=”http://api.cincopa.com/skins/api/cincopa.js”></script>
<script>
CincopaCheckConnection();
</script>
after you’ll add this you’ll notice that all the photos are loading much faster from localhost (right click a photo and properties)

solved

status : closed

make testapp work

Tuesday, July 29th, 2008

make ronica.net/cpFirstApp/ work:

1. solve the makefolder.php problem so that new folders are created correctly - solved

2. solve the albumdata problem - works, but how to make setAppData to delete/replace a tag/value pair? it seems that if I use an already existing tag, it appends the value to the existing value. (if the value argument is not present then setAppData will remove the tag)

strange, it didn’t work for me. beside, if I try to CHANGE the value, not to delete it, it will append. something like

old value : <example>val1</example>

new value: <example>val1<example>val2</example></example>

What is the xpath, tag and value that you are sending ?

this is my function call:

$page->post ( ‘Folders_setAppData’, Array (’xpath‘ => “/mydata”, ‘fid’ => $_REQUEST ["_albumcode"], ‘folder_name’ => $_REQUEST ["_albumname"], ‘folder_description’ => $_REQUEST ["_albumdescription"], ‘tag‘ => ‘dataexample’, ‘value‘ => $_REQUEST["_dataexample"]) );

xpath in that case should include the tag - xpath = “/mydata/dataexample“, tag=”dataexample” , value=something/null

I get:

System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.XmlTextReaderImpl.InitStringInput(String baseUriStr, Encoding originalEncoding, String str) at System.Xml.XmlTextReaderImpl..ctor(String xmlFragment, XmlNodeType fragType, XmlParserContext context) at System.Xml.XmlLoader.CreateInnerXmlReader(String xmlFragment, XmlNodeType nt, XmlParserContext context, XmlDocument doc) at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt) at System.Xml.XmlElement.set_InnerXml(String value) at pixInfra.XmlHelper.ReplaceTag(String xpath, String tag, String value, String[] listatt) in D:\Dev\funpix\pixInfra\xml.cs:line 378 at ASP.skins_api_rest_aspx.Method_folders_setAppData.Process() in d:\WebSites\tmpCincopa\Skins\api\rest.aspx:line 1503 at ASP.skins_api_rest_aspx.BaseMethod.Invoke(NameValueCollection tmpprms) in d:\WebSites\tmpCincopa\Skins\api\rest.aspx:line 655 — End of inner exception stack trace —

Check this page for more info http://www.cincopa.com/Developer/storeDataAPI.aspx

No luck, this is the log:

<!– cpAPI Request
api_key     cf0d6e35-4c58-4ced-a7d2-6a38c147d942
callback
fid     10463415
folder_description     album 1
folder_name     new album
format     xml
method     folders.setAppData
sid     27e1821e-fd41-4f33-92bb-9f8a53377cc6
tag     dataexample
value     album 3
xpath     /mydata/dataexample
sig     5pR8AAkd7mJiMLzq7pOpHg==

Response
object(SimpleXMLObject)#5 (1) {
  ["result"]=>
  string(2) “ok”
}

3. make Edit album work correctly - solved

status: solved, it now fully supports Unicode, hebrew characters and portuguese chars