Revision history for NonObjectMemberFunction


Revision [22954]

Last edited on 2016-05-20 07:38:43 by TimoK [Replaces old-style internal links with new pipe-split links.]
Additions:
~~~& It seems the %%(php) global $wakka;%% is ignored. I found a similar problem [[http://www.issociate.de/board/post/190321/class_and_global.html | here]] and it was beeing solved by globaling the object before its creation and not creating it by reference. Applied to wikka this means you need to go into your wikka.php and change the line %%(php)$wakka =& new Wakka($wakkaConfig); # create object by reference%% to %%(php)$wakka = new Wakka($wakkaConfig); # create object NOT by reference%% and add a %%(php) global $wakka;%% in front of it. (Sorry for needing three edits to come up with this, I just shouldn't try to solve problems I can't 'live-test' that early in the morning.) -- TimoK
Deletions:
~~~& It seems the %%(php) global $wakka;%% is ignored. I found a similar problem [[http://www.issociate.de/board/post/190321/class_and_global.html here]] and it was beeing solved by globaling the object before its creation and not creating it by reference. Applied to wikka this means you need to go into your wikka.php and change the line %%(php)$wakka =& new Wakka($wakkaConfig); # create object by reference%% to %%(php)$wakka = new Wakka($wakkaConfig); # create object NOT by reference%% and add a %%(php) global $wakka;%% in front of it. (Sorry for needing three edits to come up with this, I just shouldn't try to solve problems I can't 'live-test' that early in the morning.) -- TimoK


Revision [18334]

Edited on 2008-01-28 00:11:12 by TimoK [Modified links pointing to docs server]

No Differences

Revision [7036]

Edited on 2005-03-31 17:16:58 by TimoK [Modified links pointing to docs server]
Additions:
~& Ah well, I should stick to those things I can test or where I know the code 100% :) --TimoK


Revision [7034]

Edited on 2005-03-31 14:38:06 by JavaWoman [correction to the solution ;-)]

No Differences

Revision [7021]

Edited on 2005-03-30 23:58:48 by MonstoBrukes [correction to the solution ;-)]
Additions:
====Solution====
When ''"double_doublequote_html" => "disabled"'' configuration is set, the current version of wikka then refers to the incorrect class when parsing ddq.
**FIND** in formatters/wakka.php
%%return $wakka->htmlspecialchars_ent($matches[1]);%%
**REPLACE WITH**
%%return $this->htmlspecialchars_ent($matches[1]);%%
This statement is never touched as long as ''"double_doublequote_html" =>'' is not set to ''"disabled"''
Thanks JavaWoman for your solution, thanks TimoK for trying.
Deletions:
Here's the code removed:
===14. Embedded HTML===
Use two doublequotes around the html tags.
&quot"
[html code]
&quot"
By default, some HTML tags are removed by the ""SafeHTML"" parser to protect against potentially dangerous code. The list of tags that are removed can be found on the Wikka:SafeHTML page.
It is possible to allow //all// HTML tags to be used, see Wikka:UsingHTML for more information.
----%%
the remaining stored code of the page is as follows. i added a space between dbl %'s so it wouldn't break the formatting.
======Wikka Formatting Guide======
Once you have read through this, test your formatting skills in the SandBox.
===1. Text Formatting===
''Note: Anything between 2 sets of double-quotes is not formatted.''
""**bold**""
**bold **
""//I'm italic text!//""
//I'm italic text!//
""And I'm __underlined__!""
And I'm __underlined__!
""##monospace text##""
##monospace text##
""''highlight text''"" (using 2 single-quotes)
''highlight text''
""++Strike through text++""
++Strike through text++
""Press #%ANY KEY#%""
Press #%ANY KEY#%
""@@Center text@@""
@@Center text@@
===2. Headers===
Use between five = (for the biggest header) and two = (for the smallest header) on both sides of a text.
""====== Really big header ======""
====== Really big header ======

""===== Rather big header =====""
===== Rather big header =====

""==== Medium header ====""
==== Medium header ====

""=== Not-so-big header ===""
=== Not-so-big header ===

""== Smallish header ==""
== Smallish header ==
===3. Horizontal separator===
""----""
===4. Forced line break===
""---""
---
===5. Lists / Indents===
Indent text using **4** spaces (which will auto-convert into tabs) or using "~". To make bulleted / ordered lists, use the following codes (you can use 4 spaces instead of "~"):
""~- bulleted list:""
- bulleted list
- Line two
""~1) numbered list:""
1) numbered list
1) Line two
""~A) Using uppercase characters:""
A) Using uppercase characters
A) Line two
""~a) Using lowercase characters:""
a) Using lowercase characters
a) Line two
""~I) using uppercase roman numerals:""
I) using Latin numbers
I) Line two
""~i) using lowercase roman numerals:""
i) using Latin numbers
i) Line two
===6. Inline comments===
""~& Comment""
""~~& Subcomment""
""~~~& Subsubcomment""
~& Comment
~~& Subcomment
~~~& Subsubcomment
===7. Images===
To place images on a Wiki page, use:
""{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}""
{{image class="center" alt="dvd logo" title="An Image Link" url="http://wikka.jsnx.com/images/dvdvideo.gif" link="RecentChanges"}}
Links can be external, or internal Wiki links. You don't have to enter a link at all, and in that case just an image will be inserted. You can also use the classes 'left' and 'right' to float images left and right. You don't need to use all those attributes, only url is essential.
===8. Links===
To link to other wiki pages, write
- a ""WikiName""
- or a forced link with ""[["" and ""]]"" around it (everything after the first space will be shown as description)
- Example: ""[[JennaPage Jenna's Home Page]]""
- or an image with a link
To link to external pages, write
- a http address inside the page
- or a forced link with ""[["" and ""]]"" around it (everything after the first space will be shown as description)
- Example: ""[[http://example.com/jenna/ Jenna's Home Page]]""
- or an image with a link
- or an ""InterWiki"" link (see InterWiki page for wiki list)
- Examples:
- WikiPedia:WikkaWiki
- Google:CSS
- Thesaurus:Happy
===9. Tables===
To create a table use this code:
""{{table columns="3" cellpadding="1" cells="BIG;GREEN;FROGS;yes;yes;no;no;no;###"}}"" to give:
{{table columns="3" cellpadding="1" cells="BIG;GREEN;FROGS;yes;yes;no;no;no;###"}}
""###"" means the cell is empty.
===10. Colored Text===
""{{color c="blue" text="This is a test."}}"" gives:
{{color c="blue" text="This is a test."}}
If you want to use hex values:
""{{color hex="#DD0000" text="This is another test."}}"" to give:
{{color hex="#DD0000" text="This is another test."}}

===11. Floats===
**Left floated box - use two < signs before and after the block**
<<Some text in a floated box hanging around<<Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.
**Right floated box, use two > characters before and after the block**
>>Some text in a floated box hanging around>>Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.
""Use ::c:: to clear floated blocks...""
===12. Code formatters===
Simply use ""% %(formatter) code % %"" - see below for a list of available formatters.
Example:
""% %(php) PHP code% %:""
% %(php)
<?php
phpinfo();
echo "Hello, World!";
?>
% %
{{table columns="2" cellpadding="1" cells="LANGUAGE;FORMATTER;Actionscript;actionscript;ADA;ada;Apache Log;apache;ASM;asm;ASP;asp;Bash;bash;C;c;C for Macs;c_mac;c#;csharp;C++;cpp;CAD DCL;caddcl;CadLisp;cadlisp;CSS;css;Delphi;delphi;HTML;html4strict;Java;java;Javascript;javascript;Lisp;lisp;Lua;lua;NSIS;nsis;Objective C;objc;OpenOffice BASIC;oobas;Pascal;pascal;Perl;perl;PHP;php;Python;phyton;Q(uick)BASIC;qbasic;Smarty;smarty;SQL;sql;VB.NET;vbnet;Visual BASIC;vb;Visual Fox Pro;visualfoxpro;XML;xml"}}
CategoryWiki%%
==== Here's my config ====
%%<?php
// wikka.config.php written at Tue Mar 22 17:53:58 2005
// do not change wikka_version manually!
$wakkaConfig = array(
"table_prefix" => "_",
"root_page" => "WikiHome",
"wakka_name" => "empornium",
// "base_url" => "http://empornium.us/wikka/wikka.php?wakka=",
"base_url" => "http://empornium.us/wikka/",
"rewrite_mode" => "1",
"action_path" => "actions",
"handler_path" => "handlers",
"gui_editor" => "1",
"stylesheet" => "css/layout.css",
"wikka_formatter_path" => "formatters",
"wikka_highlighters_path" => "formatters",
"geshi_path" => "3rdparty/plugins/geshi",
"geshi_languages_path" => "3rdparty/plugins/geshi/geshi",
"header_action" => "header",
"footer_action" => "footer",
"navigation_links" => "[[CategoryCategory Categories]] :: PageIndex :: RecentChanges :: RecentlyCommented :: [[UserSettings Login/Register]]",
"logged_in_navigation_links" => "[[CategoryCategory Categories]] :: PageIndex :: RecentChanges :: RecentlyCommented :: [[UserSettings Change settings/Logout]]",
"referrers_purge_time" => "30",
"pages_purge_time" => "0",
"xml_recent_changes" => "10",
"hide_comments" => "1",
"anony_delete_own_comments" => "1",
"double_doublequote_html" => "disabled",
"external_link_tail" => "<span class='exttail'>∞</span>",
"sql_debugging" => "0",
"upload_path" => "uploads",
"mime_types" => "mime_types.txt",
"geshi_header" => "div",
"geshi_line_numbers" => "1",
"geshi_tab_width" => "4",
"wikiping_server" => "",
"default_write_acl" => "*",
"default_read_acl" => "*",
"default_comment_acl" => "*",
"meta_keywords" => "",
"meta_description" => "",
"geshi_tab width" => "4",
"wakka_version" => "1.1.6.0");
?>%%


Revision [6997]

Edited on 2005-03-29 15:18:27 by NilsLindenberg [layout]
Additions:
===== Fatal error: Call to a member function on a non-object =====
==Description of the problem==
i deleted a section at the end of FormattingRules wherei guess a cohort had included brief html embed instructions. When i clicked Store, the resulting page (which would have displayed the complete edit) gave the above error.
Here's the code removed:
==Possible solution==
Deletions:
i deleted a section at the end of FormattingRules wherei guess a cohort had included brief html embed instructions. When i clicked Store, the resulting page (which would have displayed the complete edit) gave the above error. Here's the code removed.
"mysql_host" => "hank.empornium.us",
"mysql_database" => "wikka",
"mysql_user" => "wikiuser",
"admin_users" => "EmpAdmin",
"admin_email" => "admin@empornium.us",
"mysql_password" => "wikiuser",


Revision [6986]

Edited on 2005-03-29 06:52:46 by TimoK [Yet another idea]
Additions:
~~~& It seems the %%(php) global $wakka;%% is ignored. I found a similar problem [[http://www.issociate.de/board/post/190321/class_and_global.html here]] and it was beeing solved by globaling the object before its creation and not creating it by reference. Applied to wikka this means you need to go into your wikka.php and change the line %%(php)$wakka =& new Wakka($wakkaConfig); # create object by reference%% to %%(php)$wakka = new Wakka($wakkaConfig); # create object NOT by reference%% and add a %%(php) global $wakka;%% in front of it. (Sorry for needing three edits to come up with this, I just shouldn't try to solve problems I can't 'live-test' that early in the morning.) -- TimoK


Revision [6985]

Edited on 2005-03-29 06:31:09 by TimoK [Answer to myself, because the idea was stupid]
Additions:
~& It might help to change the %%(php) $allowed_double_doublequote_html = $wakka->GetConfigValue("double_doublequote_html");%%to %%(php) $allowed_double_doublequote_html = $this->GetConfigValue("double_doublequote_html");%% or %%(php) $allowed_double_doublequote_html = $wakka->config["double_doublequote_html"];%% in formatters/wakka.php. This just a blind guess though. -- TimoK
~~& Ok, I just tried some things on my own wikka - the first change most propably doesn't change anything for you, since it produces the error you get when I make it. On further thinking (aka after some coffein) it was really stupid, since there is no $this at that place. Question: Does GeShi work for you? Or using % % without the space at all? (Please test on a simple page with no html or anything else, just one line of to-be-hilighted code) -- TimoK
Deletions:
~& It might help to change the %%(php) $allowed_double_doublequote_html = $wakka->GetConfigValue("double_doublequote_html");%%to %%(php) $allowed_double_doublequote_html = $this->GetConfigValue("double_doublequote_html");%% or %%(php) $allowed_double_doublequote_html = $this->config["double_doublequote_html"];%% in formatters/wakka.php. This just a blind guess though. -- TimoK


Revision [6984]

Edited on 2005-03-29 06:11:29 by TimoK [Idea for a solution]
Additions:
~& It might help to change the %%(php) $allowed_double_doublequote_html = $wakka->GetConfigValue("double_doublequote_html");%%to %%(php) $allowed_double_doublequote_html = $this->GetConfigValue("double_doublequote_html");%% or %%(php) $allowed_double_doublequote_html = $this->config["double_doublequote_html"];%% in formatters/wakka.php. This just a blind guess though. -- TimoK


Revision [6983]

Edited on 2005-03-29 05:44:26 by MonstoBrukes [Idea for a solution]
Additions:
~I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php produced the same error
~Suggestions?
~Yes, that is what happened. Do you know of any way other than
~to use quotes in wikka without them appearing as question marks? --Jmax1632
Deletions:
Yes, that is what happened. Do you know of any way other than
to use quotes in wikka without them appearing as question marks?
--Jmax1632
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php produced the same error
Suggestions?


Revision [6982]

Edited on 2005-03-29 05:42:23 by MonstoBrukes [Idea for a solution]
Additions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php produced the same error
Deletions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php didn't help


Revision [6981]

Edited on 2005-03-29 05:41:37 by MonstoBrukes [Idea for a solution]
Additions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php didn't help
Suggestions?
Deletions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. Suggestions? We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php didn't help


Revision [6980]

Edited on 2005-03-29 05:40:15 by MonstoBrukes [Idea for a solution]
Additions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. Suggestions? We run with magic quotes off, but adding ''set_magic_quotes_runtime(1);'' to the top of formatters/wakka.php didn't help
Deletions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. Suggestions? We run with magic quotes off, but adding "set_magic_quotes_runtime(1);" to the top of formatters/wakka.php didn't help


Revision [6979]

Edited on 2005-03-29 05:39:33 by MonstoBrukes [Idea for a solution]
Additions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. Suggestions? We run with magic quotes off, but adding "set_magic_quotes_runtime(1);" to the top of formatters/wakka.php didn't help
Deletions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. Suggestions?


Revision [6951]

Edited on 2005-03-27 07:35:58 by Jmax1632 [Idea for a solution]
Additions:
Yes, that is what happened. Do you know of any way other than
"
%%
to use quotes in wikka without them appearing as question marks?
Deletions:
Yes, that is what happened. Do you know of any way other than ""&quot"" to use quotes in wikka without them appearing as question marks?


Revision [6950]

Edited on 2005-03-27 07:31:52 by Jmax1632 [Idea for a solution]
Additions:
Yes, that is what happened. Do you know of any way other than ""&quot"" to use quotes in wikka without them appearing as question marks?
Deletions:
Yes, that is what happened. Do you know of any way other than
""
"
""
to use quotes in wikka without them appearing as question marks?


Revision [6949]

Edited on 2005-03-27 07:31:19 by Jmax1632 [Idea for a solution]
Additions:
Yes, that is what happened. Do you know of any way other than
""
"
""
to use quotes in wikka without them appearing as question marks?
--Jmax1632


Revision [6910]

Edited on 2005-03-26 07:51:53 by MonstoBrukes [Idea for a solution]
Additions:
I discovered that the error occurs on use of double double quotes to escape from the wikitext renderer. Suggestions?
Deletions:
I discovered that the error occurs on use of "" (double double quotes) to escape from the wikitext renderer. Suggestions?


Revision [6909]

Edited on 2005-03-26 07:51:31 by MonstoBrukes [Idea for a solution]
Additions:
I discovered that the error occurs on use of "" (double double quotes) to escape from the wikitext renderer. Suggestions?
Received this error today (march 25 2005)
Deletions:
Received this error today


Revision [6904]

Edited on 2005-03-26 01:46:27 by MonstoBrukes [Idea for a solution]
Additions:
CategorySupport


Revision [6896]

Edited on 2005-03-25 15:55:41 by MonstoBrukes [Idea for a solution]
Additions:
==== Here's my config ====
%%<?php
// wikka.config.php written at Tue Mar 22 17:53:58 2005
// do not change wikka_version manually!
$wakkaConfig = array(
"mysql_host" => "hank.empornium.us",
"mysql_database" => "wikka",
"mysql_user" => "wikiuser",
"table_prefix" => "_",
"root_page" => "WikiHome",
"wakka_name" => "empornium",
// "base_url" => "http://empornium.us/wikka/wikka.php?wakka=",
"base_url" => "http://empornium.us/wikka/",
"rewrite_mode" => "1",
"action_path" => "actions",
"handler_path" => "handlers",
"gui_editor" => "1",
"stylesheet" => "css/layout.css",
"wikka_formatter_path" => "formatters",
"wikka_highlighters_path" => "formatters",
"geshi_path" => "3rdparty/plugins/geshi",
"geshi_languages_path" => "3rdparty/plugins/geshi/geshi",
"header_action" => "header",
"footer_action" => "footer",
"navigation_links" => "[[CategoryCategory Categories]] :: PageIndex :: RecentChanges :: RecentlyCommented :: [[UserSettings Login/Register]]",
"logged_in_navigation_links" => "[[CategoryCategory Categories]] :: PageIndex :: RecentChanges :: RecentlyCommented :: [[UserSettings Change settings/Logout]]",
"referrers_purge_time" => "30",
"pages_purge_time" => "0",
"xml_recent_changes" => "10",
"hide_comments" => "1",
"anony_delete_own_comments" => "1",
"double_doublequote_html" => "disabled",
"external_link_tail" => "<span class='exttail'>∞</span>",
"sql_debugging" => "0",
"admin_users" => "EmpAdmin",
"admin_email" => "admin@empornium.us",
"upload_path" => "uploads",
"mime_types" => "mime_types.txt",
"geshi_header" => "div",
"geshi_line_numbers" => "1",
"geshi_tab_width" => "4",
"wikiping_server" => "",
"default_write_acl" => "*",
"default_read_acl" => "*",
"default_comment_acl" => "*",
"mysql_password" => "wikiuser",
"meta_keywords" => "",
"meta_description" => "",
"geshi_tab width" => "4",
"wakka_version" => "1.1.6.0");
?>%%


Revision [6895]

Edited on 2005-03-25 15:48:52 by MonstoBrukes [Idea for a solution]
Additions:
Simply use ""% %(formatter) code % %"" - see below for a list of available formatters.
""% %(php) PHP code% %:""
% %(php)
% %
Deletions:
Simply use ""%%(formatter) code %%"" - see below for a list of available formatters.
""%%(php) PHP code%%:""
%%(php)
%%


Revision [6894]

Edited on 2005-03-25 15:42:08 by MonstoBrukes [Idea for a solution]
Additions:
Simply use ""%%(formatter) code %%"" - see below for a list of available formatters.
""%%(php) PHP code%%:""
%%(php)
%%
Deletions:
Simply use ""% %(formatter) code % %"" - see below for a list of available formatters.
""% %(php) PHP code% %:""
% %(php)
% %


Revision [6893]

The oldest known version of this page was created on 2005-03-25 15:30:12 by MonstoBrukes [Idea for a solution]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki