#2 May 19, 2019 00:37
We'll check, thanks.
Hi. Not an issue for me as it will go away once I leave the page.
I must have had two tabs open showing the same post. On one I changed the item from Post to Standalone Page. All went as expected, no problems.
I went to the other tab to grab a url for an image and noticed it still had this old post, so I refreshed the page expecting a warning that the post didn't exist but I got this. Thought it may be of interest.
We'll check, thanks.
@amoun Hi, I tested what you wrote, even with same url format with dates in url and
&disp=single, but could not reproduce.
I see your url has the param
&disp=single, I don't know why you have this in urls but it doesn't matter, so as I understand you try to open permanent url of "Post" when it was already updated to "Standalone Page" and you see an expected message like "nothing to display..." and the warning above.
I checked the code in the
_results.class.php on the line
2500 and there is no wrong code.
The warning may appears only if your own skin has a wrong code, I think you should go to your skin files and find function
display_if_empty(), this function may has a single param and it must be an array, i.e. your code must be like
display_if_empty( array( 'msg_empty' => '...' ) ). Please check especially files
single.main.php, if you don't have them then check
index.main.php for the same function
display_if_empty(). It seems your skin uses a not array param there.
@yurabakhtin will check my skin out as you suggested. Thanks
So far I've found
in as you suggested, my ancient skin from 2008, an old modified simple-zen
in 6.10.8 as examples
. . . evopress/single.main.php
. . . basic/index.main.php
. . . bootstrap_manual/_single.disp.php
. . . dating_mood/index.main.php
in fact I haven't found an instance where there is any with array content.
I was thinking it was the array issue so I will try and replicate and then change the code by adding a constant and message.
@amoun Did you fix the warning in your skin?
This post has 1 feedback awaiting moderation...