-
AuthorPosts
-
February 7, 2014 at 2:33 pm #1001
Hi folks,
My path mysite/images was supposed to show all my images, and it is empty (no images) as you can check by clicking on the link below. Any idea what can be wrong?
Thanks in advance.
February 7, 2014 at 4:12 pm #9420It’s image singular, not plural. It works:
February 7, 2014 at 5:09 pm #9421That is something new I have learned today
http://kerioakimaging.com - trying to reopen
http://nail-art-at.kerioak.com - Art and Nail ArtFebruary 7, 2014 at 8:54 pm #9422@joannsnover wrote:
It’s image singular, not plural. It works:
Thanks for your reply Jo Ann. Weird it doesn’t work for pt or direct link:
http://www.arquivoscriativos.com.br/pt/image/
http://www.arquivoscriativos.com.br/image/
I’ll try without child and other tests…
February 7, 2014 at 9:03 pm #9423Ok, by deactivating the child theme and activating the parent, it works normal. I wonder what code controls it that I would add in the child functions.php?
February 7, 2014 at 10:43 pm #9427ok, actually by deactivating the pt_BR.po file, it shows normally, now I wonder where in the default.po file it controls or have some code that may mess this when translated. It seems I shouldn’t had translated some text that should remain as a code.
Any tip?
February 8, 2014 at 2:04 am #9428@lucato wrote:
ok, actually by deactivating the pt_BR.po file, it shows normally, now I wonder where in the default.po file it controls or have some code that may mess this when translated. It seems I shouldn’t had translated some text that should remain as a code.
Any tip?
I’d guess to look for where you’ve translated “image” 🙂
I did try /pt/iimagen/ but that doesn’t work
I’m guessing that one of the places in interpreter.php that does a check for ‘image’ before displaying results is failing because the thing it is checking against is now saying imagen
February 8, 2014 at 2:57 am #9429If Jo Ann is right you should find some entry in the error_log file that might help in pinpointing the cause of your troubles.
February 8, 2014 at 10:41 am #9424@joannsnover wrote:
I’d guess to look for where you’ve translated “image” 🙂
– Hehehe, actually I did it, but there are 6 “zillions” of words image there. So, it would be easier to ask in the forums if somebody know the direct place. :0)@joannsnover wrote:
I did try /pt/iimagen/ but that doesn’t work
– Jo Ann, it didn’t work because, it should be in singular imagem and as plural imagens. Just kidding, even in the correct Brazilian Portuguese it isn’t working. ;0)@joannsnover wrote:
I’m guessing that one of the places in interpreter.php that does a check for ‘image’ before displaying results is failing because the thing it is checking against is now saying imagen
– I’ll check this, thanks for the tip. Any news I’ll post back.
Have a nice weekend.
February 8, 2014 at 10:42 am #9425@Imago Borealis wrote:
If Jo Ann is right you should find some entry in the error_log file that might help in pinpointing the cause of your troubles.
Hey Imago, thanks for the help. I’ll check this file too.
Have a nice weekend.February 8, 2014 at 11:08 am #9426^ For me it is too much complicated to understand the errors. It seems to not be accepting some Special Entities.
I have cleaned the error log and just ran the link above and here are the results in the error_log:
[08-Feb-2014 10:55:54 UTC] PHP Warning: SimpleXMLElement::__construct(): Entity: line 1951: parser error : Entity 'oacute' not defined in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:54 UTC] PHP Warning: SimpleXMLElement::__construct(): -numbers" href="http://www.arquivoscriativos.com.br/image/page/2/">Pró in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:54 UTC] PHP Warning: SimpleXMLElement::__construct(): ^ in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:54 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php:54
Stack trace:
#0 /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php(54): SimpleXMLElement->__construct('<?xml version="...')
#1 /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/network-manager.php(1801): symbiostock_interpret_results('<?xml version="...')
#2 /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/archive-image.php(42): network_manager->display_results(false)
#3 /home1/myroot/public_html/mysite/wp-includes/template-loader.php(74): include('/home1/myroot/...')
#4 /home1/myroot/public_html/mysite/wp-blog-header.php(16): require_once('/home1/myroot/...')
#5 /home1/myroot/public_html/mysite/index.php(17): require('/home1/ in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:56 UTC] PHP Warning: SimpleXMLElement::__construct(): Entity: line 1951: parser error : Entity 'oacute' not defined in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:56 UTC] PHP Warning: SimpleXMLElement::__construct(): -numbers" href="http://www.arquivoscriativos.com.br/image/page/2/">Pró in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:56 UTC] PHP Warning: SimpleXMLElement::__construct(): ^ in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
[08-Feb-2014 10:55:56 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php:54
Stack trace:
#0 /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php(54): SimpleXMLElement->__construct('<?xml version="...')
#1 /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/network-manager.php(1801): symbiostock_interpret_results('<?xml version="...')
#2 /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/archive-image.php(42): network_manager->display_results(false)
#3 /home1/myroot/public_html/mysite/wp-includes/template-loader.php(74): include('/home1/myroot/...')
#4 /home1/myroot/public_html/mysite/wp-blog-header.php(16): require_once('/home1/myroot/...')
#5 /home1/myroot/public_html/mysite/index.php(17): require('/home1/ in /home1/myroot/public_html/mysite/wp-content/themes/symbiostock/inc/classes/network-manager/interpreter.php on line 54
Any help?
February 8, 2014 at 6:06 pm #9430So the fatal error is in this line in interpreter.php:
$results = new SimpleXmlElement( $symbiostock_xml_results );
This is in the function symbiostock_interpret_results() which is called from symbiostock_build_html_results() inside a section that is reached when the following test is true
if(!isset($results)){
All the code in there is what to do when a search produces no results. It shouldn’t be there when you’re looking at your portfolio. AJT knows a fair bit about this code (I think because he wrote some or all of it) – perhaps PM him and ask him to take a look?
February 8, 2014 at 8:51 pm #9431@joannsnover wrote:
So the fatal error is in this line in interpreter.php:
$results = new SimpleXmlElement( $symbiostock_xml_results );
This is in the function symbiostock_interpret_results() which is called from symbiostock_build_html_results() inside a section that is reached when the following test is true
if(!isset($results)){
All the code in there is what to do when a search produces no results. It shouldn’t be there when you’re looking at your portfolio. AJT knows a fair bit about this code (I think because he wrote some or all of it) – perhaps PM him and ask him to take a look?
In spite of not understanding a word or code line above, thanks for your reply. :0)
I’ll try to reach ajt via PM. Thanks for your help Jo Ann.February 8, 2014 at 9:29 pm #9432Lucato,
Have you changed language version in WordPress config file?
I mean wp-config.php and this line:define(‘WPLANG’, ”);
If you use other languages, there can be a problem with “Prev” and “Next”, if translations in that languages contain letters different than a..z.
“Next” in Portuguese is “Próximo”
I can see the problem is here:
PróximoInterpreter sees “ó” coded as “ó” and crashes.
Leo: maybe pagination links in xml results could be wrapped in CDATA?
February 8, 2014 at 10:13 pm #9419@ajt wrote:
Lucato, Have you changed language version in WordPress config file?
I mean wp-config.php and this line:define(‘WPLANG’, ”);
If you use other languages, there can be a problem with “Prev” and “Next”, if translations in that languages contain letters different than a..z.
“Next” in Portuguese is “Próximo”
I can see the problem is here:
PróximoInterpreter sees “ó” coded as “ó” and crashes.
Leo: maybe pagination links in xml results could be wrapped in CDATA?
Yes, I have changed to Brazilian Portuguese once I’m using a multi-lingual SYM theme and this language uses special characters such as á, é , ã, ç, õ, and etc.
define(‘WPLANG’, ”pt_BR”);
Leo need to check it to accept these characters once it isn’t just Brazilian Portuguese that uses such characters. We have also Italian, Portuguese (Portugal), Spanish, French, Dutch , Flemish, Afrikaans, and etc.
-
AuthorPosts
You must be logged in to reply to this topic.