0
我正在爲WordPress的網站工作,每當我購買的主題被激活時,我不斷收到內部服務器錯誤,當我想添加或編輯帖子。激活我的錯誤日誌。我收到了這個通知。PHP警告 - 內部錯誤
PHP Warning: Illegal string offset 'gallery_src' in G:\PleskVhosts\latinaandthecity.tv\httpdocs\wp-content\themes\breeze\inc\meta-box.php on line 150
PHP Warning: Illegal string offset 'gallery_id' in *file* on line 151
PHP Warning: Illegal string offset 'gallery_src' in *file* on line 152
當在文件中查找,這是腳本是做什麼用的線。
<input type="hidden" name="bluth_custom_thumbnail[gallery_src]" class="source" value="<?php echo $custom_thumbnail['gallery_src']; ?>" />
<input type="hidden" name="bluth_custom_thumbnail[gallery_id]" class="image_id" value="<?php echo $custom_thumbnail['gallery_id']; ?>" />
<a class="blu_add_image" href="#" style="height:auto; min-height: 100px;"> <img class="blu_gallery" data-placeholder="<?php echo $fallback_image; ?>" src="<?php echo $custom_thumbnail['gallery_src']; ?>"> </a>
我不確定這裏有什麼問題。請指教?
print_r($ custom_thumbnail)給你什麼? – Dan